mirror of
https://github.com/SoPat712/Speeder.git
synced 2026-10-08 11:05:02 -04:00
fix(extension): harden controls, rules, and speed persistence
This commit is contained in:
29 files changed
+6154
-842
No files matched your search
@@ -44,9 +44,10 @@ function applyJSDOMWindow(win) {
|
||||
win.close = vi.fn();
|
||||
}
|
||||
|
||||
function loadHtmlString(html) {
|
||||
function loadHtmlString(html, options) {
|
||||
const config = options || {};
|
||||
const dom = new JSDOM(html, {
|
||||
url: "https://example.org/",
|
||||
url: config.url || "https://example.org/",
|
||||
pretendToBeVisual: true,
|
||||
runScripts: "dangerously"
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user