Skip to content

Commit 8b3a36b

Browse files
committed
Fixed URL matching regexp (thanks insertscript).
1 parent e1cf2bb commit 8b3a36b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/content/content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ notifyPage();
118118
addEventListener("DOMContentLoaded", e => {
119119
if (ns.canScript) return;
120120
for (let m of document.querySelectorAll("meta[http-equiv=refresh]")) {
121-
if (/^[^,;]*[,;]\W*url[^=]*=[^!#$%&'()*+,/:;=?@[\]\w.,~-]*data:/i.test(m.getAttribute("content"))) {
121+
if (/^[^,;]*[,;]\W*url[^=]*=[^!#$%&()*+,/:;=?@[\]\w.,~-]*data:/i.test(m.getAttribute("content"))) {
122122
let url = m.getAttribute("content").replace(/.*?(?=data:)/i, "");
123123
log(`Blocking refresh to ${url}`);
124124
window.stop();

0 commit comments

Comments
 (0)