RT_CN CSSer

中文推特昨日热榜 / 7天收藏榜 美化脚本

  1. // ==UserScript==
  2. // @name RT_CN CSSer
  3. // @namespace http://ihead.info/
  4. // @version 0.1
  5. // @description 中文推特昨日热榜 / 7天收藏榜 美化脚本
  6. // @author @ihead
  7. // @match http://xixitalk.github.io/twitter/*
  8. // @grant none
  9. // ==/UserScript==
  10. var styleEl = document.createElement('style');
  11. styleEl.type = 'text/css';
  12. styleEl.innerHTML = 'body{background-color:#f5f8fa;margin:0;padding:0;}img{margin:6;}tr{background:#eee;}tr:nth-child(2n){background:#ccc}tr{background-color:expression((this.sectionRowIndex % 2 == 0) ? "#eee":"#ccc")}';
  13. document.documentElement.appendChild(styleEl);
  14.  
  15. var tags = document.getElementsByTagName('table');
  16. // This loops over all of the <table> tags.
  17. for (var i = 0; i < tags.length; i++) {
  18. // This replaces the src attribute of the tag with the modified one
  19. tags[i].border = tags[i].border.replace('1', '0');
  20. }

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址