JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
add skip-splash
[userscripts.git] / skip-splash.user.js
1 // ==UserScript==
2 // @name        auto-go-to-image
3 // @namespace   https://jasonwoof.com/
4 // @grant       none
5 // @description skip splash screen on image hosting sites
6 // @version     5
7 // ==/UserScript==
8
9 (function() 
10 {
11         var add_css = function(css) { 
12                 var style = document.createElement("style"); 
13                 style.type = "text/css"; 
14                 style.appendChild(document.createTextNode(css)); 
15                 document.getElementsByTagName("head")[0].appendChild(style); 
16         } 
17
18         add_css(
19                 "#overlayBg.overlayBg, #popupOverlay.popupOverlay { display: none !important; } " +
20                 // "#main_image, #imagen img, #shortURL-content img { width: auto !important; height: auto !important; max-height: none !important; }" +
21                 "img { width: auto !important; height: auto !important; max-height: none !important; } " +
22                 "#resized { display: none !important; } " +
23                 "#full_image { max-width: 100% !important; position: absolute !important; z-index: 10; } "
24         );
25
26         // this should zoom into the image on imgnip.com anyway
27         // window.addEventListener("load", function(e) {
28         // setTimeout(function() {window.adjustImage();}, 1000);
29         // }, false);
30 })();