better-t66y

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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        better-t66y
// @namespace   anybetter
// @match       *://www.t66y.com/*
// @grant       none
// @version     1.2
// @author      -
// @description 2020/3/25 下午5:47:29
// @require       http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// ==/UserScript==

(function() {
    console.log(window.location.pathname);
    'use strict';
    jQuery.noConflict();
  
      var table = document.querySelectorAll('.sptable_do_not_remove');
        if (document.querySelectorAll('.sptable_do_not_remove span').length > 0) {
          var str = document.querySelectorAll('.sptable_do_not_remove span') [0].className;
          for (var j = 0; j < table.length; j++) {
            var td = table[j].querySelectorAll('td');
            for (var i = 0; i < td.length; i++) {
              td[i].innerHTML = '<span class=' + str + '></span>';
            }
          }
        } else {
          for (var k = 0; k < table.length; k++) {
            table[k].style.display = 'none';
          }
        }
        jQuery("div.tpc_content").css("font-size", "20px").css("max-width", "800px");
        
        jQuery("div.tpc_content>span").css("font-size", "20px");
        jQuery("span.f18").css("font-size", "20px");
        jQuery("span.f16").css("font-size", "20px");
})()