Browse Source

ref: stuff

Sven 11 months ago
parent
commit
f680655754
4 changed files with 11 additions and 11 deletions
  1. 2 2
      README-summary.md
  2. 2 2
      README.md
  3. 1 1
      src/features/layout.ts
  4. 6 6
      src/index.ts

+ 2 - 2
README-summary.md

@@ -80,8 +80,8 @@ Also refer to the [plugin creation guide](./contributing.md#developing-a-plugin-
 <br><br>
 <br><br>
 
 
 ## Support:
 ## Support:
-If you have any questions, issues, or feature requests, please [open an issue here](https://github.com/Sv443/BetterYTM/issues/new/choose).  
-You can also join the Discord server and ask your questions there or just hang out with other community members and me:  
+If you have any questions, issues, or feature requests, please [open an issue here.](https://github.com/Sv443/BetterYTM/issues/new/choose)  
+You can also join my Discord server and ask your questions there or just hang out with other community members and me:  
   
   
 [![Discord](https://img.shields.io/discord/565933531214118942)](https://discord.gg/aBH4uRG)
 [![Discord](https://img.shields.io/discord/565933531214118942)](https://discord.gg/aBH4uRG)
 
 

+ 2 - 2
README.md

@@ -84,8 +84,8 @@ Also refer to the [plugin creation guide](./contributing.md#developing-a-plugin-
 <br><br>
 <br><br>
 
 
 ## Support:
 ## Support:
-If you have any questions, issues, or feature requests, please [open an issue here](https://github.com/Sv443/BetterYTM/issues/new/choose).  
-You can also join the Discord server and ask your questions there or just hang out with other community members and me:  
+If you have any questions, issues, or feature requests, please [open an issue here.](https://github.com/Sv443/BetterYTM/issues/new/choose)  
+You can also join my Discord server and ask your questions there or just hang out with other community members and me:  
   
   
 [![Discord](https://img.shields.io/discord/565933531214118942)](https://discord.gg/aBH4uRG)
 [![Discord](https://img.shields.io/discord/565933531214118942)](https://discord.gg/aBH4uRG)
 
 

+ 1 - 1
src/features/layout.ts

@@ -379,7 +379,7 @@ export async function fixSpacing() {
 
 
 //#region above queue btns
 //#region above queue btns
 
 
-export async function addAboveQueueBtns() {
+export async function initAboveQueueBtns() {
   const { scrollToActiveSongBtn, clearQueueBtn } = getFeatures();
   const { scrollToActiveSongBtn, clearQueueBtn } = getFeatures();
 
 
   if(!scrollToActiveSongBtn && !clearQueueBtn)
   if(!scrollToActiveSongBtn && !clearQueueBtn)

+ 6 - 6
src/index.ts

@@ -11,12 +11,12 @@ import {
   // layout
   // layout
   addWatermark, removeUpgradeTab,
   addWatermark, removeUpgradeTab,
   initRemShareTrackParam, fixSpacing,
   initRemShareTrackParam, fixSpacing,
-  addAboveQueueBtns, initThumbnailOverlay,
-  initHideCursorOnIdle, fixHdrIssues,
+  initThumbnailOverlay, initHideCursorOnIdle,
+  fixHdrIssues,
   // volume
   // volume
   initVolumeFeatures,
   initVolumeFeatures,
   // song lists
   // song lists
-  initQueueButtons,
+  initQueueButtons, initAboveQueueBtns,
   // behavior
   // behavior
   initBeforeUnloadHook, disableBeforeUnload,
   initBeforeUnloadHook, disableBeforeUnload,
   initAutoCloseToasts, initRememberSongTime,
   initAutoCloseToasts, initRememberSongTime,
@@ -161,9 +161,6 @@ async function onDomLoad() {
       if(features.fixSpacing)
       if(features.fixSpacing)
         ftInit.push(fixSpacing());
         ftInit.push(fixSpacing());
 
 
-      if(features.scrollToActiveSongBtn)
-        ftInit.push(addAboveQueueBtns());
-
       if(features.removeUpgradeTab)
       if(features.removeUpgradeTab)
         ftInit.push(removeUpgradeTab());
         ftInit.push(removeUpgradeTab());
 
 
@@ -184,6 +181,9 @@ async function onDomLoad() {
       if(features.lyricsQueueButton || features.deleteFromQueueButton)
       if(features.lyricsQueueButton || features.deleteFromQueueButton)
         ftInit.push(initQueueButtons());
         ftInit.push(initQueueButtons());
 
 
+      if(features.scrollToActiveSongBtn)
+        ftInit.push(initAboveQueueBtns());
+
       //#region (ytm) behavior
       //#region (ytm) behavior
 
 
       if(features.closeToastsTimeout > 0)
       if(features.closeToastsTimeout > 0)