Browse Source

feat: add openuserjs link

Sven 1 year ago
parent
commit
d6beba9562

+ 2 - 1
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.

BIN
assets/external/openuserjs.png


+ 2 - 1
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"
 }

+ 9 - 1
changelog.md

@@ -1,6 +1,14 @@
+## 1.0.2
+- **Changes:**
+  - Script is now published to OpenUserJS!
+  - Added a OpenUserJS link to the configuration menu
+
+<br>
+
 ## 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
 
 <br>
 

File diff suppressed because it is too large
+ 3 - 2
dist/BetterYTM.user.js


+ 1 - 1
package-lock.json

@@ -1,6 +1,6 @@
 {
   "name": "betterytm",
-  "version": "1.0.1",
+  "version": "1.0.2",
   "lockfileVersion": 3,
   "requires": true,
   "packages": {

+ 1 - 1
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",

+ 1 - 0
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");

+ 1 - 1
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);

Some files were not shown because too many files changed in this diff