Last active
June 16, 2019 20:52
-
-
Save darkconsole/9ee1733ddf43e9397e3134b53db70b45 to your computer and use it in GitHub Desktop.
Custom Style Scripts script for magic image board surfing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch(document.domain) { | |
case 'gelbooru.com': | |
if(document.querySelector('#image') !== null) | |
AutoImageGelbooru(); | |
break; | |
} | |
function AutoImageGelbooru() { | |
if(document.querySelector('#resized_notice a:first-of-type') !== null) | |
document.querySelector('#resized_notice a:first-of-type').click(); | |
setTimeout(function(){ | |
location.href=document.querySelector('#image').src; | |
return; | |
},750); | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment