run-code-with-ublock
-e If your school allows the uBlock Origin chrome extension, then running any bookmarklet is possible. Very helpful if you are on a later version of chromeOS that blocks javascript in bookmarks!
Requirements: uBlock Origin - https://chromewebstore.google.com/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm
Code: /// execute_script.js window.addEventListener(“keyup”, event => { if (event.ctrlKey && event.which === 192) { eval(prompt(“Javascript code:”)); } })
- Make sure you have uBlock Origin installed.
- Go to the extension’s settings.
- Under the settings tab, check the “I am an advanced user” box, then click on the small cog icon.
- Find userResourcesLocation and change it from unset to the code above.
- Go to the My filters tab of the settings and add the following line: *##+js(execute_script.js)
- Press Ctrl + Shift + ` to run code on the current page! Put the javascript in the pop-up.
Credits: https://github.com/3kh0/ext-remover