Makeshift DevTools (uBO) #1158
s0urce-c0de
started this conversation in
Fixes
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My friend @FinnBaltazar1111 was going to release this as a TitaniumNetwork kajig, but he is taking forever so i am just posting it here. The repo on his account is FinnBaltazar1111/uDevTools, but I wrote the whole thing, as evident in the credits. (Also beware, this is a big dump of my thoughts, so barely organized)
the readme.md for skids
uDevTools
Uses Chii to simulate DevTools via a uBlock Origin scriptlet.
To run:
Install uBlock Origin from Chrome Web Store (if it's blocked womp womp)
Go to
chrome-extension://cjpalhdlnbpafiamejdnhcphjbkeiagm/dashboard.html
Scroll down and check I am an advanced user
->
Click the right next to the check box (this will bring you to chrome-extension://cjpalhdlnbpafiamejdnhcphjbkeiagm/advanced-settings.html
On the last line next to
userResourcesLocation
, changeunset
tohttps://raw.githubusercontent.com/FinnBaltazar1111/uDevTools/main/uDevTools.min.js
and click Apply Changes. If it is already set you can change it from something likeuserResourcesLocation https://raw.githubusercontent.com/3kh0/ext-remover/main/ublockExec.js
(uRun) touserResourcesLocation https://raw.githubusercontent.com/3kh0/ext-remover/main/ublockExec.js https://raw.githubusercontent.com/FinnBaltazar1111/uDevTools/main/uDevTools.min.js
(uRun + uDevtools)Click Apply Changes
Go to chrome-extension://cjpalhdlnbpafiamejdnhcphjbkeiagm/dashboard.html#1p-filters.html
Inside the edit box, copy-paste this:
*##+js(chii.js)
in a new line, then click Apply Changes.And you're done! Note that this might not work on some sites due to additional protections.
To toggle, use keybind CTRL+ALT+I. This is broken on some websites (where it auto launches).
Known Websites where this works:
Websites known not to work:
uEruda
A version of uDevTools that works on a lot more sites due to CSP only disabling frames and scripts, but this is being run directly. Quite literally grab eruda from jsdelivr, put it in a scriptlet, run it. Steps to install (can be installed allong side uDevTools):
Install uBlock Origin from Chrome Web Store (if it's blocked womp womp)
Go to
chrome-extension://cjpalhdlnbpafiamejdnhcphjbkeiagm/dashboard.html
Scroll down and check I am an advanced user
->
Click the right next to the check box (this will bring you to chrome-extension://cjpalhdlnbpafiamejdnhcphjbkeiagm/advanced-settings.html
On the last line next to
userResourcesLocation
, changeunset
tohttps://raw.githubusercontent.com/FinnBaltazar1111/uDevTools/main/uDevTools.min.js
and click Apply Changes. If it is already set you can change it from something likeuserResourcesLocation https://raw.githubusercontent.com/3kh0/ext-remover/main/ublockExec.js
(uRun) touserResourcesLocation https://raw.githubusercontent.com/3kh0/ext-remover/main/ublockExec.js https://raw.githubusercontent.com/FinnBaltazar1111/uDevTools/main/uEruda.js
(uRun + uEruda).Click Apply Changes
Go to chrome-extension://cjpalhdlnbpafiamejdnhcphjbkeiagm/dashboard.html#1p-filters.html
Inside the edit box, copy-paste this:
*##+js(eruda.js)
in a new line, then click Apply Changes.Everything works except Google Docs/Sheets/Drive/etc.
Credits
The interesting stuff (summary, uses medium knowledge terms):
basically, inject chii into a page, and inject eruda. chii is blocked by CSP's default-src, script-src, and frame-src options. Both eruda and chii are blocked by the Trusted Types API. It can say no to a lot of operations. But it is only available in chromium-based browsers, not firefox (best browser) and safari (2nd best). No one except google in google drive/docs/sheets/etc. uses it. Some notable education sites (and others) which support/don't support it:
You can add multiple scriptlets source in uBlock Origin advanced settings by just adding them with a space. Right now you can get these at
I assume you know how to add the filters. It is glitchy, I did my best to fix uDevTools. Non minified version here. Have fun!
Filters:
*##+js(chii.js)
*##+js(eruda.js)
Also on a side note, what happened to this commit... FinnBaltazar1111/uDevTools@c263516
Beta Was this translation helpful? Give feedback.
All reactions