Skip to content

Commit

Permalink
Super_preloaderPlus_one 6.3.3 新增几个规则
Browse files Browse the repository at this point in the history
  • Loading branch information
ywzhaiqi committed Aug 2, 2014
1 parent 9972217 commit 10d1a2b
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 7 deletions.
11 changes: 8 additions & 3 deletions Super_preloaderPlus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,16 @@ Firefox(Greasemonkey/Scriptish),Chrome(原生/Tampermonkey),Maxthon
}
},

### 风险脚本的误报
### Google 搜索的说明

[风险脚本过滤器](http://userscripts.org/scripts/issues/164600) 检测到:自动 follow。
Super\_preloaderPlus\_one 脚本不支持从 Google 主页搜索的翻页,只能用这样的搜索

它的检测正则是 `follow(_|\/|([^.\s]+)(\.|\?))`, 匹配脚本内 `following-sibling::*[.``following::a[contains(., \"Next\")]` 等。
[https://www.google.com/search?q=firefox](https://www.google.com/search?q=firefox)

这两类半支持

[https://www.google.com/#newwindow=1&q=firefox](https://www.google.com/#newwindow=1&q=firefox)
[https://www.google.com/webhp?q=firefox#newwindow=1&q=firefox&safe=strict](https://www.google.com/webhp?q=firefox#newwindow=1&q=firefox&safe=strict)

### 更新

Expand Down
2 changes: 1 addition & 1 deletion Super_preloaderPlus/src/meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// @namespace https://github.com/ywzhaiqi
// @description 预读+翻页..全加速你的浏览体验...
// @author ywzhaiqi && NLF(原作者)
// @version 6.3.2
// @version 6.3.3
// @homepageURL https://greasyfork.org/scripts/293-super-preloaderplus-one
// @updateURL https://greasyfork.org/scripts/293-super-preloaderplus-one/code/Super_preloaderPlus_one.meta.js
// @downloadURL https://greasyfork.org/scripts/293-super-preloaderplus-one/code/Super_preloaderPlus_one.user.js
Expand Down
29 changes: 28 additions & 1 deletion Super_preloaderPlus/src/rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,12 @@ var SITEINFO=[
}
}
},
{name: '百度搜索 - baidulocal',
url: '^https?://www\\.baidu\\.com/s.*&tn=baidulocal',
nextLink: '//a[font[text()="下一页"]]',
pageElement: '//table[@width="100%" and @border="0"]/tbody/tr/td/ol',
exampleUrl: 'http://www.baidu.com/s?wd=firefox&rsv_spt=1&issp=1&rsv_bp=0&ie=utf-8&tn=baidulocal&inputT=1364',
},
{name: '360搜索',
url: "http://www\\.so\\.com/s",
nextLink:'//div[@id="page"]/a[text()="下一页>"] | id("snext")',
Expand Down Expand Up @@ -1544,6 +1550,11 @@ var SITEINFO=[
pageElement: 'id("section")/div[@class="main"]/div[@class="forum-content"]',
}
},
{name: '昆侖 - 资源/连载',
url: '^http://bbs\\.ikunlun\\.net/forum\\.php.*$',
nextLink: '//a[@class="now"]/following-sibling::a[1][not(@class="last") ]',
pageElement: '//tr[@class="topic_list_row"]',
},

// ========================= picture ================================================
{name: 'Flickr搜索',
Expand Down Expand Up @@ -2601,7 +2612,7 @@ var SITEINFO=[
pageElement: '//div[@class="main cf"]/div[@class="content-block cf"]/div[1]',
}
},
{name: '178漫画',
{name: '动漫之家漫画网',
url: "^http://(www|manhua)\\.dmzj\\.com/.+/.+shtml|^http://manhua\\.178\\.com/.+/.+shtml",
siteExample:'http://manhua.178.com/lansechumoshi/15794.shtml',
nextLink:'//div[@class="pages2"]/descendant::a[text()="下一页"]',
Expand Down Expand Up @@ -3054,6 +3065,22 @@ var SITEINFO=[
pageElement: 'id("rightcolumn")/div[@class="videothumblist"] | id("rightcolumn")/div[@class="starbox"]',
}
},
{name: 'NyaaTorrents',
url: '^http://(?:(?:www|sukebei?)\\.)?nyaa\\.se/',
nextLink: '//div[@class="pages"]/b/following-sibling::a[1]',
pageElement: '//table[@class="tlist"]',
exampleUrl: 'http://www.nyaa.se/',
},
{name: '极影动漫',
url: 'http://bt.ktxp.com/.+[0-9]+-*',
nextLink: '//span[@class="current"]/following-sibling::a[1]',
pageElement: '//div[@class="item-box round-corner" and div/@class="title"]',
},
{name: 'BTDigg Search',
url: '^https?://btdigg.org/search*',
nextLink: '//a[contains(text(),"→")]',
pageElement: '//body/div/div/center',
},

// ==================== 国外站点 ===================
{name: 'AnandTech',
Expand Down
31 changes: 29 additions & 2 deletions Super_preloaderPlus/super_preloaderplus_one.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// @namespace https://github.com/ywzhaiqi
// @description 预读+翻页..全加速你的浏览体验...
// @author ywzhaiqi && NLF(原作者)
// @version 6.3.2
// @version 6.3.3
// @homepageURL https://greasyfork.org/scripts/293-super-preloaderplus-one
// @updateURL https://greasyfork.org/scripts/293-super-preloaderplus-one/code/Super_preloaderPlus_one.meta.js
// @downloadURL https://greasyfork.org/scripts/293-super-preloaderplus-one/code/Super_preloaderPlus_one.user.js
Expand Down Expand Up @@ -267,6 +267,12 @@ var SITEINFO=[
}
}
},
{name: '百度搜索 - baidulocal',
url: '^https?://www\\.baidu\\.com/s.*&tn=baidulocal',
nextLink: '//a[font[text()="下一页"]]',
pageElement: '//table[@width="100%" and @border="0"]/tbody/tr/td/ol',
exampleUrl: 'http://www.baidu.com/s?wd=firefox&rsv_spt=1&issp=1&rsv_bp=0&ie=utf-8&tn=baidulocal&inputT=1364',
},
{name: '360搜索',
url: "http://www\\.so\\.com/s",
nextLink:'//div[@id="page"]/a[text()="下一页>"] | id("snext")',
Expand Down Expand Up @@ -1589,6 +1595,11 @@ var SITEINFO=[
pageElement: 'id("section")/div[@class="main"]/div[@class="forum-content"]',
}
},
{name: '昆侖 - 资源/连载',
url: '^http://bbs\\.ikunlun\\.net/forum\\.php.*$',
nextLink: '//a[@class="now"]/following-sibling::a[1][not(@class="last") ]',
pageElement: '//tr[@class="topic_list_row"]',
},

// ========================= picture ================================================
{name: 'Flickr搜索',
Expand Down Expand Up @@ -2646,7 +2657,7 @@ var SITEINFO=[
pageElement: '//div[@class="main cf"]/div[@class="content-block cf"]/div[1]',
}
},
{name: '178漫画',
{name: '动漫之家漫画网',
url: "^http://(www|manhua)\\.dmzj\\.com/.+/.+shtml|^http://manhua\\.178\\.com/.+/.+shtml",
siteExample:'http://manhua.178.com/lansechumoshi/15794.shtml',
nextLink:'//div[@class="pages2"]/descendant::a[text()="下一页"]',
Expand Down Expand Up @@ -3099,6 +3110,22 @@ var SITEINFO=[
pageElement: 'id("rightcolumn")/div[@class="videothumblist"] | id("rightcolumn")/div[@class="starbox"]',
}
},
{name: 'NyaaTorrents',
url: '^http://(?:(?:www|sukebei?)\\.)?nyaa\\.se/',
nextLink: '//div[@class="pages"]/b/following-sibling::a[1]',
pageElement: '//table[@class="tlist"]',
exampleUrl: 'http://www.nyaa.se/',
},
{name: '极影动漫',
url: 'http://bt.ktxp.com/.+[0-9]+-*',
nextLink: '//span[@class="current"]/following-sibling::a[1]',
pageElement: '//div[@class="item-box round-corner" and div/@class="title"]',
},
{name: 'BTDigg Search',
url: '^https?://btdigg.org/search*',
nextLink: '//a[contains(text(),"→")]',
pageElement: '//body/div/div/center',
},

// ==================== 国外站点 ===================
{name: 'AnandTech',
Expand Down

0 comments on commit 10d1a2b

Please sign in to comment.