隐藏赞赏、点赞、评论框、分享按钮及多余分隔线
// ==UserScript==
// @name 微博隐藏赞赏、点赞、评论框、分享按钮及多余分隔线
// @namespace http://tampermonkey.net/
// @version 1.0
// @description 隐藏赞赏、点赞、评论框、分享按钮及多余分隔线
// @author You
// @match https://weibo.com/*
// @match https://*.weibo.com/*
// @grant GM_addStyle
// @license MIT
// ==/UserScript==
(function() {
'use strict';
// 隐藏赞赏模块
GM_addStyle(`
div[class*="Reward_box_"] {
display: none !important;
}
`);
// 隐藏评论输入框
GM_addStyle(`
#composerEle {
display: none !important;
}
`);
// 隐藏底部工具栏(点赞、评论、转发)
GM_addStyle(`
div[class*="toolbar_main_"] {
display: none !important;
}
`);
// 隐藏分享按钮
GM_addStyle(`
div[class*="toolbar_share_"] {
display: none !important;
}
`);
// 隐藏点赞按钮(保险)
GM_addStyle(`
button[title="赞"] {
display: none !important;
}
`);
// 新增:隐藏分隔线
GM_addStyle(`
div.woo-divider-main.woo-divider-x {
display: none !important;
}
`);
})();