From af4010e8bdd9aa1735af2f12e2875770379d82c4 Mon Sep 17 00:00:00 2001 From: papush Date: Wed, 22 Oct 2025 19:07:48 +0200 Subject: v2.8.5 --- chrome/js/redirect.js | 13 +++++++++---- install.rdf | 4 ++-- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/chrome/js/redirect.js b/chrome/js/redirect.js index 756ae15..bedacf0 100644 --- a/chrome/js/redirect.js +++ b/chrome/js/redirect.js @@ -1,8 +1,8 @@ var EXPORTED_SYMBOLS = ['Redirect']; -function Redirect(exampleUrl, includePattern, redirectUrl, patternType, excludePattern, unescapeMatches, escapeMatches, disabled) { - this._init(exampleUrl, includePattern, redirectUrl, patternType, excludePattern, unescapeMatches, escapeMatches, disabled); +function Redirect(description, exampleUrl, includePattern, redirectUrl, patternType, excludePattern, unescapeMatches, escapeMatches, disabled) { + this._init(description, exampleUrl, includePattern, redirectUrl, patternType, excludePattern, unescapeMatches, escapeMatches, disabled); } //Static @@ -51,6 +51,7 @@ Redirect.prototype = { toObject : function() { return { + description : this.description, exampleUrl : this.exampleUrl, includePattern : this.includePattern, excludePattern : this.excludePattern, @@ -70,6 +71,7 @@ Redirect.prototype = { }, copyValues : function(other) { + this.description = other.description; this.exampleUrl = other.exampleUrl; this.includePattern = other.includePattern; this.excludePattern = other.excludePattern; @@ -81,7 +83,8 @@ Redirect.prototype = { }, equals : function(redirect) { - return this.exampleUrl == redirect.exampleUrl + return this.description == redirect.description + && this.exampleUrl == redirect.exampleUrl && this.includePattern == redirect.includePattern && this.excludePattern == redirect.excludePattern && this.redirectUrl == redirect.redirectUrl @@ -168,7 +171,8 @@ Redirect.prototype = { return new RegExp(this._preparePattern(pattern),"gi"); }, - _init : function(exampleUrl, includePattern, redirectUrl, patternType, excludePattern, unescapeMatches, escapeMatches, disabled) { + _init : function(description, exampleUrl, includePattern, redirectUrl, patternType, excludePattern, unescapeMatches, escapeMatches, disabled) { + this.description = description || ''; this.exampleUrl = exampleUrl || ''; this.includePattern = includePattern || ''; this.excludePattern = excludePattern || ''; @@ -181,6 +185,7 @@ Redirect.prototype = { toString : function() { return 'REDIRECT: {' + + '\n\tDescription : ' + this.description + '\n\tExample url : ' + this.exampleUrl + '\n\tInclude pattern : ' + this.includePattern + '\n\tExclude pattern : ' + this.excludePattern diff --git a/install.rdf b/install.rdf index 2b677fe..33b40a7 100644 --- a/install.rdf +++ b/install.rdf @@ -4,7 +4,7 @@ url-rewriter@papush URL Rewriter - 2.8.4 + 2.8.5 papush Einar Egilsson (original author) Noah Luck Easterly @@ -21,7 +21,7 @@ {8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4} 28.0 - 29.* + 33.* -- cgit v1.2.3