Enquirer Home Page | Twitter | Back to Improbable Island
 

ii-footnote-fixer

Old link: http://enquirer.improbableisland.com/mediagallery/download.php?mid=201402020001505601)

ii-footnote-fixer.user.js
// ==UserScript==
// @name            ii-footnote-fixer
// @namespace       http://enquirer.improbableisland.com/dokuwiki/doku.php?id=greasemonkey:footnotefixer
// @description     Fixes the goddamn footnotes on the wiki
// @match           http://enquirer.improbableisland.com/dokuwiki/*
// @icon            http://improbableisland.com/favicon.ico
// @version         1.4
// @author          Full Metal Lion
// @grant           none
// ==/UserScript==
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('.insitu-footnote{ background-color:#CFB38E !important; }');
//the old height value of 1% seems to exist solely to ruin footnotes. I suspect the devil is involved.
//Update: I am led to believe the old height had something to do with
//correcting for the internal machinations of Internet Explorer;
//in this new light, I stand by my earlier statement confidently.
addGlobalStyle('.dokuwiki{ height:auto !important; }');
1) Please note that the download link is a slightly older version than the source code below, but that that does not affect the utility of the script in any meaningful way.
 
Logged in as: Guest (Guest)
greasemonkey/ii-footnote-fixer.txt · Last modified: 2017/05/28 03:54 (external edit)