We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4e3bf2 commit cb0b149Copy full SHA for cb0b149
AutoPatchWork.safariextension/includes/AutoPatchWork.js
@@ -683,6 +683,11 @@
683
return;
684
}
685
docs.forEach(function (doc, i, docs) {
686
+ Array.prototype.forEach.call(doc.querySelectorAll('img'), function(img) {
687
+ if (!img.getAttribute('src').test(/(^https?:\/\/|^data:|^\/)/)) {
688
+ img.setAttribute('src', next.getAttribute('href').replace(/\/[\w:%#\$&\?\(\)~\.=\+\-]*$/, '/') + img.getAttribute('src'));
689
+ }
690
+ });
691
var insert_node = append_point.insertBefore(document.importNode(doc, true), insert_point);
692
var mutation = {
693
targetNode: insert_node,
0 commit comments