Skip to content

Commit

Permalink
Super_preloaderPlus_one 6.2.8 调整修正几个规则
Browse files Browse the repository at this point in the history
  • Loading branch information
ywzhaiqi committed Jul 22, 2014
1 parent 0a1f9d3 commit f335a4b
Show file tree
Hide file tree
Showing 5 changed files with 115 additions and 24 deletions.
1 change: 1 addition & 0 deletions Super_preloaderPlus/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ module.exports = function(grunt) {
grunt.registerTask('default', [
//'jshint',
'concat',
'watch'
])

grunt.registerTask('watch', ['watch'])
Expand Down
6 changes: 3 additions & 3 deletions Super_preloaderPlus/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@ function init(window, document) {
text-align:center!important;\
font-size:14px!important;\
padding:3px 0!important;\
margin:5px 10px 8px!important;\
margin:5px 10px 8px;\
clear:both!important;\
border-top:1px solid #ccc!important;\
border-bottom:1px solid #ccc!important;\
Expand Down Expand Up @@ -1093,7 +1093,7 @@ function init(window, document) {
font-size:14px!important;\
display:block!important;\
padding:3px 0!important;\
margin:5px 10px 8px!important;\
margin:5px 10px 8px;\
clear:both!important;\
border-top:1px solid #ccc!important;\
border-bottom:1px solid #ccc!important;\
Expand Down Expand Up @@ -2629,7 +2629,7 @@ function getRalativePageStr(lastUrl, currentUrl, nextUrl) {
} else {
ralativePageStr = '';
}
return ralativePageStr;
return ralativePageStr || '';
}

function handleLazyImgSrc(rule, doc) {
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.2.7
// @version 6.2.8
// @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
61 changes: 53 additions & 8 deletions Super_preloaderPlus/src/rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ var SITEINFO=[
autopager: {
pageElement: 'css;div#content_left',
replaceE: 'css;#page',
stylish: '.autopagerize_page_info { margin-bottom: 10px; }',
stylish: '.autopagerize_page_info, div.sp-separator { margin-bottom: 10px !important; }',
startFilter: function(win) {
// 设置百度搜索类型为 s?wd=
try {
Expand All @@ -209,6 +209,7 @@ var SITEINFO=[
nextLink:'//div[@id="page"]/a[text()="下一页>"] | id("snext")',
autopager:{
pageElement:'//div[@id="container"]',
stylish: '.autopagerize_page_info, div.sp-separator { margin-bottom: 20px !important; }'
}
},
{name: '搜狗搜索',
Expand Down Expand Up @@ -437,11 +438,12 @@ var SITEINFO=[
separatorReal: false
}
},
{name: 'IT之家极速版 - 滚动IT新闻 - 最新IT文章列表',
url: /^http:\/\/www\.ithome\.com\/list\//i,
nextLink: 'auto;',
{name: 'IT 之家',
url: /^http:\/\/\w+\.ithome\.com\//i,
nextLink: 'id("Pager")/div[@class="pagenew"]/a[text()=">"]',
autopager: {
pageElement: 'id("wrapper")/div[@class="content fl"]/div[@class="post_list"]',
pageElement: 'id("wrapper")/div[@class="content fl"]/div[@class="cate_list" or @class="post_list"]/ul[@class="ulcl"]',
replaceE: 'id("Pager")/div[@class="pagenew"]'
}
},
{name: '虎嗅网',
Expand Down Expand Up @@ -590,6 +592,15 @@ var SITEINFO=[
pageElement: '//div[@class="news_content_left"]/div[@class="content"]',
}
},
{name: '铁血网',
url: /^http:\/\/bbs\.tiexue\.net\/post.*\.html/i,
exampleUrl: 'http://bbs.tiexue.net/post2_7969883_3.html',
nextLink: '//div[@class="page"]/a[text()="下一页"]',
autopager: {
pageElement: 'id("postContent")/div[@class="newconli2"]',
relatedObj: true
}
},

//--- 国外新闻
{name: 'TouringCarTimes',
Expand Down Expand Up @@ -798,7 +809,7 @@ var SITEINFO=[
url: '^http://.*\\.douban\\.com/subject',
nextLink: '//div[@class="paginator"]/span[@class="next"]/a[contains(text(),"后页>")]',
autopager: {
pageElement: '//ul[contains(@class,"topic-reply")] | //div[@id="comments" or @class="post-comments"]'
pageElement: '//ul[contains(@class,"topic-reply")] | //div[@id="comments" or @class="post-comments" or @class="article"]'
}
},
{name: '我的小组话题 - 豆瓣',
Expand Down Expand Up @@ -1696,6 +1707,11 @@ var SITEINFO=[
nextLink: '//div[@class="pagenavi"]/a[contains(text(), "下一页")]',
pageElement: '//div[@id="container"]/div[@class="content"]/div[@class="post-list"]',
},
{name: 'iPc.me - 与你分享互联网的精彩!',
url: '^http://www\\.ipc\\.me/',
nextLink: '//div[@class="pagenavi"]/a[contains(text(), "下一页")]',
pageElement: 'id("posts-list")',
},
{name: '独木成林',
url: '^http://www\\.guofs\\.com/',
nextLink: '//a[@class="nextpostslink"]',
Expand Down Expand Up @@ -1870,7 +1886,7 @@ var SITEINFO=[
nextLink:'//div[@class="page_nav"]/descendant::a[text()="下一页"]',
autopager:{
pageElement:'//body/div/div[@class="content"]/table',
replaceE:'////div[@class="page_nav"]',
replaceE:'//div[@class="page_nav"]',
}
},
{name: 'CSDN话题',
Expand Down Expand Up @@ -2720,8 +2736,29 @@ var SITEINFO=[
pageElement: '//img[@id="mangaFile"]',
}
},
{name: '基德漫画网',
url: /^http:\/\/www\.jide123\.net\/manhua\/.*\.html/i,
exampleUrl: 'http://www.jide123.net/manhua/3670/272725.html?p=2',
nextLink: {
startAfter: '?p=',
mFails: [/^http:\/\/www\.jide123\.net\/manhua\/.*\.html/i, '?p=1'],
inc: 1,
isLast: function(doc, win, lhref) {
var select = doc.getElementById('qTcms_select_i');
if (select) {
var s2os = select.options;
var s2osl = s2os.length;
if (select.selectedIndex == s2osl - 1) return true;
}
},
},
autopager: {
pageElement: 'id("qTcms_pic")',
useiframe: true,
}
},
{name: '汗汗漫画',
url: /^http:\/\/\w+\.vs20\.com\/\d+\/\w+\.htm/i,
url: /^http:\/\/\w+\.(?:vs20|3gmanhua|hhcomic)\.(?:com|net)\/\w+\/\w+\.htm/i,
siteExample: 'http://page.vs20.com/1815454/115321.htm?v=2*s=6',
nextLink: function(doc, win, cplink) {
// hrefInc 的方式不行因为这个地址最后还有额外的 *s=6
Expand Down Expand Up @@ -2970,6 +3007,14 @@ var SITEINFO=[
relatedObj: true
}
},
{name: 'JAVLibrary',
url: /^http:\/\/www\.javlibrary\.com\/cn\//i,
exampleUrl: 'http://www.javlibrary.com/cn/vl_bestrated.php',
nextLink: '//div[@class="page_selector"]/a[@class="page next"]',
autopager: {
pageElement: 'id("rightcolumn")/div[@class="videothumblist"] | id("rightcolumn")/div[@class="starbox"]',
}
},

// ==================== 国外站点 ===================
{name: 'AnandTech',
Expand Down
69 changes: 57 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.2.7
// @version 6.2.8
// @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 @@ -240,7 +240,7 @@ var SITEINFO=[
autopager: {
pageElement: 'css;div#content_left',
replaceE: 'css;#page',
stylish: '.autopagerize_page_info { margin-bottom: 10px; }',
stylish: '.autopagerize_page_info, div.sp-separator { margin-bottom: 10px !important; }',
startFilter: function(win) {
// 设置百度搜索类型为 s?wd=
try {
Expand All @@ -254,6 +254,7 @@ var SITEINFO=[
nextLink:'//div[@id="page"]/a[text()="下一页>"] | id("snext")',
autopager:{
pageElement:'//div[@id="container"]',
stylish: '.autopagerize_page_info, div.sp-separator { margin-bottom: 20px !important; }'
}
},
{name: '搜狗搜索',
Expand Down Expand Up @@ -482,11 +483,12 @@ var SITEINFO=[
separatorReal: false
}
},
{name: 'IT之家极速版 - 滚动IT新闻 - 最新IT文章列表',
url: /^http:\/\/www\.ithome\.com\/list\//i,
nextLink: 'auto;',
{name: 'IT 之家',
url: /^http:\/\/\w+\.ithome\.com\//i,
nextLink: 'id("Pager")/div[@class="pagenew"]/a[text()=">"]',
autopager: {
pageElement: 'id("wrapper")/div[@class="content fl"]/div[@class="post_list"]',
pageElement: 'id("wrapper")/div[@class="content fl"]/div[@class="cate_list" or @class="post_list"]/ul[@class="ulcl"]',
replaceE: 'id("Pager")/div[@class="pagenew"]'
}
},
{name: '虎嗅网',
Expand Down Expand Up @@ -635,6 +637,15 @@ var SITEINFO=[
pageElement: '//div[@class="news_content_left"]/div[@class="content"]',
}
},
{name: '铁血网',
url: /^http:\/\/bbs\.tiexue\.net\/post.*\.html/i,
exampleUrl: 'http://bbs.tiexue.net/post2_7969883_3.html',
nextLink: '//div[@class="page"]/a[text()="下一页"]',
autopager: {
pageElement: 'id("postContent")/div[@class="newconli2"]',
relatedObj: true
}
},

//--- 国外新闻
{name: 'TouringCarTimes',
Expand Down Expand Up @@ -843,7 +854,7 @@ var SITEINFO=[
url: '^http://.*\\.douban\\.com/subject',
nextLink: '//div[@class="paginator"]/span[@class="next"]/a[contains(text(),"后页>")]',
autopager: {
pageElement: '//ul[contains(@class,"topic-reply")] | //div[@id="comments" or @class="post-comments"]'
pageElement: '//ul[contains(@class,"topic-reply")] | //div[@id="comments" or @class="post-comments" or @class="article"]'
}
},
{name: '我的小组话题 - 豆瓣',
Expand Down Expand Up @@ -1741,6 +1752,11 @@ var SITEINFO=[
nextLink: '//div[@class="pagenavi"]/a[contains(text(), "下一页")]',
pageElement: '//div[@id="container"]/div[@class="content"]/div[@class="post-list"]',
},
{name: 'iPc.me - 与你分享互联网的精彩!',
url: '^http://www\\.ipc\\.me/',
nextLink: '//div[@class="pagenavi"]/a[contains(text(), "下一页")]',
pageElement: 'id("posts-list")',
},
{name: '独木成林',
url: '^http://www\\.guofs\\.com/',
nextLink: '//a[@class="nextpostslink"]',
Expand Down Expand Up @@ -1915,7 +1931,7 @@ var SITEINFO=[
nextLink:'//div[@class="page_nav"]/descendant::a[text()="下一页"]',
autopager:{
pageElement:'//body/div/div[@class="content"]/table',
replaceE:'////div[@class="page_nav"]',
replaceE:'//div[@class="page_nav"]',
}
},
{name: 'CSDN话题',
Expand Down Expand Up @@ -2765,8 +2781,29 @@ var SITEINFO=[
pageElement: '//img[@id="mangaFile"]',
}
},
{name: '基德漫画网',
url: /^http:\/\/www\.jide123\.net\/manhua\/.*\.html/i,
exampleUrl: 'http://www.jide123.net/manhua/3670/272725.html?p=2',
nextLink: {
startAfter: '?p=',
mFails: [/^http:\/\/www\.jide123\.net\/manhua\/.*\.html/i, '?p=1'],
inc: 1,
isLast: function(doc, win, lhref) {
var select = doc.getElementById('qTcms_select_i');
if (select) {
var s2os = select.options;
var s2osl = s2os.length;
if (select.selectedIndex == s2osl - 1) return true;
}
},
},
autopager: {
pageElement: 'id("qTcms_pic")',
useiframe: true,
}
},
{name: '汗汗漫画',
url: /^http:\/\/\w+\.vs20\.com\/\d+\/\w+\.htm/i,
url: /^http:\/\/\w+\.(?:vs20|3gmanhua|hhcomic)\.(?:com|net)\/\w+\/\w+\.htm/i,
siteExample: 'http://page.vs20.com/1815454/115321.htm?v=2*s=6',
nextLink: function(doc, win, cplink) {
// hrefInc 的方式不行因为这个地址最后还有额外的 *s=6
Expand Down Expand Up @@ -3015,6 +3052,14 @@ var SITEINFO=[
relatedObj: true
}
},
{name: 'JAVLibrary',
url: /^http:\/\/www\.javlibrary\.com\/cn\//i,
exampleUrl: 'http://www.javlibrary.com/cn/vl_bestrated.php',
nextLink: '//div[@class="page_selector"]/a[@class="page next"]',
autopager: {
pageElement: 'id("rightcolumn")/div[@class="videothumblist"] | id("rightcolumn")/div[@class="starbox"]',
}
},

// ==================== 国外站点 ===================
{name: 'AnandTech',
Expand Down Expand Up @@ -4534,7 +4579,7 @@ function init(window, document) {
text-align:center!important;\
font-size:14px!important;\
padding:3px 0!important;\
margin:5px 10px 8px!important;\
margin:5px 10px 8px;\
clear:both!important;\
border-top:1px solid #ccc!important;\
border-bottom:1px solid #ccc!important;\
Expand Down Expand Up @@ -4662,7 +4707,7 @@ function init(window, document) {
font-size:14px!important;\
display:block!important;\
padding:3px 0!important;\
margin:5px 10px 8px!important;\
margin:5px 10px 8px;\
clear:both!important;\
border-top:1px solid #ccc!important;\
border-bottom:1px solid #ccc!important;\
Expand Down Expand Up @@ -6198,7 +6243,7 @@ function getRalativePageStr(lastUrl, currentUrl, nextUrl) {
} else {
ralativePageStr = '';
}
return ralativePageStr;
return ralativePageStr || '';
}

function handleLazyImgSrc(rule, doc) {
Expand Down

0 comments on commit f335a4b

Please sign in to comment.