观察者网-宽版
// ==UserScript==
// @name 观察者网-宽版
// @namespace https://bbs.tampermonkey.net.cn/
// @version 1.0.1
// @description 新闻页隐藏侧边栏和下方新闻推荐
// @author ZZW
// @match https://www.guancha.cn/*
// @require https://lib.baomitu.com/jquery/3.5.0/jquery.min.js
// @grant GM_addStyle
// ==/UserScript==
(function() {
'use strict';
GM_addStyle(`
body > div.content > div.main.content-main > ul > li.left.left-main{
width: 1100px;
}
.search.fix{
display:none!important;
}
.content-topnews-box-neo{
display:none!important;
}
.content-headline{
display:none!important;
}
.head-inpost{
display:none!important;
}
.fenwen24{
display:none!important;
}
.latest-video{
display:none!important;
}
.module-news-2{
display:none!important;
}
.kuaixun-new{
display:none!important;
}
`);
var excludedPages = [
"https://www.guancha.cn/economy?s=dhcaijing",
"https://www.guancha.cn/chanjing?s=dhchanjing",
"https://www.guancha.cn/gongye%C2%B7keji?s=dhgongye%C2%B7keji",
"https://www.guancha.cn/ChengShi",
];
var currentPage = window.location.href;
var shouldApplyRules = true;
for (var i = 0; i < excludedPages.length; i++) {
if (currentPage === excludedPages[i]) {
shouldApplyRules = false;
break;
}
}
if (shouldApplyRules) {
GM_addStyle(`
.new-left-list{
display:none!important;
}
`);
}
})();