Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Anarios/return-youtube-dislike.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Extensions/combined/src/state.js')
-rw-r--r--Extensions/combined/src/state.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/Extensions/combined/src/state.js b/Extensions/combined/src/state.js
index df9d561..822d9b2 100644
--- a/Extensions/combined/src/state.js
+++ b/Extensions/combined/src/state.js
@@ -39,6 +39,10 @@ function isShorts() {
return location.pathname.startsWith("/shorts");
}
+function isNewDesign() {
+ return document.getElementById("comment-teaser") !== null;
+}
+
let mutationObserver = new Object();
if (isShorts() && mutationObserver.exists !== true) {
@@ -330,6 +334,7 @@ export {
isShorts,
isVideoDisliked,
isVideoLiked,
+ isNewDesign,
getState,
setState,
setInitialState,