-
Notifications
You must be signed in to change notification settings - Fork 0
/
FhMonkey-CSDN.js
41 lines (32 loc) · 1.27 KB
/
FhMonkey-CSDN.js
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
36
37
38
// ==FeHelperMonkey==
// @reminder 请不要删除这部分代码注释,这是FeHelper油猴脚本能正常工作的基本条件!当然,你可以按需修改这里的内容!
// @id mf_1589536518465
// @name CSDN
// @url-pattern https://*.csdn.net/*
// @enable true
// @require-js
// @auto-refresh 0
// @updated 2020-05-15 18:08:53
// ==/FeHelperMonkey==
(() => {
const STYLE = document.createElement('style');
let CSS = `
.type_download, .hide-article-box,.user-desc,.article-show-more,.user-action >*:not(li),.top-sticky,.toolbar-advert,.hide-preCode-box,[class*="advert"] {
display: none !important;
}
* {
user-select: unset !important;
}
.article_content, .main-content, .set-code-hide, .user-article {
height: auto !important;
max-height: unset !important;
}
`;
STYLE.innerHTML = CSS;
document.body.appendChild(STYLE);
let title = document.title;
title = title.indexOf('条消息)') === 2 ? title.split('条消息)')[1] : title;
document.title = title;
document.querySelector('#toolbar-remind')?.remove();
document.querySelector('#article_content').style.height = 'auto';
})();