User Tools

Site Tools


greasemonkey:ii-footnote-fixer

ii-footnote-fixer

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; }');

Version 1.0

greasemonkey/ii-footnote-fixer.txt · Last modified: 2023/11/21 18:04 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki