Skip to content

Commit

Permalink
Add more internal refs to filter out false positives for ads (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaogaotiantian authored Jun 28, 2024
1 parent 19c0161 commit 430704d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/videotag.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ VideoTagManager.prototype.updateData = function(data) {
const jumpurl = data.payload?.top?.upper?.content?.jump_url;
if (jumpurl) {
for (const [key, value] of Object.entries(jumpurl)) {
if (key.startsWith("BV") || key.startsWith("https://www.bilibili.com/")) {
// Internel reference, that's okay
if (key.startsWith("BV") ||
key.startsWith("https://www.bilibili.com/") ||
key.startsWith("https://b23.tv/")) {
// Internal reference, that's okay
continue;
}
if (value?.pc_url.indexOf("search.bilibili.com") != -1) {
Expand Down

0 comments on commit 430704d

Please sign in to comment.