|
| 1 | +# Magic Userscript+ |
| 2 | + |
| 3 | +> [09/09/21] Greasy Fork version may not work due to userscript library being removed. Use [GitHub](https://raw.githubusercontent.com/magicoflolis/Userscript-Plus/master/dist/magic-userjs.user.js) version for now. |
| 4 | +
|
| 5 | +*Fork of [Userscript+ : Show Site All UserJS](https://greasyfork.org/scripts/24508-userscript-show-site-all-userjs). Source code & authors information found [here](https://github.com/jae-jae/Userscript-Plus#userscript).* |
| 6 | + |
| 7 | +> Finds available UserJS for current site. |
| 8 | +
|
| 9 | + |
| 10 | + |
| 11 | +*** |
| 12 | + |
| 13 | +| Version | Link | Note | Alternative | Build | |
| 14 | +|:----------:|:----------:|:----------:|:----------:|:----------:| |
| 15 | +Chrome | ~~Install [Chrome Web Store]~~ | **There are no excluded websites, use at your own risk.** *Must be installed [manually](#manual-install).* | [Install [GitHub]](https://github.com/magicoflolis/Userscript-Plus/releases) | [Extension](#build-setup) |
| 16 | +Firefox | [Install [Firefox Add-ons]](https://addons.mozilla.org/addon/userscript-plus) | **There are no excluded websites, use at your own risk.** *Can be installed [manually](#manual-install).* | [Install [GitHub]](https://github.com/magicoflolis/Userscript-Plus/releases) | [Add-on](#build-setup) |
| 17 | +Userscript | [Install](#install-area) | The userscript **WON'T** work for all websites, [info](#known-bugs). | [Install [GitHub]](https://raw.githubusercontent.com/magicoflolis/Userscript-Plus/master/dist/magic-userjs.user.js) | [Userscript](#build-setup) |
| 18 | + |
| 19 | +*** |
| 20 | + |
| 21 | +## Features |
| 22 | + |
| 23 | +**_Optional_** *install [Greasyfork Search with Sleazyfork Results include](https://greasyfork.org/scripts/23840).* |
| 24 | + |
| 25 | +> Currently [Userscript+](https://github.com/jae-jae/Userscript-Plus#userscript) can only find userscripts through __GreasyFork__, I've added support for __SleazyFork__ along with a few additional features and tweaks! |
| 26 | +
|
| 27 | +* Tested and compatible with TamperMonkey n ViolentMonkey. |
| 28 | +* Trimmed / moved some @resources to this build. |
| 29 | +* Added [SleazyFork](https://sleazyfork.org). |
| 30 | +* Added Dark Theme. |
| 31 | +* Added extra @excludes. |
| 32 | +* Added built-in [Greasyfork Search with Sleazyfork Results include](https://greasyfork.org/scripts/23840). |
| 33 | + |
| 34 | +```bash |
| 35 | +let sleazyfork_redirect = false; // "true" to enable, "false" to disable |
| 36 | +``` |
| 37 | + |
| 38 | +## Known bugs |
| 39 | + |
| 40 | +* [ User Script ] *May* conflict with a few running user scripts. (Example: [Twitter External Translator](https://greasyfork.org/scripts/421643)) |
| 41 | +* [ All ] May leave a opened tab when installing user scripts. |
| 42 | +* [ User Script ] Found count may not appear. |
| 43 | +* [ User Script ] In some sites below the plug-in interface icon is not displayed |
| 44 | + |
| 45 | +> **Reason**:This is because the security policy of these sites to prevent the plug-in icon font file loading, resulting in the icon does not display properly. |
| 46 | +
|
| 47 | +## Manual Install |
| 48 | + |
| 49 | +Chromium |
| 50 | + |
| 51 | +* Download and unzip [latest release](https://github.com/magicoflolis/Userscript-Plus/releases) into desired folder. |
| 52 | +* Go to chromium/chrome *Extensions*. |
| 53 | +* Click to check *Developer mode*. |
| 54 | +* Click *Load unpacked extension...*. |
| 55 | +* In the file selector dialog: |
| 56 | + * Select the directory `userscript_for_tampermonkey-*` / desired folder. |
| 57 | + * Click *Open*. |
| 58 | + |
| 59 | +Firefox |
| 60 | + |
| 61 | +> See: [Temporary installation in Firefox](https://extensionworkshop.com/documentation/develop/temporary-installation-in-firefox) |
| 62 | +
|
| 63 | +* Download and unzip [latest release](https://github.com/magicoflolis/Userscript-Plus/releases) into desired folder. |
| 64 | +* Copy and paste `about:debugging#/runtime/this-firefox` into your URL. |
| 65 | +* Click *Load Temporary Add-on…*. |
| 66 | +* In the file selector dialog: |
| 67 | + * Select the directory `userscript_for_tampermonkey-*` / desired folder. |
| 68 | + * Click *Open*. |
| 69 | + |
| 70 | +## Build Setup |
| 71 | + |
| 72 | +> Developed using [VSCodium](https://vscodium.com). |
| 73 | +
|
| 74 | +| Help Links | |
| 75 | +|:----------:| |
| 76 | +[web-ext documentation](https://extensionworkshop.com/documentation/develop/getting-started-with-web-ext/) | |
| 77 | +[http-server](https://github.com/http-party/http-server) | |
| 78 | +[How to edit scripts with your favorite editor?](https://violentmonkey.github.io/posts/how-to-edit-scripts-with-your-favorite-editor/#install-a-local-script) | |
| 79 | + |
| 80 | +```bash |
| 81 | +# Install dependencies ( if error use npm i --force ) |
| 82 | +npm i |
| 83 | +# [ Production ] Builds both User Script and Browser Extension |
| 84 | +npm run build:all |
| 85 | +# [ Development ] User Script |
| 86 | +# Recommend bookmarking for faster deployment |
| 87 | +# http://localhost:8080/magic-userjs.user.js |
| 88 | +npm run dev:user |
| 89 | +npm run http-server |
| 90 | +# [ Development ] Browser Extension |
| 91 | +# For Firefox use web-ext |
| 92 | +# Recommended to create additional profile about:profiles |
| 93 | +web-ext run -p <profile> |
| 94 | +npm run dev:browser |
| 95 | +# For Chrome load unpacked, REPLACE manifest.json with chrome-manifest.json |
| 96 | +``` |
| 97 | + |
| 98 | +## Source Code |
| 99 | + |
| 100 | +* [GitHub](https://github.com/magicoflolis/Userscript-Plus) |
| 101 | + |
| 102 | +### License |
| 103 | + |
| 104 | +MIT |
| 105 | + |
| 106 | +### Contacts |
| 107 | + |
| 108 | +[GitHub](https://github.com/magicoflolis) |
| 109 | + |
| 110 | +[Twitter](https://twitter.com/for_lollipops) |
| 111 | + |
| 112 | +[Greasy Fork](https://greasyfork.org/users/166061) |
0 commit comments