From d6beba95620661e0bb551bc05e60ef5530dbb0ae Mon Sep 17 00:00:00 2001 From: Sven Date: Wed, 20 Sep 2023 00:11:36 +0200 Subject: [PATCH] feat: add openuserjs link --- assets/external/README.md | 3 ++- assets/external/openuserjs.png | Bin 0 -> 3182 bytes assets/resources.json | 3 ++- changelog.md | 10 +++++++++- dist/BetterYTM.user.js | 8 +++++--- package-lock.json | 2 +- package.json | 2 +- src/menu/menu_old.ts | 1 + webpack.config.js | 2 +- 9 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 assets/external/openuserjs.png diff --git a/assets/external/README.md b/assets/external/README.md index f419f4dcd5..6ab397d86a 100644 --- a/assets/external/README.md +++ b/assets/external/README.md @@ -1,5 +1,6 @@ ## Note about external assets: -I do not own any of the assets in this folder, I am just re-hosting them here to ensure availability and a predefined size. +I do not own any of the assets in this folder, I am just re-hosting them here to ensure availability and a predefined, small size. They belong to their respective owners: - The GitHub logo is owned by GitHub Inc. - The GreasyFork logo is owned by Jason Barnabe. +- The OpenUserJS logo is owned by OpenUserJS. diff --git a/assets/external/openuserjs.png b/assets/external/openuserjs.png new file mode 100644 index 0000000000000000000000000000000000000000..a8b4ccbd272d52cf49f87e91999c3b7ccde20151 GIT binary patch literal 3182 zcmV-!43YDRP)EX>4Tx062|}Rb6NtRTMs(xw9)I&V$sZrjic+HI%e$QqhFk=>BE1ZQLxAY_vg; z$?V;oX(lt{{G@3qJ`_O^!KmPq;Qw2}Cn0L9?Tam?khm;cmfj@-EE=vY<#k5o0f^m&*sM6pBI0EL{uRZtU4R5Z`^X8`V)zNfJ8YaF z;u6EP09P2E5Ad?jnUOMxUqvh^s*L``+lU9}BlcPZ2XpY-jyyG}ttleQMaed+noc9r zy@UIIwng1*#M^^UkFzj+6yF25_LnMhmf?pGpH<}CbcnAmX|u%;|7E#p3GpKUUAw%6 zatiT2#A8)^yd3Cssj4^8z$>TJnP(8+gLrkpJj%xIMEtceUz`eceo~wa<_{hK;NmJR zuzL3+9o0iVC08s$)v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)XJR&CQ24D;fi5BWOKFTAP3Zei!vwJcgtH04C4C<<3vyZFO_e{javtLfN(+_4$E zc615@ zd%}GDuLeDT%T#q{48SJMxaALWpk6EvZKhOqZe7d#qP!VLpZo0Dys~vIjyY+&LBFuf1a$e z2SSYQ>JL(idREKQeNiHyVq5}>#+S8vHBStVKp zDYECV)NT>R54kT92n{A(`Ov@+hfXz%C3`_Og|-~MWoKpJl-84UlacjRVnfjq=;ye* zDXGq^CRw-_`R-3rGvXnfNxcHsg3tYI;mNWpDuC?>_ zv2#MUwVREstaRzwzuV<-UK=y=!!{yd#nNv(rX!iQ}<-12{ z(5QMB!)tss%uV|2U2C3k}Na#+q1A)ZWm^O{s>pQZgTzRpwMH)E5Ci+Qno%(ov7;l zmCNDWJuPZ+C_2o+6JPRH?S%87jf{m4yA za3CqlFU-wg+vXaompJvzW^&~2I1m%k>z#oRhwILB@Qcgz3{9`Vvzb!)L3J6M*Hn>j zwIrH4d3t>uh)G>=v~>lkZ@9u|=e;!fLkVqstgl{{pT+u0C#$Ml%(YvSf58z4Viyx! zF)1ny)9&x3wWEh?9YNXyAwq+U#=C1}CK<>?-J#@hQ&wjW0FCjM_ UiOVXD@Bjb+07*qoM6N<$f>Wv-NB{r; literal 0 HcmV?d00001 diff --git a/assets/resources.json b/assets/resources.json index e59b56e689..6505e989e1 100644 --- a/assets/resources.json +++ b/assets/resources.json @@ -10,5 +10,6 @@ "skip_to": "skip_to.svg", "github": "external/github.png", - "greasyfork": "external/greasyfork.png" + "greasyfork": "external/greasyfork.png", + "openuserjs": "external/openuserjs.png" } diff --git a/changelog.md b/changelog.md index d304edad32..2eb26f331b 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,14 @@ +## 1.0.2 +- **Changes:** + - Script is now published to OpenUserJS! + - Added a OpenUserJS link to the configuration menu + +
+ ## 1.0.1 - **Changes:** - - Added a greasyfork link to the configuration menu + - Script is now published to GreasyFork! + - Added a GreasyFork link to the configuration menu
diff --git a/dist/BetterYTM.user.js b/dist/BetterYTM.user.js index 1e45d105a1..5e0b3edbaf 100644 --- a/dist/BetterYTM.user.js +++ b/dist/BetterYTM.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name BetterYTM // @namespace https://github.com/Sv443/BetterYTM -// @version 1.0.1 +// @version 1.0.2 // @description Configurable layout and UX improvements for YouTube Music // @description:de Konfigurierbares Layout und UX-Verbesserungen für YouTube Music // @homepageURL https://github.com/Sv443/BetterYTM#readme @@ -32,6 +32,7 @@ // @resource skip_to https://raw.githubusercontent.com/Sv443/BetterYTM/main/assets/skip_to.svg // @resource github https://raw.githubusercontent.com/Sv443/BetterYTM/main/assets/external/github.png // @resource greasyfork https://raw.githubusercontent.com/Sv443/BetterYTM/main/assets/external/greasyfork.png +// @resource openuserjs https://raw.githubusercontent.com/Sv443/BetterYTM/main/assets/external/openuserjs.png // ==/UserScript== /* ▄▄▄ ▄ ▄▄▄▄▄▄ ▄ @@ -469,7 +470,7 @@ const constants_scriptInfo = { name: GM.info.script.name, version: GM.info.script.version, namespace: GM.info.script.namespace, - buildNumber: "ea97e21", // assert as generic string instead of literal + buildNumber: "c8294c3", // assert as generic string instead of literal }; ;// CONCATENATED MODULE: ./src/utils.ts @@ -682,7 +683,7 @@ function initSiteEvents() { ;// CONCATENATED MODULE: ./changelog.md // Module -var code = "

1.0.1

  • Changes:
    • Added a greasyfork link to the configuration menu

1.0.0

  • Added Features:
    • Added configuration menu to toggle and configure all features
    • Added lyrics button to each song in the queue
    • Added "remove from queue" button to each song in the queue
    • Use number keys to skip to a specific point in the song
    • Added feature to make volume slider bigger and volume control finer
    • Added percentage label next to the volume slider & title on hover
    • Improvements to link hitboxes & more links in general
    • Permanent toast notifications can be automatically closed now
    • Remove tracking parameter &si=... from links in the share menu
    • Fix spacing issues throughout the site
    • Added a button to scroll to the currently active song in the queue
    • Added an easter egg to the watermark and config menu option :)
  • Changes & Fixes:
    • Now the lyrics button will directly link to the lyrics (using my API geniURL)
    • Video time is now kept when switching site on regular YT too
    • Fixed compatibility with the new site design
    • A loading indicator is shown while the lyrics are loading
    • Images are now smaller and cached by the userscript extension
    • Song names with hyphens are now resolved better for lyrics lookup
    • Site switch with F9 will now keep the video time
    • Moved lots of utility code to my new library UserUtils

0.2.0

  • Added Features:
    • Switch between YouTube and YT Music (with F9 by default)
    • Search for song lyrics with new button in media controls
    • Remove "Upgrade to YTM Premium" tab

0.1.0

  • Added support for arrow keys to skip forward or backward (currently only by fixed 10 second interval)
"; +var code = "

1.0.2

  • Changes:
    • Script is now published to OpenUserJS!
    • Added a OpenUserJS link to the configuration menu

1.0.1

  • Changes:
    • Script is now published to GreasyFork!
    • Added a GreasyFork link to the configuration menu

