diff options
-rw-r--r-- | js/tab.js | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 ) { |