SCPLite

removes many things except the text

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

  1. // ==UserScript==
  2. // @name SCPLite
  3. // @namespace https://scp-wiki.wikidot.com/
  4. // @version 1.0
  5. // @author NextDev65
  6. // @description removes many things except the text
  7. // @match https://scp-wiki.wikidot.com*/*
  8. // @resource https://gist.github.com/NextDev65/da489b2da4302df9d4a30179ba29c2b4/raw/img_fade.js
  9. // @run-at document-end
  10. // @grant GM_getResourceText
  11. // @noframes
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16.  
  17. // https://www.tampermonkey.net/documentation.php#_require
  18. // Points to a JavaScript file that is loaded and executed before the script itself starts running.
  19. // @require https://gist.github.com/NextDev65/da489b2da4302df9d4a30179ba29c2b4/raw/7c47c369fc7c8f8790c3b70a6fa1a3ba8cf557f5/img_fade.js
  20.  
  21. // https://www.tampermonkey.net/documentation.php#_resource
  22. // Preloads resources that can by accessed via GM_getResourceURL and GM_getResourceText by the script.
  23. // @resource img_fadejs https://gist.github.com/NextDev65/da489b2da4302df9d4a30179ba29c2b4/raw/7c47c369fc7c8f8790c3b70a6fa1a3ba8cf557f5/img_fade.js
  24.  
  25. Function(GM_getResourceText('img_fadejs'))();
  26. document.getElementById('header').remove();
  27. document.getElementById('side-bar').remove();
  28. document.getElementById('container-wrap').id = "container-wrap-o";
  29. document.getElementById('page-content').scrollIntoView();
  30. document.getElementById('footer').remove();
  31. document.getElementById('license-area').remove();
  32. document.getElementById('footer-bar').remove();
  33. })();