Twitter Rainbow Stream

Make your Twetter Stream electrifying!

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey 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 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.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

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         Twitter Rainbow Stream
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Make your Twetter Stream electrifying!
// @author       eggplants
// @homepage     https://github.com/eggplants
// @match        https://twitter.com/*
// @grant        none
// @require      http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js
// ==/UserScript==

function rainbow(selector) {
    const colors = 'to right, red, orange, yellow, green, aqua, blue, purple';
    $(selector).css('cssText', `background: linear-gradient(${colors}) !important`);
}
function selectRainbow() {
    rainbow('body');
    rainbow('div.r-f9dfq4');
    rainbow('div.r-ry3cjt');
    rainbow('div.r-m611by');
    rainbow('div.r-1j3t67a');
    rainbow('div.r-my5ep6');
    rainbow('div.r-my5ep6');
    rainbow('div.r-1h3ijdo');
    rainbow('div.r-1jgb5lz');
    rainbow('div.r-1uu6nss');
    rainbow('div.r-1i9ubto');
    rainbow('a.r-my5ep6');
    rainbow('div.r-e84r5y');
    rainbow('div.r-14lw9ot');
    rainbow('article.r-6416eg');
    rainbow('a.r-6416eg');
    rainbow('div.r-1f1sjgu');
}
setInterval(selectRainbow)