added 工具栏
This commit is contained in:
1 parent
f087f75fd4
commit
b9fd4cb7f6
8 files changed
+295
-240
No files matched your search
@@ -7,7 +7,7 @@ function checkParent(element, classNames) {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
var excludedClasses = ['talks_comments','tiaozhuan-button']; // 添加需要排除的a标签类名class
|
||||
var excludedClasses = ['talks_comments','tiaozhuan-button', 'floating-tools']; // 添加需要排除的a标签类名class
|
||||
window.addEventListener('load', (event) => {
|
||||
document.body.addEventListener('click', function(e) {
|
||||
let target = e.target;
|
||||
@@ -16,6 +16,7 @@ function checkParent(element, classNames) {
|
||||
}
|
||||
if (target && target.nodeName === 'A' &&
|
||||
!checkParent(target, excludedClasses) &&
|
||||
!target.href.startsWith('javascript:') &&
|
||||
!target.href.includes('usj.cc') &&
|
||||
!target.href.includes('douban.com') &&
|
||||
!target.href.includes('bilibili.com') &&
|
||||
|
||||
Reference in new issue
Block a user