Reimu Unhide

Unhide hidden content

As of 2016-03-23. See the latest version.

// ==UserScript==
// @name        Reimu Unhide
// @namespace   https://blog.reimu.net
// @description Unhide hidden content
// @include     https://blog.reimu.net/archives/*
// @exclude     https://blog.reimu.net/archives/category/*
// @exclude     https://blog.reimu.net/archives/4059
// @version     1.03
// @icon         https://blog.reimu.net/wp-content/uploads/2016/02/cropped-logo-32x32.png
// @run-at       document-end
// @grant        none
// ==/UserScript==

function unhide() {
   var pre = document.getElementsByTagName('pre')[0]; 
  pre.style.display = 'block';
 };

function scrollUpOnLoad(evt) {
  window.scroll(0, 0);
}

window.addEventListener('load',unhide,true);
window.addEventListener('load',scrollUpOnLoad,true);