1.0.0

  • Added Features:
    • Added configuration menu to toggle and configure all features
    • Added lyrics button to each song in the queue
    • Added "remove from queue" button to each song in the queue
    • Use number keys to skip to a specific point in the song
    • Added feature to make volume slider bigger and volume control finer
    • Added percentage label next to the volume slider & title on hover
    • Improvements to link hitboxes & more links in general
    • Permanent toast notifications can be automatically closed now
    • Remove tracking parameter &si=... from links in the share menu
    • Fix spacing issues throughout the site
    • Added a button to scroll to the currently active song in the queue
    • Added an easter egg to the watermark and config menu option :)
  • Changes & Fixes:
    • Now the lyrics button will directly link to the lyrics (using my API geniURL)
    • Video time is now kept when switching site on regular YT too
    • Fixed compatibility with the new site design
    • A loading indicator is shown while the lyrics are loading
    • Images are now smaller and cached by the userscript extension
    • Song names with hyphens are now resolved better for lyrics lookup
    • Site switch with F9 will now keep the video time
    • Moved lots of utility code to my new library UserUtils

0.2.0

  • Added Features:
    • Switch between YouTube and YT Music (with F9 by default)
    • Search for song lyrics with new button in media controls
    • Remove "Upgrade to YTM Premium" tab

0.1.0

  • Added support for arrow keys to skip forward or backward (currently only by fixed 10 second interval)
"; // Exports /* harmony default export */ var changelog = (code); ;// CONCATENATED MODULE: ./src/menu/menu_old.ts @@ -753,6 +754,7 @@ function addMenu() { }; addLink(yield getResourceUrl("github"), constants_scriptInfo.namespace, `Open ${constants_scriptInfo.name} on GitHub`); addLink(yield getResourceUrl("greasyfork"), "https://greasyfork.org/en/scripts/475682-betterytm", `Open ${constants_scriptInfo.name} on GreasyFork`); + addLink(yield getResourceUrl("openuserjs"), "https://openuserjs.org/scripts/Sv443/BetterYTM", `Open ${constants_scriptInfo.name} on OpenUserJS`); const closeElem = document.createElement("img"); closeElem.classList.add("bytm-menu-close"); closeElem.src = yield getResourceUrl("close"); diff --git a/package-lock.json b/package-lock.json index 8fda10f741..4efd6073d0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "betterytm", - "version": "1.0.1", + "version": "1.0.2", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index 5dbcbdfdae..a33e78a282 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "betterytm", "userscriptName": "BetterYTM", - "version": "1.0.1", + "version": "1.0.2", "description": "Configurable layout and UX improvements for YouTube Music", "description:de": "Konfigurierbares Layout und UX-Verbesserungen für YouTube Music", "homepage": "https://github.com/Sv443/BetterYTM", diff --git a/src/menu/menu_old.ts b/src/menu/menu_old.ts index f6b4367c1b..098f87fb91 100644 --- a/src/menu/menu_old.ts +++ b/src/menu/menu_old.ts @@ -80,6 +80,7 @@ export async function addMenu() { addLink(await getResourceUrl("github"), scriptInfo.namespace, `Open ${scriptInfo.name} on GitHub`); addLink(await getResourceUrl("greasyfork"), "https://greasyfork.org/en/scripts/475682-betterytm", `Open ${scriptInfo.name} on GreasyFork`); + addLink(await getResourceUrl("openuserjs"), "https://openuserjs.org/scripts/Sv443/BetterYTM", `Open ${scriptInfo.name} on OpenUserJS`); const closeElem = document.createElement("img"); closeElem.classList.add("bytm-menu-close"); diff --git a/webpack.config.js b/webpack.config.js index fab7010e36..7e5bb96298 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -90,8 +90,8 @@ const getConfig = (env) => { }), { apply: (compiler) => { - console.log("Running post-build script...\n"); compiler.hooks.afterEmit.tap("AfterEmitPlugin", () => { + console.log("Running post-build script...\n"); exec(`npm run --silent post-build -- mode=${mode}`, (_err, stdout, stderr) => { stdout && process.stdout.write(stdout); stderr && process.stderr.write(stderr);