Skip to content

Commit

Permalink
Update searchJumper.user.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hoothin committed Dec 2, 2024
1 parent 7f214b8 commit 153e0fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion searchJumper.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,11 @@
return response.blob();
}
return response.text();
}).then(data => {f.onload && f.onload({status: res.status, response: data})}).catch(e => f.onerror && f.onerror(e))};
}).then(data => {
let doc = document.implementation.createHTMLDocument('');
doc.documentElement.innerHTML = createHTML(data);
f.onload && f.onload({status: res.status, response: data, responseXML: doc})
}).catch(e => f.onerror && f.onerror(e))};
}
if (GM_fetch) {
GM_fetch = async (url, option) => {
Expand Down

0 comments on commit 153e0fa

Please sign in to comment.