Skip to content

Commit

Permalink
Super_preloaderPlus_one 6.2.6
Browse files Browse the repository at this point in the history
- 增加站点:图灵社区 : 图书、汗汗漫画
- 取消 Discuz论坛帖子 的 filter
  • Loading branch information
ywzhaiqi committed Jul 11, 2014
1 parent 10889cc commit 3730c44
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 19 deletions.
49 changes: 40 additions & 9 deletions Super_preloaderPlus/src/rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -1899,6 +1899,12 @@ var SITEINFO=[
pageElement:'css;#content>p'
}
},
{name: '图灵社区 : 图书',
url: '^http://www\\.ituring\\.com\\.cn/article/',
nextLink: 'auto;',
pageElement: '//div[@id="question-header"]/h1 | //div[@class="post-text"]',
separatorReal: false
},
{name: "Stack Overflow, Super User, Server Fault, Stack Apps",
url: "^http://(?:meta\\.)?(?:s(?:erverfault|tackoverflow|uperuser|tackapps)|\\w+\\.stackexchange|askubuntu)\\.com/",
nextLink: '//a[@rel="next"]',
Expand Down Expand Up @@ -2721,6 +2727,31 @@ var SITEINFO=[
pageElement: '//img[@id="mangaFile"]',
}
},
{name: '汗汗漫画',
url: /^http:\/\/\w+\.vs20\.com\/\d+\/\w+\.htm/i,
siteExample: 'http://page.vs20.com/1815454/115321.htm?v=2*s=6',
nextLink: function(doc, win, cplink) {
// hrefInc 的方式不行因为这个地址最后还有额外的 *s=6
var m = cplink.match(/\?v=(\d+)/);
if (!m) {
// 第一页这种情况 http://page.vs20.com/1815454/115321.htm?s=6
return cplink.replace('?s=', '?v=2*s=');
} else {
var current = Number(m[1]),
next = current + 1;

var select = doc.querySelector('#all select');
if (!select) return;
var max = select.options.length;
if (next > max) return;
return cplink.replace(m[0], '?v=' + next);
}
},
autopager: {
useiframe: true,
pageElement: '//img[@id="ComicPic"]',
}
},
{name: '99漫画old',
url: /^http:\/\/(cococomic|dm.99manga|99manga|99comic|www.99comic|www.hhcomic)\.(com|cc)\/.+\.htm/i,
siteExample: 'http://99manga.com/page/168/6481.htm?v=3*s=9',
Expand Down Expand Up @@ -3307,15 +3338,15 @@ var SITEINFO_TP=[
pageElement:'//div[@id="postlist"] | //form[@method="post"][@name]',
replaceE: '//div[@class="pages" or @class="pg"][child::a[@class="next" or @class="nxt"][@href]]',
lazyImgSrc: 'zoomfile',
filter: function(pages){
// 回复后插入到最后一页
var doc = unsafeWindow.document;
var replays = doc.querySelectorAll("#postlistreply");
if(replays.length > 1){
var first = replays[0];
first.parentNode.removeChild(first);
}
}
// filter: function(pages){
// // 回复后插入到最后一页?有时候会在第一页?
// var doc = unsafeWindow.document;
// var replays = doc.querySelectorAll("#postlistreply");
// if(replays.length > 1){
// var first = replays[0];
// first.parentNode.removeChild(first);
// }
// }
}
},
{name: 'phpWind论坛列表',
Expand Down
51 changes: 41 additions & 10 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.2.5
// @version 6.2.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 @@ -1944,6 +1944,12 @@ var SITEINFO=[
pageElement:'css;#content>p'
}
},
{name: '图灵社区 : 图书',
url: '^http://www\\.ituring\\.com\\.cn/article/',
nextLink: 'auto;',
pageElement: '//div[@id="question-header"]/h1 | //div[@class="post-text"]',
separatorReal: false
},
{name: "Stack Overflow, Super User, Server Fault, Stack Apps",
url: "^http://(?:meta\\.)?(?:s(?:erverfault|tackoverflow|uperuser|tackapps)|\\w+\\.stackexchange|askubuntu)\\.com/",
nextLink: '//a[@rel="next"]',
Expand Down Expand Up @@ -2766,6 +2772,31 @@ var SITEINFO=[
pageElement: '//img[@id="mangaFile"]',
}
},
{name: '汗汗漫画',
url: /^http:\/\/\w+\.vs20\.com\/\d+\/\w+\.htm/i,
siteExample: 'http://page.vs20.com/1815454/115321.htm?v=2*s=6',
nextLink: function(doc, win, cplink) {
// hrefInc 的方式不行因为这个地址最后还有额外的 *s=6
var m = cplink.match(/\?v=(\d+)/);
if (!m) {
// 第一页这种情况 http://page.vs20.com/1815454/115321.htm?s=6
return cplink.replace('?s=', '?v=2*s=');
} else {
var current = Number(m[1]),
next = current + 1;

var select = doc.querySelector('#all select');
if (!select) return;
var max = select.options.length;
if (next > max) return;
return cplink.replace(m[0], '?v=' + next);
}
},
autopager: {
useiframe: true,
pageElement: '//img[@id="ComicPic"]',
}
},
{name: '99漫画old',
url: /^http:\/\/(cococomic|dm.99manga|99manga|99comic|www.99comic|www.hhcomic)\.(com|cc)\/.+\.htm/i,
siteExample: 'http://99manga.com/page/168/6481.htm?v=3*s=9',
Expand Down Expand Up @@ -3352,15 +3383,15 @@ var SITEINFO_TP=[
pageElement:'//div[@id="postlist"] | //form[@method="post"][@name]',
replaceE: '//div[@class="pages" or @class="pg"][child::a[@class="next" or @class="nxt"][@href]]',
lazyImgSrc: 'zoomfile',
filter: function(pages){
// 回复后插入到最后一页
var doc = unsafeWindow.document;
var replays = doc.querySelectorAll("#postlistreply");
if(replays.length > 1){
var first = replays[0];
first.parentNode.removeChild(first);
}
}
// filter: function(pages){
// // 回复后插入到最后一页?有时候会在第一页?
// var doc = unsafeWindow.document;
// var replays = doc.querySelectorAll("#postlistreply");
// if(replays.length > 1){
// var first = replays[0];
// first.parentNode.removeChild(first);
// }
// }
}
},
{name: 'phpWind论坛列表',
Expand Down

0 comments on commit 3730c44

Please sign in to comment.