Skip to content

Commit

Permalink
6.3.6 修正几个规则
Browse files Browse the repository at this point in the history
  • Loading branch information
ywzhaiqi committed Aug 21, 2014
1 parent 7c24a03 commit d9f8fe8
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 12 deletions.
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.5
// @version 6.3.6
// @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
32 changes: 27 additions & 5 deletions Super_preloaderPlus/src/rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,15 +291,15 @@ var SITEINFO=[
}
},

// ====== 目前 Super_preloaderPlus_one 不支持用于 uAutoPagerize2 的规则 ==================
// ====== 目前 Super_preloaderPlus_one 还有问题的 ========
{name: '水木社区',
url: '^http://www\\.newsmth\\.net/nForum',
nextLink: '//a[@title="下一页"]',
pageElement: '//div[@class="b-content"] | //div[@class="b-content corner"]',
exampleUrl: 'http://www.newsmth.net/nForum/#!board/TouHou'
},

// =============== baidu 其它 ======================
// =============== baidu 其它 ===========
{name: '百度贴吧列表',
url: /^http:\/\/tieba\.baidu\.(cn|com)\/f/i,
nextLink: '//div[@class="pager clearfix"]/descendant::a[@class="next"]',
Expand Down Expand Up @@ -674,7 +674,7 @@ var SITEINFO=[
}
},
{name: "搜库-专找视频",
url: "^http://www\\.soku\\.com/search",
url: "^http://www\\.soku\\.com/",
nextLink: '//li[@class="next"]/a[@title="下一页"]',
autopager: {
pageElement: '//div[@class="sk_result"]',
Expand Down Expand Up @@ -814,6 +814,14 @@ var SITEINFO=[
lazyImgSrc: 'data-lazyload',
}
},
{name: '京东读书',
url: /^http:\/\/read\.jd\.com\/.*\/.*\.html/i,
exampleUrl: 'http://read.jd.com/16171/778043.html',
nextLink: 'auto;',
autopager: {
pageElement: '//div[@class="mc clearfix"]',
}
},
{name: '亚马逊',
url: /^http:\/\/www\.amazon\.cn\/gp\/search\//i,
nextLink: 'auto;',
Expand Down Expand Up @@ -852,6 +860,15 @@ var SITEINFO=[
pageElement: 'id("agreement")',
}
},
{name: ' 秒便宜论坛',
url: /^http:\/\/bbs\.miaopy\.com\//i,
exampleUrl: 'http://bbs.miaopy.com/activity/list-3.aspx',
nextLink: 'auto;',
autopager: {
pageElement: 'css;.forumtopics-list',
stylish: 'div.sp-separator { width: 800px !important;}'
}
},

// ========================= 知识、阅读 ============================
{name: '豆瓣-书影音评论',
Expand Down Expand Up @@ -1162,7 +1179,12 @@ var SITEINFO=[
autopager: {
pageElement: 'id("J_posts_list")',
replaceE: 'css;.pages',
useiframe: true
documentFilter: function(doc) {
// 头像载入出错的修正
[].forEach.call(doc.querySelectorAll('img.J_avatar'), function(img){
img.setAttribute('onerror', 'this.src="http://www.firefox.net.cn/res/images/face/face_small.jpg";');
});
}
}
},
{name: 'Firefox中文社区 - 帖子',
Expand Down Expand Up @@ -1708,7 +1730,7 @@ var SITEINFO=[
exampleUrl: 'http://soso.nipic.com/search.aspx?t=tk&q=%B7%E2%C3%E6',
nextLink: 'auto;',
autopager: {
pageElement: 'id("bd") | //center/table[@width="900" and @cellspacing="0" and @cellpadding="0" and @border="0"]',
pageElement: 'id("bd") | //ul[@class="search-result-box clearfix"] | //center/table[@width="900" and @cellspacing="0" and @cellpadding="0" and @border="0"]',
lazyImgSrc: "data-original",
stylish: '.lazy { display: block; }'
}
Expand Down
34 changes: 28 additions & 6 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.5
// @version 6.3.6
// @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 @@ -336,15 +336,15 @@ var SITEINFO=[
}
},

// ====== 目前 Super_preloaderPlus_one 不支持用于 uAutoPagerize2 的规则 ==================
// ====== 目前 Super_preloaderPlus_one 还有问题的 ========
{name: '水木社区',
url: '^http://www\\.newsmth\\.net/nForum',
nextLink: '//a[@title="下一页"]',
pageElement: '//div[@class="b-content"] | //div[@class="b-content corner"]',
exampleUrl: 'http://www.newsmth.net/nForum/#!board/TouHou'
},

// =============== baidu 其它 ======================
// =============== baidu 其它 ===========
{name: '百度贴吧列表',
url: /^http:\/\/tieba\.baidu\.(cn|com)\/f/i,
nextLink: '//div[@class="pager clearfix"]/descendant::a[@class="next"]',
Expand Down Expand Up @@ -719,7 +719,7 @@ var SITEINFO=[
}
},
{name: "搜库-专找视频",
url: "^http://www\\.soku\\.com/search",
url: "^http://www\\.soku\\.com/",
nextLink: '//li[@class="next"]/a[@title="下一页"]',
autopager: {
pageElement: '//div[@class="sk_result"]',
Expand Down Expand Up @@ -859,6 +859,14 @@ var SITEINFO=[
lazyImgSrc: 'data-lazyload',
}
},
{name: '京东读书',
url: /^http:\/\/read\.jd\.com\/.*\/.*\.html/i,
exampleUrl: 'http://read.jd.com/16171/778043.html',
nextLink: 'auto;',
autopager: {
pageElement: '//div[@class="mc clearfix"]',
}
},
{name: '亚马逊',
url: /^http:\/\/www\.amazon\.cn\/gp\/search\//i,
nextLink: 'auto;',
Expand Down Expand Up @@ -897,6 +905,15 @@ var SITEINFO=[
pageElement: 'id("agreement")',
}
},
{name: ' 秒便宜论坛',
url: /^http:\/\/bbs\.miaopy\.com\//i,
exampleUrl: 'http://bbs.miaopy.com/activity/list-3.aspx',
nextLink: 'auto;',
autopager: {
pageElement: 'css;.forumtopics-list',
stylish: 'div.sp-separator { width: 800px !important;}'
}
},

// ========================= 知识、阅读 ============================
{name: '豆瓣-书影音评论',
Expand Down Expand Up @@ -1207,7 +1224,12 @@ var SITEINFO=[
autopager: {
pageElement: 'id("J_posts_list")',
replaceE: 'css;.pages',
useiframe: true
documentFilter: function(doc) {
// 头像载入出错的修正
[].forEach.call(doc.querySelectorAll('img.J_avatar'), function(img){
img.setAttribute('onerror', 'this.src="http://www.firefox.net.cn/res/images/face/face_small.jpg";');
});
}
}
},
{name: 'Firefox中文社区 - 帖子',
Expand Down Expand Up @@ -1753,7 +1775,7 @@ var SITEINFO=[
exampleUrl: 'http://soso.nipic.com/search.aspx?t=tk&q=%B7%E2%C3%E6',
nextLink: 'auto;',
autopager: {
pageElement: 'id("bd") | //center/table[@width="900" and @cellspacing="0" and @cellpadding="0" and @border="0"]',
pageElement: 'id("bd") | //ul[@class="search-result-box clearfix"] | //center/table[@width="900" and @cellspacing="0" and @cellpadding="0" and @border="0"]',
lazyImgSrc: "data-original",
stylish: '.lazy { display: block; }'
}
Expand Down

0 comments on commit d9f8fe8

Please sign in to comment.