aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/assets/js/context_a.min.js
blob: dc68cb3bcfc61a219b64df127bc692e9e3054157 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
if(!window.hasOwnProperty("frost_context_a")){
console.log("frost_context_a frost_click_a"),
window.frost_context_a=!0
;var _frostAContext=function(t){
var e=t.target||t.srcElement
;if("A"!==e.tagName&&(e=e.parentNode),"A"!==e.tagName&&(e=e.parentNode),
"A"===e.tagName&&"#"!==e.getAttribute("href")){
var o=e.getAttribute("href")
;if(o.includes("photoset_token"))return
;console.log("Context Intercept",o),Frost.contextMenu(o),
t.stopPropagation(),t.preventDefault()
}
}
;document.addEventListener("contextmenu",_frostAContext,!0)
}