2 // @name auto-go-to-image
3 // @namespace https://jasonwoof.com/
5 // @description skip splash screen on image hosting sites
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);
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; } "
26 // this should zoom into the image on imgnip.com anyway
27 // window.addEventListener("load", function(e) {
28 // setTimeout(function() {window.adjustImage();}, 1000);