RT_CN CSSer

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

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         RT_CN CSSer
// @namespace    http://ihead.info/
// @version      0.1
// @description  中文推特昨日热榜 / 7天收藏榜 美化脚本
// @author       @ihead
// @match        http://xixitalk.github.io/twitter/*
// @grant        none
// ==/UserScript==
var styleEl = document.createElement('style');
styleEl.type = 'text/css';
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")}';
document.documentElement.appendChild(styleEl);

var tags = document.getElementsByTagName('table');
// This loops over all of the <table> tags.
for (var i = 0; i < tags.length; i++) {
  // This replaces the src attribute of the tag with the modified one
  tags[i].border = tags[i].border.replace('1', '0');
}