Skip to content

Commit

Permalink
6.4.3 增加机锋网-评测规则,忽略 autoGetLink 的 # 链接
Browse files Browse the repository at this point in the history
  • Loading branch information
ywzhaiqi committed Sep 17, 2014
1 parent 499fce6 commit e1d5b1e
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 25 deletions.
2 changes: 1 addition & 1 deletion Super_preloaderPlus/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "super_preloaderplus_one",
"version": "6.4.2",
"version": "6.4.3",
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-clean": "~0.5.0",
Expand Down
4 changes: 3 additions & 1 deletion Super_preloaderPlus/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1922,7 +1922,6 @@ function init(window, document) {
var alllinks = doc.links;
var alllinksl = alllinks.length;


var curLHref = cplink;
var _nextlink;
var _prelink;
Expand All @@ -1944,6 +1943,9 @@ function init(window, document) {

function finalCheck(a, type) {
var ahref = a.getAttribute('href'); //在chrome上当是非当前页面文档对象的时候直接用a.href访问,不返回href
if (ahref == '#') {
return null;
}
ahref = _getFullHref(ahref); //从相对路径获取完全的href;

//3个条件:http协议链接,非跳到当前页面的链接,非跨域
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.4.2
// @version 6.4.3
// @homepageURL https://greasyfork.org/scripts/293-super-preloaderplus-one

// @grant GM_addStyle
Expand Down
30 changes: 20 additions & 10 deletions Super_preloaderPlus/src/rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -860,15 +860,7 @@ var SITEINFO=[
pageElement: 'id("wrapmain")//ul[starts-with(@id, "post-")]',
}
},
{name: '杀价帮3C导购网—真实 客观 独立 自由',
url: /^http:\/\/www\.shajia\.cn\/article/i,
exampleUrl: 'http://www.shajia.cn/article_list.php',
nextLink: 'auto;',
autopager: {
pageElement: 'id("agreement")',
}
},
{name: ' 秒便宜论坛',
{name: '秒便宜论坛',
url: /^http:\/\/bbs\.miaopy\.com\//i,
exampleUrl: 'http://bbs.miaopy.com/activity/list-3.aspx',
nextLink: 'auto;',
Expand All @@ -885,14 +877,32 @@ var SITEINFO=[
pageElement: '//div[@class="searchResult"]',
}
},
{name: ' Yahoo!奇摩拍賣',
{name: 'Yahoo!奇摩拍賣',
url: /^https:\/\/tw\.bid\.yahoo\.com\//i,
exampleUrl: 'https://tw.bid.yahoo.com/tw/2092076277-category-leaf.html?.r=1408853888',
nextLink: 'auto;',
autopager: {
pageElement: 'id("srp_sl_result")',
}
},
// 手机评测等
{name: '杀价帮3C导购网—真实 客观 独立 自由',
url: /^http:\/\/www\.shajia\.cn\/article/i,
exampleUrl: 'http://www.shajia.cn/article_list.php',
nextLink: 'auto;',
autopager: {
pageElement: 'id("agreement")',
}
},
{name: '机锋网',
url: /^http:\/\/www\.gfan\.com\/review\/\w+\.html/,
exampleUrl: 'http://www.gfan.com/review/2014091557751.html',
nextLink: 'auto;',
autopager: {
pageElement: '//div[@class="news-content"]',
relatedObj: true
}
},

// ========================= 知识、阅读 ============================
{name: '豆瓣-书影音评论',
Expand Down
36 changes: 24 additions & 12 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.4.2
// @version 6.4.3
// @homepageURL https://greasyfork.org/scripts/293-super-preloaderplus-one

// @grant GM_addStyle
Expand Down Expand Up @@ -899,15 +899,7 @@ var SITEINFO=[
pageElement: 'id("wrapmain")//ul[starts-with(@id, "post-")]',
}
},
{name: '杀价帮3C导购网—真实 客观 独立 自由',
url: /^http:\/\/www\.shajia\.cn\/article/i,
exampleUrl: 'http://www.shajia.cn/article_list.php',
nextLink: 'auto;',
autopager: {
pageElement: 'id("agreement")',
}
},
{name: ' 秒便宜论坛',
{name: '秒便宜论坛',
url: /^http:\/\/bbs\.miaopy\.com\//i,
exampleUrl: 'http://bbs.miaopy.com/activity/list-3.aspx',
nextLink: 'auto;',
Expand All @@ -924,14 +916,32 @@ var SITEINFO=[
pageElement: '//div[@class="searchResult"]',
}
},
{name: ' Yahoo!奇摩拍賣',
{name: 'Yahoo!奇摩拍賣',
url: /^https:\/\/tw\.bid\.yahoo\.com\//i,
exampleUrl: 'https://tw.bid.yahoo.com/tw/2092076277-category-leaf.html?.r=1408853888',
nextLink: 'auto;',
autopager: {
pageElement: 'id("srp_sl_result")',
}
},
// 手机评测等
{name: '杀价帮3C导购网—真实 客观 独立 自由',
url: /^http:\/\/www\.shajia\.cn\/article/i,
exampleUrl: 'http://www.shajia.cn/article_list.php',
nextLink: 'auto;',
autopager: {
pageElement: 'id("agreement")',
}
},
{name: '机锋网',
url: /^http:\/\/www\.gfan\.com\/review\/\w+\.html/,
exampleUrl: 'http://www.gfan.com/review/2014091557751.html',
nextLink: 'auto;',
autopager: {
pageElement: '//div[@class="news-content"]',
relatedObj: true
}
},

// ========================= 知识、阅读 ============================
{name: '豆瓣-书影音评论',
Expand Down Expand Up @@ -5726,7 +5736,6 @@ function init(window, document) {
var alllinks = doc.links;
var alllinksl = alllinks.length;


var curLHref = cplink;
var _nextlink;
var _prelink;
Expand All @@ -5748,6 +5757,9 @@ function init(window, document) {

function finalCheck(a, type) {
var ahref = a.getAttribute('href'); //在chrome上当是非当前页面文档对象的时候直接用a.href访问,不返回href
if (ahref == '#') {
return null;
}
ahref = _getFullHref(ahref); //从相对路径获取完全的href;

//3个条件:http协议链接,非跳到当前页面的链接,非跨域
Expand Down

0 comments on commit e1d5b1e

Please sign in to comment.