Skip to content

Commit

Permalink
6.4.1 放弃新的计算实际页数的方法,有问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ywzhaiqi committed Sep 10, 2014
1 parent 5a34724 commit c56d6a3
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 31 deletions.
32 changes: 16 additions & 16 deletions Super_preloaderPlus/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2615,22 +2615,22 @@ function getRalativePageStr(lastUrl, currentUrl, nextUrl) {
return [0, 0];
}

// 新的方法
var lastQueryKeys = parseUri(lasturl).queryKey,
curQueryKeys = parseUri(url).queryKey,
name, lastNum, curNum;
for (name in curQueryKeys) {
if (!(name in lastQueryKeys)) continue;

lastNum = getDigital(lastQueryKeys[name]);
curNum = getDigital(curQueryKeys[name]);

if (isNaN(lastNum) || isNaN(curNum)) {
continue;
}

return [lastNum, curNum];
}
// // 新的方法
// var lastQueryKeys = parseUri(lasturl).queryKey,
// curQueryKeys = parseUri(url).queryKey,
// name, lastNum, curNum;
// for (name in curQueryKeys) {
// if (!(name in lastQueryKeys)) continue;

// lastNum = getDigital(lastQueryKeys[name]);
// curNum = getDigital(curQueryKeys[name]);

// if (isNaN(lastNum) || isNaN(curNum) || lastNum == curNum) {
// continue;
// }

// return [lastNum, curNum];
// }


// 以前的 lastDream2013 的方式
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.0
// @version 6.4.1
// @homepageURL https://greasyfork.org/scripts/293-super-preloaderplus-one

// @grant GM_addStyle
Expand Down
28 changes: 14 additions & 14 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.0
// @version 6.4.1
// @homepageURL https://greasyfork.org/scripts/293-super-preloaderplus-one

// @grant GM_addStyle
Expand Down Expand Up @@ -6409,22 +6409,22 @@ function getRalativePageStr(lastUrl, currentUrl, nextUrl) {
return [0, 0];
}

// 新的方法
var lastQueryKeys = parseUri(lasturl).queryKey,
curQueryKeys = parseUri(url).queryKey,
name, lastNum, curNum;
for (name in curQueryKeys) {
if (!(name in lastQueryKeys)) continue;
// // 新的方法
// var lastQueryKeys = parseUri(lasturl).queryKey,
// curQueryKeys = parseUri(url).queryKey,
// name, lastNum, curNum;
// for (name in curQueryKeys) {
// if (!(name in lastQueryKeys)) continue;

lastNum = getDigital(lastQueryKeys[name]);
curNum = getDigital(curQueryKeys[name]);
// lastNum = getDigital(lastQueryKeys[name]);
// curNum = getDigital(curQueryKeys[name]);

if (isNaN(lastNum) || isNaN(curNum)) {
continue;
}
// if (isNaN(lastNum) || isNaN(curNum) || lastNum == curNum) {
// continue;
// }

return [lastNum, curNum];
}
// return [lastNum, curNum];
// }


// 以前的 lastDream2013 的方式
Expand Down

0 comments on commit c56d6a3

Please sign in to comment.