Skip to content

Commit d6d41d5

Browse files
authored
Merge pull request #6 from CosmoCreeper/dev
Update main branch to v1.0.3.
2 parents 6179f94 + 5d4ceec commit d6d41d5

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
> [!NOTE]
22
> Sine Alpha has finally released!\
3-
> [v1.0.2](https://github.com/CosmoCreeper/Sine/releases) has released!
3+
> [v1.0.3](https://github.com/CosmoCreeper/Sine/releases) has released!
44
# Sine
55
![version](https://img.shields.io/badge/version-1.0.0-blue)
66
[![Star our repository](https://img.shields.io/badge/Star%20our%20repository-★-blue?style=flat&logo=github)](https://github.com/CosmoCreeper/Sine/stargazers)

latest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"updatedAt": "2025-05-13 13:00",
3-
"version": "1.0.2",
2+
"updatedAt": "2025-05-13 14:40",
3+
"version": "1.0.3",
44
"marketplace": {
55
"superpins": "CosmoCreeper/Zen-Themes/tree/main/SuperPins",
66
"transparent-newtab": "CosmoCreeper/TransparentNewTab",

sine.uc.mjs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ const Sine = {
1919
XUL: "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",
2020
storeURL: "https://cosmocreeper.github.io/Sine/latest.json",
2121
scriptURL: "https://cosmocreeper.github.io/Sine/sine.uc.mjs",
22-
updatedAt: "2025-05-13 13:00",
23-
version: "1.0.2",
22+
updatedAt: "2025-05-13 14:40",
23+
version: "1.0.3",
2424

2525
async fetch(url, forceText=false) {
2626
await UC_API.Prefs.set("sine.fetch-url", url);
@@ -1086,16 +1086,12 @@ const Sine = {
10861086

10871087
// Initialize marketplace
10881088
async initMarketplace() {
1089-
// Wait for required elements
1090-
await this.waitForElm("#ZenMarketplaceCategory");
1091-
await this.waitForElm("#zenMarketplaceHeader h2");
1092-
10931089
const checkIcon = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-check2" viewBox="0 0 16 16"><path d="M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0"/></svg>`;
10941090
const updateIcon = `<svg viewBox="-3 -3 32 32" id="update" data-name="Flat Line" xmlns="http://www.w3.org/2000/svg" class="icon flat-line"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path id="primary" d="M4,12A8,8,0,0,1,18.93,8" style="fill: none; stroke: #000000; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2;"></path><path id="primary-2" data-name="primary" d="M20,12A8,8,0,0,1,5.07,16" style="fill: none; stroke: #000000; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2;"></path><polyline id="primary-3" data-name="primary" points="14 8 19 8 19 3" style="fill: none; stroke: #000000; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2;"></polyline><polyline id="primary-4" data-name="primary" points="10 16 5 16 5 21" style="fill: none; stroke: #000000; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2;"></polyline></g></svg>`;
1095-
1096-
// Update existing UI elements
1097-
document.querySelector("#category-zen-marketplace .category-name").textContent = "Sine";
1091+
1092+
await this.waitForElm("#ZenMarketplaceCategory");
10981093
document.querySelector("#ZenMarketplaceCategory h1").textContent = "Sine Mods";
1094+
await this.waitForElm("#zenMarketplaceHeader h2");
10991095
document.querySelector("#zenMarketplaceHeader h2").textContent = "Installed Mods";
11001096
document.querySelector("#zenMarketplaceGroup .description-deemphasized").textContent = "Sine Mods you have installed are listed here.";
11011097

@@ -1265,6 +1261,7 @@ switch (document.location.pathname){
12651261
case "preferences":
12661262
window.addEventListener("load", async () => {
12671263
if (document.readyState === "complete") {
1264+
document.querySelector("#category-zen-marketplace .category-name").textContent = "Sine";
12681265
const listenerFunc = async () => {
12691266
Sine.modGitHubs = JSON.parse(await UC_API.SharedStorage.widgetCallbacks.get("transfer"));
12701267
Sine.init();

0 commit comments

Comments
 (0)