Site Enhance

Make site more user-friendly and modern.

  1. // ==UserScript==
  2. // @name Site Enhance
  3. // @namespace https://kingfish404.cn/
  4. // @version 0.1
  5. // @description Make site more user-friendly and modern.
  6. // @author Kingfish404
  7. // @match *://*/*
  8. // @grant none
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. (function () {
  13. 'use strict';
  14. switch (document.location.host) {
  15. case 'www.marxists.org':
  16. {
  17. const table = document.querySelector('table');
  18. table.style.margin = 'auto';
  19. table.style.maxWidth = '900px';
  20. }
  21. break;
  22. default:
  23. break;
  24. }
  25. })();