Skip to content

Commit fb649ca

Browse files
committed
Update
Signed-off-by: Magic <magicoflolis@tuta.io>
1 parent 5139465 commit fb649ca

48 files changed

Lines changed: 10221 additions & 6343 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.vscode/extensions.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"recommendations": [
3+
"mrmlnc.vscode-autoprefixer",
4+
"dbaeumer.vscode-eslint",
5+
"esbenp.prettier-vscode",
6+
"mrmlnc.vscode-scss",
7+
"adpyke.vscode-userscript"
8+
]
9+
}

README.md

Lines changed: 44 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
> [!IMPORTANT]
44
> If the current webpage is set to block resources through CSP
55
>
6-
> It will cause the User Script not work for that webpage!
6+
> It will cause the UserScript not work for that webpage!
77
>
88
> [https://developer.mozilla.org/docs/Web/HTTP/CSP](https://developer.mozilla.org/docs/Web/HTTP/CSP)
99
@@ -12,20 +12,20 @@
1212
[![Greasy Fork Downloads](https://img.shields.io/greasyfork/dt/421603?style=flat-square)](https://greasyfork.org/scripts/421603)
1313
[![GitHub Stars](https://img.shields.io/github/stars/magicoflolis/Userscript-Plus?style=flat-square)](https://github.com/magicoflolis/Userscript-Plus/stargazers)
1414

15-
*A complete rewrite of [Userscript+ : Show Site All UserJS](https://github.com/jae-jae/Userscript-Plus#userscript)*
15+
*A complete rewrite of [Userscript+ : Show Site All UserJS](https://github.com/jae-jae/Userscript-Plus)*
1616

17-
Finds available Userscripts for the current webpage, the power of [Greasy Fork](https://greasyfork.org) on the go!
17+
Finds available UserScripts for the current webpage, the power of [Greasy Fork](https://greasyfork.org) on the go!
1818

1919
[Changelog](https://github.com/magicoflolis/Userscript-Plus/releases)
2020

2121
[List of known issues by Web Browser](https://github.com/magicoflolis/Userscript-Plus/blob/master/browser-issues.md)
2222

2323
## **Download**
2424

25-
**Userscript:**
25+
**UserScript:**
2626

27-
[![Userscript](https://img.shields.io/badge/Userscript-Download-brightgreen.svg?style=flat-square&label=Greasy+Fork&logo=javascript&logoColor=white)](https://greasyfork.org/scripts/421603)
28-
[![Userscript](https://img.shields.io/badge/Userscript-Download-brightgreen.svg?style=flat-square&label=GitHub+Repo&logo=javascript&logoColor=white)](https://github.com/magicoflolis/Userscript-Plus/blob/master/dist/magic-userjs.user.js?raw=1)
27+
[![UserScript](https://img.shields.io/badge/Userscript-Download-brightgreen.svg?style=flat-square&label=Greasy+Fork&logo=javascript&logoColor=white)](https://greasyfork.org/scripts/421603)
28+
[![UserScript](https://img.shields.io/badge/Userscript-Download-brightgreen.svg?style=flat-square&label=GitHub+Repo&logo=javascript&logoColor=white)](https://github.com/magicoflolis/Userscript-Plus/blob/master/dist/magic-userjs.user.js?raw=1)
2929

3030
**Web Extension:**
3131

@@ -47,61 +47,60 @@ javascript:(function(){['https://cdn.jsdelivr.net/gh/magicoflolis/Userscript-Plu
4747
| Demos |
4848
|:----------:|
4949
|![Using Tabs](https://raw.githubusercontent.com/magicoflolis/Userscript-Plus/master/assets/using-tabs.gif)|
50-
|![Installing Userscript](https://raw.githubusercontent.com/magicoflolis/Userscript-Plus/master/assets/install-userscript.gif)|
50+
|![Installing UserScript](https://raw.githubusercontent.com/magicoflolis/Userscript-Plus/master/assets/install-userscript.gif)|
5151

5252
---
5353

5454
## Features
5555

5656
* Designed for mobile and desktop devices
5757
* Support multiple languages - date formats will match your current language
58-
* Ability to customize theme
59-
* Ability to import / export config and theme
60-
* Ability to search for userscripts
61-
* Ability to filter userscripts which do not match your current language
62-
* Ability to query userscripts from any hostname
63-
* Ability to sort userscripts, default sorting "Daily Installs"
64-
* Available search engines [Greasy Fork](https://greasyfork.org), [Sleazy Fork](https://sleazyfork.org), [Open UserJS](https://openuserjs.org), [GitHub](https://github.com/search?l=JavaScript&o=desc&q="==UserScript==") ( requires a [Personal Access Token](https://github.com/settings/tokens), the token does not require any permissions )
65-
* Built-in userscript [Greasyfork Search with Sleazyfork Results include](https://greasyfork.org/scripts/23840)
66-
* Preview any userscript code before install
67-
* Save any userscript to local file
68-
* Highlights which userscripts are created by the [author](https://greasyfork.org/users/166061)
69-
* Highlights recommended userscripts from the [author](https://greasyfork.org/users/166061)
70-
71-
**Userscript Features:**
58+
* Query UserScripts from [Greasy Fork](https://greasyfork.org), [Sleazy Fork](https://sleazyfork.org), [Open UserJS](https://openuserjs.org), [GitHub](https://github.com/search?l=JavaScript&o=desc&q="==UserScript==") ( requires a [Personal Access Token](https://github.com/settings/tokens), the token does not require any permissions )
59+
* Customize the theme
60+
* Import / export config and theme
61+
* Search for UserScripts
62+
* Filter UserScripts which do not match your current language
63+
* Sort UserScripts, default sorting "Daily Installs"
64+
* Preview UserScript code before install
65+
* Built-in UserScript [Greasyfork Search with Sleazyfork Results include](https://greasyfork.org/scripts/23840)
66+
* Save UserScript as a local file
67+
* Highlight UserScripts created by the [author](https://greasyfork.org/users/166061)
68+
* Highlight recommended UserScripts from the [author](https://greasyfork.org/users/166061)
69+
70+
**UserScript Features:**
7271

7372
> Tested and compatible with [TamperMonkey](https://www.tampermonkey.net/) or [ViolentMonkey](https://violentmonkey.github.io/)
7473
75-
* Ability to maximize, minimize, or exit the userscript list
76-
* Ability to change the position of floating counter
77-
* Sync config with Userscript Manager or choose to have site based configs
74+
* Maximize, minimize, or exit the UserScript list
75+
* Change the position of floating counter
76+
* Sync config with UserScript manager or per host
7877

7978
**Bookmarklet Features:**
8079

81-
* Ability to maximize, minimize, or exit the userscript list
82-
* Ability to change the position of floating counter
83-
* Ability to choose to have site based configs
80+
* Maximize, minimize, or exit the UserScript list
81+
* Change the position of floating counter
82+
* Separate config with every host
8483

8584
## FAQ / Troubleshooting
8685

87-
**(User Script) How do I open the menu?:**
86+
**(UserScript) How do I open the menu?:**
8887

8988
* Click or touch the bottom right of a webpage
9089

91-
**(User Script) Nothing appears bottom right:**
90+
**(UserScript) Nothing appears bottom right:**
9291

9392
> [List of known issues by Web Browser](https://github.com/magicoflolis/Userscript-Plus/blob/master/browser-issues.md)
9493
9594
* Try again on another webpage [[Test Page](https://youtube.com)]
9695
* Default timeout is 10000ms before the count disappears
97-
* If issue persists, see [Viewing UserJS Logs](#viewing-userjs-logs) or submit a [New Issue](https://github.com/magicoflolis/Userscript-Plus/issues/new/choose)
96+
* If issue persists, see [View UserScript Logs](#view-userscript-logs) or submit a [New Issue](https://github.com/magicoflolis/Userscript-Plus/issues/new/choose)
9897

99-
**(User Script) Error occurred while injecting Container:**
98+
**(UserScript) Error occurred while injecting Container:**
10099

101100
* Try again on another webpage [[Test Page](https://youtube.com)]
102101
* This error is caused by the current webpage not supporting [attachShadow](https://developer.mozilla.org/en-US/docs/Web/API/Element/attachShadow)
103102

104-
**(User Script) Error occurred while loading UserJS for this webpage:**
103+
**(UserScript) Error occurred while loading UserJS for this webpage:**
105104

106105
* Reload the webpage or try again on a different webpage [[Test Page](https://youtube.com)]
107106
* This error *may* be caused by
@@ -113,7 +112,7 @@ javascript:(function(){['https://cdn.jsdelivr.net/gh/magicoflolis/Userscript-Plu
113112
* This error *can* be caused when no UserJS could be found in enabled search engines
114113
* If there are known UserJS to exist in enabled search engines, enable `Filter out other languages`
115114

116-
## Viewing UserJS Logs
115+
## View UserScript Logs
117116

118117
* Open your web browsers Inspect Element and navigate to it's Console
119118
* Locate the following **[UserJS] < message >** ( you can filter your Console by entering **UserJS** or **[** )
@@ -122,39 +121,37 @@ javascript:(function(){['https://cdn.jsdelivr.net/gh/magicoflolis/Userscript-Plu
122121

123122
## Build
124123

125-
> Developed in [VSCodium](https://vscodium.com)
126-
127-
Install [Node.js](https://nodejs.org/) and [pnpm](https://pnpm.io/). The version of Node.js should match `"node"` key in `package.json`.
124+
Install [Node.js](https://nodejs.org/) and [pnpm](https://pnpm.io/). *The version of Node.js should match or be greater than the `"node"` key in `package.json`.*
128125

129126
``` sh
130127
# Install dependencies
131128
$ pnpm i
132129
```
133130

134-
### Userscript Version
131+
### UserScript Version
135132

136-
> Desktop version - developed using [ViolentMonkey](https://violentmonkey.github.io/), see [How to edit scripts with your favorite editor?](https://violentmonkey.github.io/posts/how-to-edit-scripts-with-your-favorite-editor/)
137-
>
138-
> Mobile version - developed using [FireFox Developer Edition](https://www.mozilla.org/firefox/developer/) "Responsive Design Mode" on desktop + [cromite](https://github.com/uazo/cromite) app on Android
133+
**Desktop** - Developed in [ViolentMonkey](https://violentmonkey.github.io/), see [How to edit scripts with your favorite editor?](https://violentmonkey.github.io/posts/how-to-edit-scripts-with-your-favorite-editor/)
134+
135+
**Mobile** - Developed in [FireFox Developer Edition](https://www.mozilla.org/firefox/developer/) "Responsive Design Mode" on desktop + [cromite](https://github.com/uazo/cromite) app on Android
139136

140137
``` sh
141138
# Watch and compile to local HTTP server
142139
$ pnpm run dev:UserJS
143140

144-
# Compile User Script to "./dist"
141+
# Compile UserScript to "./dist"
145142
$ pnpm run pub:UserJS
146143
```
147144

148-
### Webextension Version
145+
### WebExtension Version
149146

150147
``` sh
151-
# Compile webextension (dev version) for "Chromium" to "./build/chrome"
148+
# Compile WebExtension (developer version) for "Chromium" to "./build/chrome"
152149
$ pnpm run dev:Cr
153-
# Compile webextension (dev version) for "Firefox" to "./build/firefox"
150+
# Compile WebExtension (developer version) for "Firefox" to "./build/firefox"
154151
$ pnpm run dev:FF
155-
# Compile webextension (public version) for "Chromium" to "./build/chrome"
152+
# Compile WebExtension (public version) for "Chromium" to "./build/chrome"
156153
$ pnpm run webpack:Cr
157-
# Compile webextension (public version) for "Firefox" to "./build/firefox"
154+
# Compile WebExtension (public version) for "Firefox" to "./build/firefox"
158155
$ pnpm run webpack:FF
159156

160157
# [ Testing ]
@@ -165,9 +162,7 @@ $ pnpm run webpack:FF
165162

166163
### Roadmap
167164

168-
* Finish web extension version
169-
* Add translations to menu commands.
170-
* Add translations to "Install as user style?"
165+
* Finish WebExtension
171166
* Add sorting to the following: "Total installs", "Ratings", "Created date"
172167
* Improve design of blacklist section.
173168

dist/magic-userjs.meta.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)