aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--js/tab.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/tab.js b/js/tab.js
index 09bbef8..2d6af4a 100644
--- a/js/tab.js
+++ b/js/tab.js
@@ -50,6 +50,15 @@ var ηm = ηMatrix;
return 'http://' + this.behindTheSceneScope + '/';
}
+ // https://github.com/gorhill/uMatrix/issues/992
+ if (pageURL.startsWith('wyciwyg:')) {
+ // Matches strings like 'wyciwyg://101/'
+ let filter = /^wyciwyg:\/\/\d+\//.exec(pageURL);
+ if (filter) {
+ pageURL = pageURL.slice(filter[0].length);
+ }
+ }
+
// If the URL is that of our "blocked page" document, return the URL of
// the blocked page.
if ( pageURL.lastIndexOf(vAPI.getURL('main-blocked.html'), 0) === 0 ) {