Skip to content

Commit

Permalink
Merge pull request #1173 from 5kh0/main
Browse files Browse the repository at this point in the history
Update ublockExec.js
  • Loading branch information
3kh0 authored Oct 8, 2024
2 parents 14912d8 + 10b1897 commit a7731ea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ublockExec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/// execute_script.js
window.addEventListener("keyup", event => {
if (event.ctrlKey && event.which === 192) {
eval(prompt("Eval:"));
let code = prompt("Eval:");
if (code.startsWith("javascript:")) {
code = code.substring(11);
}
eval(code);
}
})
});

0 comments on commit a7731ea

Please sign in to comment.