Skip to content

Commit

Permalink
Script preferences - script terminated by timeout (very many matches)
Browse files Browse the repository at this point in the history
  • Loading branch information
janekptacijarabaci committed Oct 31, 2015
1 parent 4d4e6ad commit cd7eaf3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions content/scriptprefs.js
Expand Up @@ -35,12 +35,16 @@ window.addEventListener('load', function() {
};
gUserIncludesEl.pages = gScript.userIncludes;

for (var i = 0; i < gScript.matches.length; i++) {
gScriptMatchesEl.addPage(gScript.matches[i].pattern);
var matchesPattern = [];
for (var i = 0, count = gScript.matches.length; i < count; i++) {
matchesPattern.push(gScript.matches[i].pattern);
}
for (var i = 0; i < gScript.userMatches.length; i++) {
gUserMatchesEl.addPage(gScript.userMatches[i].pattern);
gScriptMatchesEl.pages = matchesPattern;
var userMatchesPattern = [];
for (var i = 0, count = gScript.userMatches.length; i < count; i++) {
userMatchesPattern.push(gScript.userMatches[i].pattern);
}
gUserMatchesEl.pages = userMatchesPattern;

gScriptExcludesEl.pages = gScript.excludes;
gScriptExcludesEl.onAddUserInclude = function(url) {
Expand Down

0 comments on commit cd7eaf3

Please sign in to comment.