aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/assets/js/context_a.min.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/assets/js/context_a.min.js')
-rw-r--r--app/src/main/assets/js/context_a.min.js20
1 files changed, 14 insertions, 6 deletions
diff --git a/app/src/main/assets/js/context_a.min.js b/app/src/main/assets/js/context_a.min.js
index 97799c33..89e7c2f6 100644
--- a/app/src/main/assets/js/context_a.min.js
+++ b/app/src/main/assets/js/context_a.min.js
@@ -13,13 +13,21 @@ var o=t.getAttribute("href")
;if(r||(r=t.parentNode.querySelector('[style*="background-image: url("]')),
r){
var a=window.getComputedStyle(r,null).backgroundImage.slice(5,-2)
-;console.log("Context image",a),
-"undefined"!=typeof Frost&&Frost.loadImage(a,n)
-}else{
-if(o.includes("photoset_token"))return
-;console.log("Context Content",o,n),"undefined"!=typeof Frost&&Frost.contextMenu(o,n)
+;return console.log("Context image",a),
+"undefined"!=typeof Frost&&Frost.loadImage(a,n),
+e.stopPropagation(),void e.preventDefault()
+}
+var i=t.querySelector("img[src*=scontent]")
+;if(i){
+var l=i.src
+;return console.log("Context img",l),"undefined"!=typeof Frost&&Frost.loadImage(l,n),
+e.stopPropagation(),
+void e.preventDefault()
}
-e.stopPropagation(),e.preventDefault()
+if(o.includes("photoset_token"))return
+;console.log("Context Content",o,n),"undefined"!=typeof Frost&&Frost.contextMenu(o,n),
+e.stopPropagation(),
+e.preventDefault()
}
}
;document.addEventListener("contextmenu",_frostAContext,!0),document.addEventListener("touchend",function(e){