-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprogram-think-reader.js
More file actions
35 lines (30 loc) · 912 Bytes
/
Copy pathprogram-think-reader.js
File metadata and controls
35 lines (30 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// ==UserScript==
// @name 编程随想专注阅读
// @namespace http://tampermonkey.net/
// @version 0.1
// @description
// @author You
// @match https://program-think.blogspot.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=blogspot.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
var $ = window.jQuery;
let isContentPage = false;
for (let i = 2009; i <= 2022; i++) {
if (window.location.href.includes(i)) {
isContentPage = true;
}
}
if (isContentPage) {
// 右侧推荐和评论
document.getElementById("sidebar-wrapper").remove();
$("#main").css({"width": '100%'});
// 底部评论区
document.getElementById("comments").remove();
} else {
// 右侧评论
document.getElementById("HTML4").remove();
}
})();