Jelajahi Sumber

feat: new icon

Sv443 1 tahun lalu
induk
melakukan
fa5e2461b8
9 mengubah file dengan 10 tambahan dan 27 penghapusan
  1. 2 2
      dist/BetterYTM.user.js
  2. 1 18
      package-lock.json
  3. 3 4
      package.json
  4. TEMPAT SAMPAH
      resources/icon/1000.png
  5. TEMPAT SAMPAH
      resources/icon/200.png
  6. TEMPAT SAMPAH
      resources/icon/icon.png
  7. TEMPAT SAMPAH
      resources/icon/icon_1000.png
  8. TEMPAT SAMPAH
      resources/icon/pdn/v2.2.pdn
  9. 4 3
      src/tools/post-build.ts

+ 2 - 2
dist/BetterYTM.user.js

@@ -7,10 +7,10 @@
 // @description:de  Verbesserungen für YouTube Music
 // @license         MIT
 // @author          Sv443
-// @copyright       Sv443 <[email protected]>
+// @copyright       Sv443 (https://github.com/Sv443)
 // @match           https://music.youtube.com/*
 // @match           https://www.youtube.com/*
-// @icon            https://raw.githubusercontent.com/Sv443/BetterYTM/main/resources/icon/v2.1_200.png
+// @icon            https://raw.githubusercontent.com/Sv443/BetterYTM/main/resources/icon/icon.png
 // @run-at          document-start
 // @grant           GM.getValue
 // @grant           GM.setValue

+ 1 - 18
package-lock.json

@@ -9,8 +9,7 @@
       "version": "1.0.0",
       "license": "MIT",
       "dependencies": {
-        "@billjs/event-emitter": "^1.0.3",
-        "marked": "^5.0.3"
+        "@billjs/event-emitter": "^1.0.3"
       },
       "devDependencies": {
         "@types/greasemonkey": "^4.0.4",
@@ -2462,17 +2461,6 @@
         "node": ">= 12"
       }
     },
-    "node_modules/marked": {
-      "version": "5.0.3",
-      "resolved": "https://registry.npmjs.org/marked/-/marked-5.0.3.tgz",
-      "integrity": "sha512-KUONa43Uk74uUNWMxh6lfaNYmSAsRMiDAaX8QBCCRVXzEufR0zX6T33vrGbvTnQLL02ungDM3KSzZtO+chJaHg==",
-      "bin": {
-        "marked": "bin/marked.js"
-      },
-      "engines": {
-        "node": ">= 18"
-      }
-    },
     "node_modules/merge-stream": {
       "version": "2.0.0",
       "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",
@@ -5843,11 +5831,6 @@
         }
       }
     },
-    "marked": {
-      "version": "5.0.3",
-      "resolved": "https://registry.npmjs.org/marked/-/marked-5.0.3.tgz",
-      "integrity": "sha512-KUONa43Uk74uUNWMxh6lfaNYmSAsRMiDAaX8QBCCRVXzEufR0zX6T33vrGbvTnQLL02ungDM3KSzZtO+chJaHg=="
-    },
     "merge-stream": {
       "version": "2.0.0",
       "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",

+ 3 - 4
package.json

@@ -6,9 +6,9 @@
   "main": "./src/BetterYTM.user.ts",
   "type": "module",
   "scripts": {
-    "test": "ts-node --esm ./test.ts",
+    "test": "node --loader ts-node/esm ./test.ts",
     "build": "webpack",
-    "post-build": "ts-node --esm ./src/tools/post-build.ts",
+    "post-build": "node --loader ts-node/esm ./src/tools/post-build.ts",
     "serve": "http-server -s -c 5 -p 8710 .",
     "watch": "nodemon --exec \"npm run build && npm run serve\"",
     "lint": "eslint ."
@@ -26,8 +26,7 @@
     "url": "https://github.com/Sv443/BetterYTM/issues"
   },
   "dependencies": {
-    "@billjs/event-emitter": "^1.0.3",
-    "marked": "^5.0.3"
+    "@billjs/event-emitter": "^1.0.3"
   },
   "devDependencies": {
     "@types/greasemonkey": "^4.0.4",

TEMPAT SAMPAH
resources/icon/1000.png


TEMPAT SAMPAH
resources/icon/200.png


TEMPAT SAMPAH
resources/icon/icon.png


TEMPAT SAMPAH
resources/icon/icon_1000.png


TEMPAT SAMPAH
resources/icon/pdn/v2.2.pdn


+ 4 - 3
src/tools/post-build.ts

@@ -3,8 +3,9 @@ import { dirname, join } from "path";
 import { fileURLToPath } from "url";
 import pkg from "../../package.json" assert { type: "json" };
 
+const repo = "Sv443/BetterYTM";
 const userscriptName = "BetterYTM.user.js";
-const scriptUrl = `https://raw.githubusercontent.com/Sv443/BetterYTM/main/dist/${userscriptName}`;
+const scriptUrl = `https://raw.githubusercontent.com/${repo}/main/dist/${userscriptName}`;
 
 const header = `\
 // ==UserScript==
@@ -16,10 +17,10 @@ const header = `\
 // @description:de  Verbesserungen für YouTube Music
 // @license         ${pkg.license}
 // @author          ${pkg.author.name}
-// @copyright       ${pkg.author.name} <${pkg.author.email}>
+// @copyright       ${pkg.author.name} (${pkg.author.url})
 // @match           https://music.youtube.com/*
 // @match           https://www.youtube.com/*
-// @icon            https://raw.githubusercontent.com/Sv443/BetterYTM/main/resources/icon/v2.1_200.png
+// @icon            https://raw.githubusercontent.com/${repo}/main/resources/icon/icon.png
 // @run-at          document-start
 // @grant           GM.getValue
 // @grant           GM.setValue