屏蔽开源中国加灰动弹

try to take over the world!

// ==UserScript==
// @name         屏蔽开源中国加灰动弹
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  try to take over the world!
// @author       You
// @match        https://*.oschina.net/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    window.onload = function () {
        removeBlockedTweet();
        removeBlockedComment();

        setInterval(removeBlockedTweet, 10000);
    }

    function removeBlockedTweet() {
        var lists = document.querySelectorAll('.tweet-item.blocked');
        for (var i = 0, j = lists.length; i < j; i++) {
            lists[i].parentNode.removeChild(lists[i])
        }
    }
    function removeBlockedComment() {
        var lists = document.querySelectorAll('.comment-item.blocked');
        for (var i = 0, j = lists.length; i < j; i++) {
            lists[i].parentNode.removeChild(lists[i])
        }
    } 
})();