Skip to content

Commit

Permalink
6.4.7 修正 i 为全局变量,GM_getValue 全局存储等问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ywzhaiqi committed Nov 16, 2014
1 parent 5c7179b commit 077d76a
Show file tree
Hide file tree
Showing 4 changed files with 2,972 additions and 2,856 deletions.
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.6",
"version": "6.4.7",
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-concat": "~0.4.0",
Expand Down
12 changes: 6 additions & 6 deletions Super_preloaderPlus/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ var SP = {
console.error('自定义站点规则错误', prefs.custom_siteinfo);
// alert('自定义站点规则错误');
}

if (Array.isArray(infos)) {
SITEINFO = infos.concat(SITEINFO);
}
Expand Down Expand Up @@ -116,7 +116,7 @@ function init(window, document) {
var nextlink;
var prelink;
//===============

var SSS = {};

var findCurSiteInfo = function() {
Expand All @@ -128,7 +128,7 @@ function init(window, document) {

debug('高级规则数量:', ii);

for (i = 0; i < ii; i++) {
for (var i = 0; i < ii; i++) {
SII = SITEINFO[i];
Rurl = toRE(SII.url);
if (Rurl.test(url)) {
Expand Down Expand Up @@ -247,7 +247,7 @@ function init(window, document) {
};

findCurSiteInfo();

//上下页都没有找到啊
if (!nextlink && !prelink) {
debug('未找到相关链接, JS执行停止. 共耗时' + (new Date() - startTime) + '毫秒');
Expand Down Expand Up @@ -340,7 +340,7 @@ function init(window, document) {
};

loadLocalSetting();

if (!SSS.hasRule) {
SSS.a_force = true;
}
Expand Down Expand Up @@ -386,4 +386,4 @@ function init(window, document) {
}


SP.init();
SP.init();
14 changes: 4 additions & 10 deletions Super_preloaderPlus/src/rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ if (window.name === 'superpreloader-iframe') { // 搜狗,iframe里面怎么不
}

// GM 兼容
var GM_getValue = this.GM_getValue,
GM_setValue = this.GM_setValue,
GM_registerMenuCommand = this.GM_registerMenuCommand,
GM_xmlhttpRequest = this.GM_xmlhttpRequest,
GM_addStyle = this.GM_addStyle;

gmCompatible();

/////////////////////设置(请注意开关的缩进关系..子开关一般在父开关为true的时候才会生效.)//////////////////////
Expand Down Expand Up @@ -3494,9 +3488,9 @@ var SITEINFO=[
url: "^https?://github\\.com/search",
nextLink: "//div[@class='pagination']/a[@rel='next']",
autopager: {
pageElement: "id('code_search_results issue_search_results')|//div[@class='sort-bar']/following-sibling::*[following-sibling::span[@class='search-foot-note']]",
insertBefore: "//div[@class='pagination']",
stylish: 'li.repo-list-item { text-align: left; }'
pageElement: "id('code_search_results issue_search_results')|//div[@class='sort-bar']/following-sibling::*[following-sibling::span[@class='search-foot-note']]",
insertBefore: "//div[@class='pagination']",
stylish: 'li.repo-list-item { text-align: left; }'
}
},
{
Expand Down Expand Up @@ -3790,4 +3784,4 @@ var REALPAGE_SITE_PATTERN = ['search?', 'search_', 'forum', 'thread'];


//------------------------下面的不要管他-----------------
///////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
Loading

0 comments on commit 077d76a

Please sign in to comment.