Create tabu.js

main
witchdocsec 2022-11-02 09:13:50 +00:00 committed by GitHub
commit 8e7cfebb8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 0 deletions

17
tabu.js Normal file
View File

@ -0,0 +1,17 @@
url="<url to tabunder to>";
imgsrc="ffox.svg";
if (window.location.hash == "#1") {
window.opener.location = url;
} else{
if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1){
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);
}
document.addEventListener("click", pop);
function pop() {
window.open("#1");
}
}