|
@@ -2,11 +2,11 @@ import { addParent, autoPlural, debounce, fetchAdvanced, pauseFor } from "@sv443
|
|
import { getFeature, getFeatures } from "../config.js";
|
|
import { getFeature, getFeatures } from "../config.js";
|
|
import { siteEvents } from "../siteEvents.js";
|
|
import { siteEvents } from "../siteEvents.js";
|
|
import { addSelectorListener } from "../observers.js";
|
|
import { addSelectorListener } from "../observers.js";
|
|
-import { error, getResourceUrl, log, warn, t, onInteraction, openInTab, getBestThumbnailUrl, getDomain, addStyle, currentMediaType, domLoaded, waitVideoElementReady, getVideoTime, fetchCss, addStyleFromResource, fetchVideoVotes, getWatchId, type VideoVotesObj, getLocale, tp } from "../utils/index.js";
|
|
|
|
|
|
+import { error, getResourceUrl, log, warn, t, onInteraction, openInTab, getBestThumbnailUrl, getDomain, addStyle, currentMediaType, domLoaded, waitVideoElementReady, getVideoTime, fetchCss, addStyleFromResource, fetchVideoVotes, getWatchId, getLocale, tp } from "../utils/index.js";
|
|
import { mode, scriptInfo } from "../constants.js";
|
|
import { mode, scriptInfo } from "../constants.js";
|
|
import { openCfgMenu } from "../menu/menu_old.js";
|
|
import { openCfgMenu } from "../menu/menu_old.js";
|
|
import { createCircularBtn, createRipple } from "../components/index.js";
|
|
import { createCircularBtn, createRipple } from "../components/index.js";
|
|
-import type { ResourceKey } from "../types.js";
|
|
|
|
|
|
+import type { ResourceKey, VideoVotesObj } from "../types.js";
|
|
import "./layout.css";
|
|
import "./layout.css";
|
|
|
|
|
|
//#region cfg menu btns
|
|
//#region cfg menu btns
|
|
@@ -381,7 +381,7 @@ export async function initAboveQueueBtns() {
|
|
|
|
|
|
activeItem.scrollIntoView({
|
|
activeItem.scrollIntoView({
|
|
behavior: evt.shiftKey ? "instant" : "smooth",
|
|
behavior: evt.shiftKey ? "instant" : "smooth",
|
|
- block: evt.ctrlKey ? "end" : "center",
|
|
|
|
|
|
+ block: evt.ctrlKey || evt.altKey ? "end" : "center",
|
|
inline: "center",
|
|
inline: "center",
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -713,7 +713,7 @@ export async function fixHdrIssues() {
|
|
log("Fixed HDR issues");
|
|
log("Fixed HDR issues");
|
|
}
|
|
}
|
|
|
|
|
|
-//#region show dis-/likes
|
|
|
|
|
|
+//#region show vote nums
|
|
|
|
|
|
/** Shows the amount of likes and dislikes on the current song */
|
|
/** Shows the amount of likes and dislikes on the current song */
|
|
export async function initShowVotes() {
|
|
export async function initShowVotes() {
|