From c5ffcbfe73d3dc9904c87f1c77b4d40ba2aa94ef Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Tue, 24 Mar 2015 11:30:45 -0400 Subject: [PATCH] add skip-splash --- skip-splash.user.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 skip-splash.user.js diff --git a/skip-splash.user.js b/skip-splash.user.js new file mode 100644 index 0000000..eb3504f --- /dev/null +++ b/skip-splash.user.js @@ -0,0 +1,30 @@ +// ==UserScript== +// @name auto-go-to-image +// @namespace https://jasonwoof.com/ +// @grant none +// @description skip splash screen on image hosting sites +// @version 5 +// ==/UserScript== + +(function() +{ + var add_css = function(css) { + var style = document.createElement("style"); + style.type = "text/css"; + style.appendChild(document.createTextNode(css)); + document.getElementsByTagName("head")[0].appendChild(style); + } + + add_css( + "#overlayBg.overlayBg, #popupOverlay.popupOverlay { display: none !important; } " + + // "#main_image, #imagen img, #shortURL-content img { width: auto !important; height: auto !important; max-height: none !important; }" + + "img { width: auto !important; height: auto !important; max-height: none !important; } " + + "#resized { display: none !important; } " + + "#full_image { max-width: 100% !important; position: absolute !important; z-index: 10; } " + ); + + // this should zoom into the image on imgnip.com anyway + // window.addEventListener("load", function(e) { + // setTimeout(function() {window.adjustImage();}, 1000); + // }, false); +})(); -- 1.7.10.4