Skip to content

Commit

Permalink
fix: Rules with #; Code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
PRO-2684 committed Jan 3, 2025
1 parent 1a254c2 commit c100869
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 35 deletions.
20 changes: 15 additions & 5 deletions outgoing.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"51.ruyo.net/": {
"51.ruyo.net/": {
"go/": {
"index.html": {
"description": "如有外链",
Expand All @@ -11,7 +11,7 @@
}
}
},
"outgoing.prod.mozaws.net/": {
"outgoing.prod.mozaws.net/": {
"/v\\d/": {
"/\\w+": {
"description": "Mozilla 外链",
Expand Down Expand Up @@ -207,7 +207,11 @@
"headers": {
"Referer": "https://segmentfault.com/"
},
"acts": ["dom", "sel:body", "attr:data-url"],
"acts": [
"dom",
"sel:body",
"attr:data-url"
],
"author": "PRO-2684"
},
"link.uisdc.com": {
Expand Down Expand Up @@ -607,7 +611,9 @@
"params": [
"golink"
],
"acts": ["base64"],
"acts": [
"base64"
],
"author": "PRO-2684"
},
"www.so.com/": {
Expand Down Expand Up @@ -687,7 +693,11 @@
"index": {
"description": "百度外链",
"mode": "visit",
"acts": ["dom", "sel:.link", "text"],
"acts": [
"dom",
"sel:.link",
"text"
],
"author": "PRO-2684"
}
}
Expand Down
8 changes: 6 additions & 2 deletions shortener.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"b23.tv": {
"b23.tv": {
"description": "哔哩哔哩短链",
"mode": "redirect",
"author": "PRO-2684"
Expand Down Expand Up @@ -97,7 +97,11 @@
"/\\w+": {
"description": "微博短链",
"mode": "visit",
"acts": ["dom", "sel:.open-url a", "attr:href"],
"acts": [
"dom",
"sel:.open-url a",
"attr:href"
],
"author": "PRO-2684"
}
},
Expand Down
48 changes: 20 additions & 28 deletions tracking.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"author": "PRO-2684"
},
"baike.baidu.com/": {
"baike.baidu.com/": {
"item": {
"description": "百度百科",
"mode": "white",
Expand Down Expand Up @@ -185,22 +185,19 @@
},
"music.163.com/": {
"song": {
"description": "网易云音乐新链接格式",
"mode": "white",
"params": [
"id"
],
"author": "lz233, Cloudy"
},
"#/": {
"song": {
"description": "网易云音乐",
"mode": "white",
"params": [
"id"
],
"author": "lz233"
}
"description": "网易云音乐新链接格式",
"mode": "white",
"params": [
"id"
],
"author": "lz233, Cloudy"
},
"": {
"description": "网易云音乐",
"mode": "lambda",
"lambda": "if (url.hash.startsWith('#/song?')) { const p = new URLSearchParams(url.hash.slice(7)); const c = new URLSearchParams(); c.set('id', p.get('id')); url.hash = '#/song?' + c.toString(); } return url;",
"author": "lz233",
"continue": false
}
},
"music.apple.com/": {
Expand Down Expand Up @@ -244,17 +241,12 @@
}
}
},
"resource-minecraft.h5.163.com/": {
"#/": {
"detail": {
"description": "我的世界中国版资源分享链接",
"mode": "white",
"params": [
"id"
],
"author": "Cloudy"
}
}
"resource-minecraft.h5.163.com": {
"description": "我的世界中国版资源分享链接",
"mode": "lambda",
"lambda": "if (url.hash.startsWith('#/detail?')) { const p = new URLSearchParams(url.hash.slice(9)); const c = new URLSearchParams(); c.set('id', p.get('id')); url.hash = '#/detail?' + c.toString(); } return url;",
"author": "Cloudy",
"continue": false
},
"search.bilibili.com": {
"description": "哔哩哔哩搜索",
Expand Down

0 comments on commit c100869

Please sign in to comment.