SCPLite

removes many things except the text

目前为 2021-07-09 提交的版本。查看 最新版本

// ==UserScript==
// @name         SCPLite
// @namespace    https://scp-wiki.wikidot.com/
// @version      1.0
// @author       NextDev65
// @description  removes many things except the text
// @match        https://scp-wiki.wikidot.com*/*
// @resource      https://gist.github.com/NextDev65/da489b2da4302df9d4a30179ba29c2b4/raw/img_fade.js
// @run-at       document-end
// @grant        GM_getResourceText
// @noframes
// ==/UserScript==

(function() {
    'use strict';

    // https://www.tampermonkey.net/documentation.php#_require
    // Points to a JavaScript file that is loaded and executed before the script itself starts running.
    // @require      https://gist.github.com/NextDev65/da489b2da4302df9d4a30179ba29c2b4/raw/7c47c369fc7c8f8790c3b70a6fa1a3ba8cf557f5/img_fade.js

    // https://www.tampermonkey.net/documentation.php#_resource
    // Preloads resources that can by accessed via GM_getResourceURL and GM_getResourceText by the script.
    // @resource     img_fadejs https://gist.github.com/NextDev65/da489b2da4302df9d4a30179ba29c2b4/raw/7c47c369fc7c8f8790c3b70a6fa1a3ba8cf557f5/img_fade.js

    Function(GM_getResourceText('img_fadejs'))();
    document.getElementById('header').remove();
    document.getElementById('side-bar').remove();
    document.getElementById('container-wrap').id = "container-wrap-o";
    document.getElementById('page-content').scrollIntoView();
    document.getElementById('footer').remove();
    document.getElementById('license-area').remove();
    document.getElementById('footer-bar').remove();
})();