File tree Expand file tree Collapse file tree
packages/remove-redirect/src/sites Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ' remove-redirect ' : patch
3+ ---
4+
5+ 简化 Google 站点配置
Original file line number Diff line number Diff line change @@ -6,10 +6,15 @@ const sites = [
66 ** Google 搜索
77 ** - https://www.google.com/search?q=mmPlayer
88 ** - https://www.google.com/search?q=茂茂物语
9+ **
10+ ** Google 重定向页
11+ ** - https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fmaomao1996%2Ftampermonkey-scripts&sa=D&source=docs
12+ ** - https://www.google.com.hk/url?q=https%3A%2F%2Fgithub.com%2Fmaomao1996%2Ftampermonkey-scripts&sa=D&source=docs
13+ ** - https://www.google.co.jp/url?q=https%3A%2F%2Fgithub.com%2Fmaomao1996%2Ftampermonkey-scripts&sa=D&source=docs
914 ******************************************************************************/
1015 defineSite ( [
11- 'Google 搜索' ,
12- / ^ g o o g l e \. c o m / ,
16+ 'Google 搜索、Google 重定向页 ' ,
17+ / ^ g o o g l e \. ( c o m | c o m ? \. [ a - z ] { 2 } | [ a - z ] { 2 } ) $ / ,
1318 {
1419 transform : {
1520 // selector: 'a[href^="/url?"][href*="url="]',
@@ -28,18 +33,6 @@ const sites = [
2833 }
2934 } ,
3035 } ,
31- } ,
32- ] ) ,
33- /******************************************************************************
34- ** Google 重定向页
35- ** - https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fmaomao1996%2Ftampermonkey-scripts&sa=D&source=docs
36- ** - https://www.google.com.hk/url?q=https%3A%2F%2Fgithub.com%2Fmaomao1996%2Ftampermonkey-scripts&sa=D&source=docs
37- ** - https://www.google.co.jp/url?q=https%3A%2F%2Fgithub.com%2Fmaomao1996%2Ftampermonkey-scripts&sa=D&source=docs
38- ******************************************************************************/
39- defineSite ( [
40- 'Google 重定向页' ,
41- / ^ g o o g l e \. ( c o m | c o m ? \. [ a - z ] { 2 } | [ a - z ] { 2 } ) $ / ,
42- {
4336 autojump : {
4437 validator : ( { pathname } ) => pathname === '/url' ,
4538 queryName : 'q' ,
You can’t perform that action at this time.
0 commit comments