Update tabu.js

main
witchdocsec 2022-11-03 09:04:35 +00:00 committed by GitHub
parent 233c0bbfb6
commit c229c0f229
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -1,16 +1,19 @@
url="<url to tabunder to>";
imgsrc="ffox.svg";
clk=false;
if (window.location.hash == "#1") {
window.opener.location = url;
} else{
if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1){
document.addEventListener("click", pop);
if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1 && !clk){
image=document.createElement("img");
image.src=imgsrc;
image.width=900;
image.style="margin: 0;position: absolute;top: 50%; left: 50%;-ms-transform: translateY(-50%);transform: translate(-50%, -50%);";
document.body.appendChild(image);
clk=true;
}
document.addEventListener("click", pop);
function pop() {
window.open("#1");
}