Twitter Remove Trends Panel

Remove the in-your-face trends panel on the side of your feed.

当前为 2020-03-30 提交的版本,查看 最新版本

// ==UserScript==
// @name         Twitter Remove Trends Panel
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Remove the in-your-face trends panel on the side of your feed.
// @author       Cromachina
// @match        https://twitter.com/*
// @grant        none
// ==/UserScript==
/*jshint esversion: 6 */

(function() {
    'use strict';
    // Constantly attempt to remove the trends panel, as navigating the site will regenerate it.
    setInterval(function ()
    {
        let column = document.querySelector('[data-testid=sidebarColumn]');
        if (column)
        {
            let alist = column.querySelector('[id^=accessible-list]');
            if (alist && alist.parentElement)
            {
                alist.parentElement.remove();
            }
        }
    }, 500);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址