Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Efreak/96d3777fdf2f8925ee60373e76891cbc to your computer and use it in GitHub Desktop.
Save Efreak/96d3777fdf2f8925ee60373e76891cbc to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Styles for Seraph Inn's Inverloch
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Compress the header. Center the comic, make it bigger (zoom main content, zoom comic a little more- this may cause graphical issues). Hide the copyright (we all know who made it) but not the ads (use an ad blocker if you care. Project Wonderful is OK).
// @author Efreak
// @match http://inverloch.seraph-inn.com/viewcomic.php?*
// @grant none
// ==/UserScript==
(function() {
'use strict';
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
addGlobalStyle('html { zoom:1.25}');
addGlobalStyle('#content { margin: auto;position:relative; left:0px; top:-10px; height:910px!important}');
addGlobalStyle('#achbit { display:none }');
addGlobalStyle('#clouds { top: 21px;}');
addGlobalStyle('#logo { top: 62px;}');
addGlobalStyle('#slogan { top: 100px; left:400px}');
addGlobalStyle('#acheron { top: -11px;}');
addGlobalStyle('#nav, #main { top: 145px;}');
addGlobalStyle('#donate { top: 353px;}');
addGlobalStyle('#main { padding:0;}');
addGlobalStyle('#main > p:nth-child(1) { zoom:1.1; margin-bottom:0;}');
document.querySelector('#main > p:nth-child(1)').onclick = function(){document.querySelector('#main > div > h1 > a:nth-child(2)').click();};
addGlobalStyle('#main > p:nth-child(4) { display:none}');
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment