Greasy Fork

Greasy Fork is available in English.

微博热搜隐藏

隐藏新浪微博右侧边栏,热搜,推荐博主,让界面更清爽

当前为 2025-05-17 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name                微博热搜隐藏
// @name:zh-CN          微博右侧边栏隐藏
// @namespace           http://greasyfork.icu/users/YOUR_USERNAME
// @version            1.0.2
// @description        隐藏新浪微博右侧边栏,热搜,推荐博主,让界面更清爽
// @description:zh-CN  隐藏新浪微博右侧边栏,让界面更清爽
// @author             YOUR_USERNAME
// @license            MIT
// @match              *://*.weibo.com/*
// @match              *://*.weibo.cn/*
// @grant              none
// @supportURL         https://github.com/YOUR_USERNAME/weibo-sidebar-hider/issues
// @homepageURL        https://github.com/YOUR_USERNAME/weibo-sidebar-hider
// @run-at             document-start
// ==/UserScript==

/* ==UserStyle==
@name           Weibo Sidebar Hider
@namespace      github.com/YOUR_USERNAME/weibo-sidebar-hider
@version        1.0.0
@description    Hide the right sidebar on Sina Weibo pages
@author         YOUR_USERNAME
==/UserStyle== */

(function() {
    'use strict';

    // Create and inject CSS to hide the sidebar
    const style = document.createElement('style');
    style.textContent = `
        /* Hide the right sidebar */
       .Main_side_i7Vti,
        [class*='rightSide'],
        [class*='Side_sideBox'],
        .Right_person_1UjYy,
        .woo-picture-slot{
        display: none !important;
        }

    `;
    document.head.appendChild(style);
})();