Greasy Fork is available in English.

QQ 空间好友热播移除

删除 QQ 空间中插入在信息流中的“好友热播”。

// ==UserScript==
// @name         QQ 空间好友热播移除
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  删除 QQ 空间中插入在信息流中的“好友热播”。
// @author       Nyan Kusanagi <gnwzkd@gmail.com>
// @match        *://user.qzone.qq.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    const feedFriendList = document.querySelector('#feed_friend_list');

    if (!feedFriendList) return;

    feedFriendList.addEventListener("DOMSubtreeModified", () => {
        const foolishHotFlags = feedFriendList.querySelectorAll('.f-single-top');

        if (!foolishHotFlags.length) return;

        foolishHotFlags.forEach(foolishHotFlag => {
            const foolishHot = foolishHotFlag.parentNode;
            foolishHot.parentNode.removeChild(foolishHot);

            console.info('A foolish hot video has removed.', foolishHot);
        });
    }, false);

})();