Verified Badges for Everyone!

Everyone on Twitter gets a verified badge!

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Verified Badges for Everyone!
// @namespace    http://twitter.com
// @version      0.1
// @description  Everyone on Twitter gets a verified badge!
// @author       ChlodAlejandro
// @match        *://twitter.com
// @grant        none
// ==/UserScript==

function testSet() {
    'use strict';
    console.log("func call");
    var profileNames = document.getElementsByClassName("UserBadges");
    console.log("detected badges");
    for (var i = 0; i < profileNames.length; ++i) {
        var badgesElement = profileNames[i];
        console.log("trying change of " + i);
        console.log("may have changed");
        badgesElement.innerHTML = "<span class=\"Icon Icon--verified\"><span class=\"u-hiddenVisually\">Verified account</span></span>";
    }
}

(function() {
    'use strict';
    window.setInterval(function continuousSet() {
    console.log("cont call");
    var profileNames = document.getElementsByClassName("UserBadges");
    console.log("detected badges");
    for (var i = 0; i < profileNames.length; ++i) {
        var badgesElement = profileNames[i];
        console.log("trying change of " + i);
        console.log("may have changed");
        badgesElement.innerHTML = "<span class=\"Icon Icon--verified\"><span class=\"u-hiddenVisually\">Verified account</span></span>";
    }
}, 5000);
    console.log("TM init");
    var profileNames = document.getElementsByClassName("UserBadges");
    console.log("detected badges");
    for (var i = 0; i < profileNames.length; ++i) {
        var badgesElement = profileNames[i];
        console.log("trying change of " + i);
        console.log("may have changed");
        badgesElement.innerHTML = "<span class=\"Icon Icon--verified\"><span class=\"u-hiddenVisually\">Verified account</span></span>";
    }
})();