better-t66y

2020/3/25 下午5:47:29

  1. // ==UserScript==
  2. // @name better-t66y
  3. // @namespace anybetter
  4. // @match *://www.t66y.com/*
  5. // @grant none
  6. // @version 1.2
  7. // @author -
  8. // @description 2020/3/25 下午5:47:29
  9. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. console.log(window.location.pathname);
  14. 'use strict';
  15. jQuery.noConflict();
  16. var table = document.querySelectorAll('.sptable_do_not_remove');
  17. if (document.querySelectorAll('.sptable_do_not_remove span').length > 0) {
  18. var str = document.querySelectorAll('.sptable_do_not_remove span') [0].className;
  19. for (var j = 0; j < table.length; j++) {
  20. var td = table[j].querySelectorAll('td');
  21. for (var i = 0; i < td.length; i++) {
  22. td[i].innerHTML = '<span class=' + str + '></span>';
  23. }
  24. }
  25. } else {
  26. for (var k = 0; k < table.length; k++) {
  27. table[k].style.display = 'none';
  28. }
  29. }
  30. jQuery("div.tpc_content").css("font-size", "20px").css("max-width", "800px");
  31. jQuery("div.tpc_content>span").css("font-size", "20px");
  32. jQuery("span.f18").css("font-size", "20px");
  33. jQuery("span.f16").css("font-size", "20px");
  34. })()