magicoflolis / Userscript-Plus

🐒 Finds available UserJS for the current webpage, the power of Greasy Fork on the go!
https://addons.mozilla.org/firefox/addon/userscript-plus
MIT License
216 stars 22 forks source link
browser-extension greasemonkey tampermonkey tampermonkey-script userjs userscript

Magic Userscript+

[!IMPORTANT] If the current webpage is set to block resources through CSP

It will cause the userscript not work for that webpage!

https://developer.mozilla.org/docs/Web/HTTP/CSP

GitHub License GitHub Issues or Pull Requests GitHub Release Greasy Fork Downloads GitHub Stars

A complete rewrite of Userscript+ : Show Site All UserJS

Finds available Userscripts for the current webpage, the power of Greasy Fork on the go!

Changelog

List of known issues by Web Browser

Download

Userscript:

Userscript Userscript

Web Extension:

Web Extension has not been updated for a long time, please use Userscript until this is resolved!

Version Install Alternative Notes
Chrome/Edge/Opera GitHub N/A Work in progress
Firefox GitHub Add-on Store Work in progress

(Not Recommended) Bookmarklet:

Save this URL as a bookmark, clicking it will cause the userscript version to inject itself into the current webpage.

javascript:(function(){['https://cdn.jsdelivr.net/gh/magicoflolis/Userscript-Plus@master/userscript/dist/magic-userjs.user.js'].map(s=>document.body.appendChild(document.createElement('script')).src=s)})();

Demos
Using Tabs
Installing Userscript

Features

Userscript Features:

Tested and compatible with TamperMonkey or ViolentMonkey

Bookmarklet Features:

Webextension Features:

FAQ / Troubleshooting

How do I open the menu?:

Nothing appears bottom right:

List of known issues by Web Browser

Error occurred while injecting Container:

Error occurred while loading UserJS for this webpage:

No available UserJS for this webpage:

Viewing UserJS Logs

Build

Developed in VSCodium

Install Node.js and pnpm. The version of Node.js should match "node" key in package.json.

# Install dependencies
$ pnpm i

Userscript Version

Desktop version - developed using ViolentMonkey, see How to edit scripts with your favorite editor?

Mobile version - developed using FireFox Developer Edition "Responsive Design Mode" on desktop + cromite app on Android

# Watch and compile to local HTTP server
$ pnpm run dev:UserJS

# Compile UserJS
$ pnpm run pub:UserJS

Webextension Version

# Compile webextension (dev version) for "Chromium" to "./tests/chrome"
$ pnpm run dev:Cr
# Compile webextension (dev version) for "Firefox" to "./tests/chrome"
$ pnpm run dev:FF
# Compile webextension (public version) for "Chromium" to "./tests/chrome"
$ pnpm run webpack:Cr
# Compile webextension (public version) for "Firefox" to "./tests/chrome"
$ pnpm run webpack:FF

# [ Testing ]
# Browsers can be launched via "Run and Debug" in VSCode.
# Edit runtimeExecutable in ".vscode/launch.json" to your Chrome executable.
# Recommended to create an additional profile "about:profiles" for Firefox.

Roadmap

Source Code