|
@@ -17,7 +17,7 @@
|
|
|
// @license AGPL-3.0-only
|
|
|
// @author Sv443
|
|
|
// @copyright Sv443 (https://github.com/Sv443)
|
|
|
-// @icon http://localhost:8710/assets/logo/logo_48.png?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
+// @icon https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/logo/logo_48.png
|
|
|
// @match https://music.youtube.com/*
|
|
|
// @match https://www.youtube.com/*
|
|
|
// @run-at document-start
|
|
@@ -34,32 +34,32 @@
|
|
|
// @grant GM.xmlHttpRequest
|
|
|
// @grant unsafeWindow
|
|
|
// @noframes
|
|
|
-// @resource img-arrow_down http://localhost:8710/assets/icons/arrow_down.svg?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
-// @resource img-delete http://localhost:8710/assets/icons/delete.svg?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
-// @resource img-error http://localhost:8710/assets/icons/error.svg?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
-// @resource img-globe http://localhost:8710/assets/icons/globe.svg?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
-// @resource img-help http://localhost:8710/assets/icons/help.svg?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
-// @resource img-lyrics http://localhost:8710/assets/icons/lyrics.svg?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
-// @resource img-skip_to http://localhost:8710/assets/icons/skip_to.svg?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
-// @resource img-spinner http://localhost:8710/assets/icons/spinner.svg?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
-// @resource img-logo http://localhost:8710/assets/logo/logo_48.png?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
-// @resource img-close http://localhost:8710/assets/icons/close.png?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
-// @resource img-discord http://localhost:8710/assets/external/discord.png?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
-// @resource img-github http://localhost:8710/assets/external/github.png?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
-// @resource img-greasyfork http://localhost:8710/assets/external/greasyfork.png?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
-// @resource img-openuserjs http://localhost:8710/assets/external/openuserjs.png?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
-// @resource css-fix_spacing http://localhost:8710/assets/style/fixSpacing.css?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
-// @resource css-anchor_improvements http://localhost:8710/assets/style/anchorImprovements.css?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
-// @resource doc-changelog http://localhost:8710/changelog.md?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
-// @resource trans-de_DE http://localhost:8710/assets/translations/de_DE.json?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
-// @resource trans-en_US http://localhost:8710/assets/translations/en_US.json?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
-// @resource trans-en_UK http://localhost:8710/assets/translations/en_UK.json?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
-// @resource trans-es_ES http://localhost:8710/assets/translations/es_ES.json?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
-// @resource trans-fr_FR http://localhost:8710/assets/translations/fr_FR.json?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
-// @resource trans-hi_IN http://localhost:8710/assets/translations/hi_IN.json?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
-// @resource trans-ja_JA http://localhost:8710/assets/translations/ja_JA.json?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
-// @resource trans-pt_BR http://localhost:8710/assets/translations/pt_BR.json?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
-// @resource trans-zh_CN http://localhost:8710/assets/translations/zh_CN.json?t=d2f493ed-1b78-4446-91cb-6ac842eb15dc
|
|
|
+// @resource img-arrow_down https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/icons/arrow_down.svg
|
|
|
+// @resource img-delete https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/icons/delete.svg
|
|
|
+// @resource img-error https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/icons/error.svg
|
|
|
+// @resource img-globe https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/icons/globe.svg
|
|
|
+// @resource img-help https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/icons/help.svg
|
|
|
+// @resource img-lyrics https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/icons/lyrics.svg
|
|
|
+// @resource img-skip_to https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/icons/skip_to.svg
|
|
|
+// @resource img-spinner https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/icons/spinner.svg
|
|
|
+// @resource img-logo https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/logo/logo_48.png
|
|
|
+// @resource img-close https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/icons/close.png
|
|
|
+// @resource img-discord https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/external/discord.png
|
|
|
+// @resource img-github https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/external/github.png
|
|
|
+// @resource img-greasyfork https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/external/greasyfork.png
|
|
|
+// @resource img-openuserjs https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/external/openuserjs.png
|
|
|
+// @resource css-fix_spacing https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/style/fixSpacing.css
|
|
|
+// @resource css-anchor_improvements https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/style/anchorImprovements.css
|
|
|
+// @resource doc-changelog https://raw.githubusercontent.com/Sv443/BetterYTM/develop/changelog.md
|
|
|
+// @resource trans-de_DE https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/translations/de_DE.json
|
|
|
+// @resource trans-en_US https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/translations/en_US.json
|
|
|
+// @resource trans-en_UK https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/translations/en_UK.json
|
|
|
+// @resource trans-es_ES https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/translations/es_ES.json
|
|
|
+// @resource trans-fr_FR https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/translations/fr_FR.json
|
|
|
+// @resource trans-hi_IN https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/translations/hi_IN.json
|
|
|
+// @resource trans-ja_JA https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/translations/ja_JA.json
|
|
|
+// @resource trans-pt_BR https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/translations/pt_BR.json
|
|
|
+// @resource trans-zh_CN https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/translations/zh_CN.json
|
|
|
// @require https://cdn.jsdelivr.net/npm/@sv443-network/[email protected]/dist/index.global.js
|
|
|
// @require https://cdn.jsdelivr.net/npm/[email protected]/lib/marked.umd.js
|
|
|
// @grant GM.registerMenuCommand
|
|
@@ -210,7 +210,7 @@ const scriptInfo = {
|
|
|
name: GM.info.script.name,
|
|
|
version: GM.info.script.version,
|
|
|
namespace: GM.info.script.namespace,
|
|
|
- buildNumber: "d103b47", // asserted as generic string instead of literal
|
|
|
+ buildNumber: "2c799a7", // asserted as generic string instead of literal
|
|
|
};/** Options that are applied to every SelectorObserver instance */
|
|
|
const defaultObserverOptions = {
|
|
|
defaultDebounce: 100,
|
|
@@ -722,7 +722,7 @@ var scripts = {
|
|
|
serve: "npm run node-ts -- ./src/tools/serve.ts",
|
|
|
lint: "tsc --noEmit && eslint .",
|
|
|
build: "rollup -c",
|
|
|
- "build-watch": "rollup -c --config-mode development --config-host github --config-branch develop",
|
|
|
+ "build-watch": "rollup -c --config-mode development --config-host github --config-branch develop --config-assetSource=local",
|
|
|
"build-develop": "rollup -c --config-mode development --config-host github --config-branch develop",
|
|
|
"build-prod": "npm run build-prod-gh && npm run build-prod-gf && npm run build-prod-oujs",
|
|
|
"build-prod-base": "rollup -c --config-mode production --config-branch main",
|