Skip to content

Commit 662f4be

Browse files
committed
2.0.3a
Signed-off-by: magicoflolis <magicoflolis@gmail.com>
1 parent 7ff360a commit 662f4be

28 files changed

Lines changed: 828 additions & 435 deletions

.vscode/launch.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,29 @@
33
"compounds": [
44
{
55
"name": "Attach/Launch",
6-
"configurations": ["Attach:Firefox", "SF"]
6+
"configurations": ["Attach:Firefox", "Start:Firefox"]
77
}
88
],
99
"configurations": [
1010
{
11-
"name": "Attach:Firefox",
12-
"type": "firefox",
13-
"request": "attach",
11+
"name": "Attach:Firefox",
12+
"type": "firefox",
13+
"request": "attach",
1414
},
1515
{
16-
"name": "SF",
16+
"name": "Start:Firefox",
1717
"type": "firefox",
1818
"request": "launch",
1919
"reAttach": true,
2020
"reloadOnAttach": true,
2121
"keepProfileChanges": false,
2222
"clearConsoleOnReload": true,
2323
"url": "https://www.google.com/",
24-
"addonPath": "${workspaceFolder}\\dist\\extension"
24+
"addonPath": "${workspaceFolder}\\dist\\extension",
25+
"reloadOnChange": {
26+
"watch": [ "${workspaceFolder}/dist/extension/js/*.js" ],
27+
"ignore": [ "${workspaceFolder}/node_modules/**" ]
28+
}
2529
}
2630
]
2731
}

README.md

Lines changed: 34 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
1-
# Magics Userscript+
1+
# Magic Userscript+
22

33
> Finds available UserJS for current site.
44
55
*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).*
66

77
## Features
88

9+
*Recommended to install ["Greasyfork Search with Sleazyfork Results include"](https://greasyfork.org/scripts/23840)*
10+
911
> Currently [Userscript+](https://github.com/jae-jae/Userscript-Plus#userscript) can only find userscripts through [GreasyFork](https://greasyfork.org), I've added support for [SleazyFork](https://sleazyfork.org) along with a few additional features and tweaks!
1012
11-
* Added [SleazyFork](https://sleazyfork.org).
1213
* Tested and compatible with TamperMonkey n ViolentMonkey.
13-
* [ Browser Extension ] Added Dark Theme.
14+
* Added [SleazyFork](https://sleazyfork.org).
15+
* Added Dark Theme.
16+
* Added built-in ["Greasyfork Search with Sleazyfork Results include"](https://greasyfork.org/scripts/23840)
17+
18+
```bash
19+
let sleazyfork_redirect = false; // "true" to enable, "false" to disable
20+
```
1421

1522
![Preview](https://raw.githubusercontent.com/magicoflolis/Userscript-Plus/master/resources/preview.png)
1623

@@ -46,7 +53,7 @@ Chromium
4653
* Click to check *Developer mode*.
4754
* Click *Load unpacked extension...*.
4855
* In the file selector dialog:
49-
* Select the directory `userscriptplus-*` / desired folder.
56+
* Select the directory `userscript_for_tampermonkey-*` / desired folder.
5057
* Click *Open*.
5158

5259
Firefox
@@ -57,35 +64,47 @@ Firefox
5764
* Copy and paste `about:debugging#/runtime/this-firefox` into your URL.
5865
* Click *Load Temporary Add-on…*.
5966
* In the file selector dialog:
60-
* Select the directory `userscriptplus-*` / desired folder.
67+
* Select the directory `userscript_for_tampermonkey-*` / desired folder.
6168
* Click *Open*.
6269

6370
***
6471

6572
## Known bugs
6673

67-
* May leave a opened tab when TamperMonkey is used alongside.
68-
* **Will result in *i.table.noDataText* when no UserJS is found for current site OR is blocked.**
74+
* [ All ] May leave a opened tab when installing User Scripts.
75+
* [ User Script ] Found count may not appear.
76+
* [ User Script ] Script pages can't be opened with SleazyFork results.
6977
* [ User Script ] In some sites below the plug-in interface icon is not displayed,Such as: Github
7078

7179
> **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.
7280
7381
## Build Setup
7482

75-
> [web-ext documentation](https://extensionworkshop.com/documentation/develop/getting-started-with-web-ext/)
83+
> Additional help
84+
85+
* [web-ext documentation](https://extensionworkshop.com/documentation/develop/getting-started-with-web-ext/)
86+
* [http-server](https://github.com/http-party/http-server)
87+
* [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)
7688

7789
```bash
78-
# Install development dependencies
79-
npm i -D
80-
# Builds both User Script and Browser Extension
90+
# Install dependencies ( if error use npm i --force )
91+
npm i
92+
# [ Production ] Builds both User Script and Browser Extension
8193
npm run build:all
94+
# [ Development ] User Script
95+
# Recommend bookmarking for faster deployment
96+
# http://localhost:8080/magic-userjs.user.js
97+
npm run dev:user
98+
npm run http-server
99+
# [ Development ] Browser Extension
100+
# For Firefox use web-ext
82101
# Recommended to create additional profile about:profiles
83-
web-ext run -p <profile> -s ./extension/
84-
# Run web-ext
85-
web-ext run -s ./extension/
102+
web-ext run -p <profile>
103+
npm run dev:browser
104+
# For Chrome load unpacked, REPLACE manifest.json with chrome-manifest.json
86105
```
87106

88-
> Code is a bit of a mess right now
107+
> Source code is a bit of a mess right now
89108
90109
## License
91110

dist/chrome-manifest.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"manifest_version": 2,
3+
"author": "Magic of Lolis <magicoflolis@gmail.com>",
4+
"default_locale": "en",
5+
"name": "__MSG_extName__",
6+
"description": "__MSG_extShortDesc__",
7+
"version": "2.0.4",
8+
"homepage_url": "https://github.com/magicoflolis/Userscript-Plus",
9+
"content_scripts": [
10+
{
11+
"all_frames": true,
12+
"js": ["/js/sleazyfork.js"],
13+
"matches": ["https://*.greasyfork.org/*", "https://*.sleazyfork.org/*"],
14+
"run_at": "document_end"
15+
}
16+
],
17+
"browser_action": {
18+
"browser_style": false,
19+
"default_icon": "img/icon_128.png",
20+
"default_title": "UserJS Popup",
21+
"default_popup": "popup.html"
22+
},
23+
"options_ui": {
24+
"browser_style": false,
25+
"page": "options.html",
26+
"open_in_tab": false
27+
},
28+
"background": {
29+
"page": "background.html"
30+
},
31+
"content_security_policy": "script-src 'self'; object-src 'self'",
32+
"icons": {
33+
"16": "img/icon_16.png",
34+
"32": "img/icon_32.png",
35+
"96": "img/icon_96.png",
36+
"128": "img/icon_128.png"
37+
},
38+
"permissions": [
39+
"activeTab",
40+
"tabs",
41+
"<all_urls>",
42+
"storage",
43+
"unlimitedStorage"
44+
],
45+
"short_name": "uScriptPlus"
46+
}

dist/extension/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"default_locale": "en",
55
"name": "__MSG_extName__",
66
"description": "__MSG_extShortDesc__",
7-
"version": "2.0.3",
7+
"version": "2.0.4",
88
"homepage_url": "https://github.com/magicoflolis/Userscript-Plus",
99
"content_scripts": [
1010
{

0 commit comments

Comments
 (0)