mirror of
https://github.com/XIU2/UserScript.git
synced 2026-07-09 10:55:22 +00:00
更新 [屏蔽首页视频] 功能
This commit is contained in:
@@ -890,7 +890,7 @@ function blockType(type) {
|
||||
|
||||
function blockType_(titleA) {
|
||||
if (!titleA) return // 判断是否为真
|
||||
console.log(titleA.href)
|
||||
//console.log(titleA.href)
|
||||
if (location.pathname === '/search') { // 搜索页
|
||||
if (location.search.indexOf('type=content') === -1) return // 仅限搜索页的 [综合]
|
||||
if (titleA.href.indexOf('/zvideo/') > -1 || titleA.href.indexOf('video.zhihu.com') > -1) { // 如果是视频
|
||||
|
||||
Reference in New Issue
Block a user