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 7160903..15684eb 100644
--- a/Extensions/combined/src/state.js
+++ b/Extensions/combined/src/state.js
@@ -40,6 +40,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) {
@@ -332,6 +336,7 @@ export {
isShorts,
isVideoDisliked,
isVideoLiked,
+ isNewDesign,
getState,
setState,
setInitialState,