-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcsdn.js
More file actions
28 lines (22 loc) · 765 Bytes
/
csdn.js
File metadata and controls
28 lines (22 loc) · 765 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
let item
// 头部工具栏
item = document.getElementById('csdn-toolbar')
item.parentNode.removeChild(item)
// 底部工具栏
item = document.getElementById('toolBarBox')
item.parentNode.removeChild(item)
// 悬浮按钮栏
item = document.getElementsByClassName('csdn-side-toolbar')
item[0].parentNode.removeChild(item[0])
// 左侧栏
item = document.getElementsByClassName('blog_container_aside')
item[0].parentNode.removeChild(item[0])
// 右侧栏
item = document.getElementsByClassName('recommend-right')
item[0].parentNode.removeChild(item[0])
// 文章内容
item = document.getElementsByClassName('blog-content-box')
item[0].parentNode.style.width = '100%'
// 广告
item = document.getElementById('marketingBox')
item.parentNode.removeChild(item)