Skip to content

Commit

Permalink
6.4.9 修正百度搜索
Browse files Browse the repository at this point in the history
  • Loading branch information
ywzhaiqi committed Jan 6, 2015
1 parent 29377b6 commit 5ec21d0
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 40 deletions.
1 change: 0 additions & 1 deletion Super_preloaderPlus/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ module.exports = function(grunt) {
grunt.registerTask('watch', ['watch'])

grunt.loadNpmTasks('grunt-contrib-concat')
grunt.loadNpmTasks('grunt-contrib-clean')
grunt.loadNpmTasks('grunt-contrib-watch')

}
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.8",
"version": "6.4.9",
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-concat": "~0.4.0",
Expand Down
19 changes: 15 additions & 4 deletions Super_preloaderPlus/src/rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ var SITEINFO=[
// url: "^https?://www\\.baidu\\.com/(s|baidu|#wd=)",
url: "^https?://www\\.baidu\\.com/",
enable:true,
nextLink:'//p[@id="page"]/a[contains(text(),"下一页")][@href]',
preLink:'//p[@id="page"]/a[contains(text(),"上一页")][@href]',
nextLink:'//div[@id="page"]/a[contains(text(),"下一页")][@href]',
preLink:'//div[@id="page"]/a[contains(text(),"上一页")][@href]',
autopager: {
pageElement: 'css;div#content_left > *',
HT_insert:['css;div#content_left',2],
Expand Down Expand Up @@ -389,7 +389,7 @@ var SITEINFO=[
}
},

// ================ news ===========================
// ================ news、Reading ===========================
{name: '新浪新闻',
url: /^http:\/\/[a-z]+\.sina\.com\.cn\//i,
exampleUrl: 'http://news.sina.com.cn/c/sd/2013-11-08/165728658916.shtml',
Expand Down Expand Up @@ -662,13 +662,24 @@ var SITEINFO=[
pageElement: 'id("ctrlfscont")',
exampleUrl: 'http://china.cankaoxiaoxi.com/roll10/2014/0817/464381.shtml',
},

{name: '中国网山东频道',
url: '^http://sd\\.china\\.com\\.cn/.*\\.html',
autopager: {
pageElement: 'css;.content',
relatedObj: true,
}
},
{name: '凯迪社区',
url: '^http://club\\.kdnet\\.net/list\\.asp',
nextLink: 'auto;',
pageElement: '//div[@class="lf w840px"]/div[@class="list-table"]/table',
exampleUrl: 'http://club.kdnet.net/list.asp?t=0&boardid=1&selTimeLimit=0&action=&topicmode=0&s=&page=1',
},
{name: '木木文摘',
url: 'http://www\\.85nian\\.net/',
nextLink: 'auto;',
pageElement: 'css;.entry-content'
},

//--- 国外新闻
{name: 'TouringCarTimes',
Expand Down
57 changes: 23 additions & 34 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.8
// @version 6.4.9
// @homepageURL https://greasyfork.org/scripts/293-super-preloaderplus-one

// @grant GM_addStyle
Expand All @@ -15,7 +15,7 @@

// @include http*
// @exclude http*://mail.google.com/*
// @exclude http*://maps.google*
// @exclude http*://maps.google*
// @exclude http*://www.google.com/reader*
// @exclude http*://www.google.com/calendar*
// @exclude https://docs.google.com/*
Expand All @@ -35,18 +35,20 @@
// @exclude http://www.youku.com/
// @exclude http://v.youku.com/*
// @exclude http://www.iqiyi.com/*
// @exclude http://www.duokan.com/reader/*
// ==/UserScript==


// 主要用于 chrome 原生下检查更新,也可用于手动检查更新
var scriptInfo = {
version: '6.4.8',
updateTime: '2014/11/17',
version: '6.4.9',
updateTime: '2015/1/7',
homepageURL: 'https://greasyfork.org/scripts/293-super-preloaderplus-one',
downloadUrl: 'https://greasyfork.org/scripts/293-super-preloaderplus-one/code/Super_preloaderPlus_one.user.js',
metaUrl: 'https://greasyfork.org/scripts/293-super-preloaderplus-one/code/Super_preloaderPlus_one.meta.js',
};


//----------------------------------
// rule.js

Expand Down Expand Up @@ -256,8 +258,8 @@ var SITEINFO=[
// url: "^https?://www\\.baidu\\.com/(s|baidu|#wd=)",
url: "^https?://www\\.baidu\\.com/",
enable:true,
nextLink:'//p[@id="page"]/a[contains(text(),"下一页")][@href]',
preLink:'//p[@id="page"]/a[contains(text(),"上一页")][@href]',
nextLink:'//div[@id="page"]/a[contains(text(),"下一页")][@href]',
preLink:'//div[@id="page"]/a[contains(text(),"上一页")][@href]',
autopager: {
pageElement: 'css;div#content_left > *',
HT_insert:['css;div#content_left',2],
Expand Down Expand Up @@ -439,7 +441,7 @@ var SITEINFO=[
}
},

// ================ news ===========================
// ================ news、Reading ===========================
{name: '新浪新闻',
url: /^http:\/\/[a-z]+\.sina\.com\.cn\//i,
exampleUrl: 'http://news.sina.com.cn/c/sd/2013-11-08/165728658916.shtml',
Expand Down Expand Up @@ -712,13 +714,24 @@ var SITEINFO=[
pageElement: 'id("ctrlfscont")',
exampleUrl: 'http://china.cankaoxiaoxi.com/roll10/2014/0817/464381.shtml',
},

{name: '中国网山东频道',
url: '^http://sd\\.china\\.com\\.cn/.*\\.html',
autopager: {
pageElement: 'css;.content',
relatedObj: true,
}
},
{name: '凯迪社区',
url: '^http://club\\.kdnet\\.net/list\\.asp',
nextLink: 'auto;',
pageElement: '//div[@class="lf w840px"]/div[@class="list-table"]/table',
exampleUrl: 'http://club.kdnet.net/list.asp?t=0&boardid=1&selTimeLimit=0&action=&topicmode=0&s=&page=1',
},
{name: '木木文摘',
url: 'http://www\\.85nian\\.net/',
nextLink: 'auto;',
pageElement: 'css;.entry-content'
},

//--- 国外新闻
{name: 'TouringCarTimes',
Expand Down Expand Up @@ -768,30 +781,6 @@ var SITEINFO=[
pageElement: '//div[@class="content"]',
}
},
{name: '土豆网 - 个人主页_视频',
url: /^http:\/\/www\.tudou\.com\/home\/item\//i,
exampleUrl: 'http://www.tudou.com/home/item/loveqiaolin',
nextLink:{
startAfter: '?page=',
mFails:[/^http:\/\/www\.tudou\.com\/home\/item\/.+/i,'?page=1&sort=1'],
inc:1,
isLast: function(doc,win,lhref){
var document = unsafeWindow.document;
var last = document.querySelector('#page ol:last-child');
var maxNum = last.textContent;
var m = lhref.match(/\?page=(\d+)/i);
if (m) {
return m[1] >= maxNum;
}
},
},
autopager: {
pageElement: 'id("main")/div[@class="mod mod_program_list"]/div[@class="c"]',
useiframe: true,
itimeout: 1000,
filter: 'css;#page'
}
},
{name: '搜狐视频 搜索',
url: /^http:\/\/so\.tv\.sohu\.com\/mts\?&wd=/i,
exampleUrl: 'http://so.tv.sohu.com/mts?&wd=%u6211%u662F%u7279%u79CD%u5175%u4E4B%u706B%u51E4%u51F0',
Expand Down Expand Up @@ -3849,8 +3838,8 @@ var REALPAGE_SITE_PATTERN = ['search?', 'search_', 'forum', 'thread'];
//----------------------------------
// 主要用于 chrome 原生下检查更新,也可用于手动检查更新
var scriptInfo = {
version: '6.4.8',
updateTime: '2014/11/17',
version: '6.4.9',
updateTime: '2015/1/7',
homepageURL: 'https://greasyfork.org/scripts/293-super-preloaderplus-one',
downloadUrl: 'https://greasyfork.org/scripts/293-super-preloaderplus-one/code/Super_preloaderPlus_one.user.js',
metaUrl: 'https://greasyfork.org/scripts/293-super-preloaderplus-one/code/Super_preloaderPlus_one.meta.js',
Expand Down

0 comments on commit 5ec21d0

Please sign in to comment.