SCPLite

removes many things except the text

当前为 2021-07-09 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==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();
})();