Unhide hidden content
当前为
// ==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.10
// @icon https://blog.reimu.net/wp-content/uploads/2016/02/cropped-logo-32x32.png
// @run-at document-end
// @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);
}
function scrollUpOnLoad(evt) {
window.scroll(0, 0);
}
addGlobalStyle('pre { display: inline ! important; padding: 0 ! important;}');
window.addEventListener('load',scrollUpOnLoad,true);