You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,8 +60,9 @@ After installing the iOS App, you need two main steps to make the extension work
60
60
61
61
There are two main ways to install a user script from the iOS version:
62
62
63
-
- Visit any `.user.js` URL in Safari, then open the extension `popup` and you will see an installation prompt
64
-
- You can also save `.user.js` files directly to the Userscripts directory you set above
63
+
- Visit a `.user.js` URL in Safari, then open the extension `popup` and you will see an installation prompt
64
+
- The URL should end with `.user.js` in `/PATH` part, not the `?QUERY` or `#HASH` parts
65
+
- You could also save files with the extension `.user.js` directly to the Userscripts directory you set above
65
66
66
67
> [!TIP]
67
68
>
@@ -177,10 +178,13 @@ Userscripts Safari currently supports the following userscript metadata:
177
178
- when paired with `@updateURL`, this will allow the user to update a userscript from a remote source, if the version on their machine is `<` version at the update URL
178
179
-`@version` does nothing by itself, it needs to be paired with` @updateURL` for remote updating to function properly
179
180
-`@updateURL`
180
-
- the remote url to check version against
181
+
- the remote url to check version against, the url `/PATH` should end with `.meta.js` and contains the Metadata block
181
182
- if the version of the file located at the update URL is `>` the version on the local machine, the file will be updated
182
183
-`@updateURL` does nothing by itself, it needs to be paired with `@version` for remote updating to function properly
184
+
- Read this [link](https://stackoverflow.com/questions/38023717/) for more details
185
+
-_Note: The extension does not correctly implement the entire update process, tracking in issue [#248](https://github.com/quoid/userscripts/issues/248)_
183
186
-`@downloadURL`
187
+
- the url `/PATH` should end with `.user.js`, that is, it cannot be in `?QUERY` or `#HASH` parts
184
188
- optional download location for a remotely updateable file (\*i.e. a file that has both `@version` and `@updateURL`)
185
189
- when paired with `@version` and `@updateURL`, if the local version is `<` the version of the file that `@updateURL` points to, the extension will attempt to update the file's code with the contents of the file located at the `@downloadURL`
186
190
-`@downloadURL` does nothing by itself, it needs `@version` and `@updateURL` to present in order to function properly
Copy file name to clipboardExpand all lines: src/app/_locales/en/quick-start-guide-ios.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,15 @@
12
12
- Manage extensions from the Settings App (Settings > Safari > Extensions) or Safari App (`AA` button on iPhone, `extension-icon` on iPad, the same location where you open the extension's `popup` interface).
13
13
- For an optimal experience it's recommended that you "Always Allow" Userscripts for "All Websites", but you could also allow only the sites you want, but please don't forget your settings if your script doesn't work.
14
14
15
-
### How to you install a user script
16
-
17
-
- Visit any `.user.js` URL in Safari, then open the extension popup and you will see an installation prompt, or it will pop up automatically if you have enhanced prompts turned on.
18
-
- You can also save `.user.js` files directly to the Userscripts directory. The script file must contain a valid metadata block to match the page and be displayed in the extension popup.
15
+
### How to install and inject a user script and some things to note:
16
+
17
+
- The mobile extension does not currently have a built-in script editor, but you could still write your own scripts and install them.
18
+
- You could save files that extension with `.user.js` directly to the Userscripts directory.
19
+
- The script file must contain a valid metadata block to match the web pages and be displayed in the extension popup.
20
+
- When you visit a `.user.js` URL in Safari, open the extension popup and you will see an installation prompt, or it will pop up automatically if you have enhanced prompts turned on.
21
+
- The URL should end with `.user.js` in `/PATH` part, not the `?QUERY` or `#HASH` parts, otherwise it will not be considered a valid user script URL by the extension.
22
+
- When you enabled the extension and write the metadata correctly especially like `@match`, it will automatically complete the injection when you visit a matching web page.
23
+
- You could temporarily disable individual user scripts or all of them, just open the extension popup interface to toggle them.
19
24
20
25
### That’s it, start improving your quality of life now!
Copy file name to clipboardExpand all lines: src/app/_locales/en/quick-start-guide-mac.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,19 @@
9
9
10
10
-**Enable the extension in Safari**
11
11
12
-
- Enable Userscripts in Safari extensions list.
12
+
- Enable Userscripts in Safari > Settings... > Extensions list.
13
13
- For an optimal experience it's recommended that you "Always Allow" Userscripts for "All Websites", but you could also allow only the sites you want, but please don't forget your settings if your script doesn't work.
14
14
15
-
That’s it, start improving your quality of life now!
15
+
### How to install and inject a user script and some things to note:
16
+
17
+
- The preferred method is of course to create your own scripts, open the extension page and click on the plus sign in the editor to create a new JS, write code and save it.
18
+
- You could also save files that extension with `.user.js` directly to the Userscripts directory.
19
+
- The script file must contain a valid metadata block to match the web pages and be displayed in the extension popup.
20
+
- When you visit a `.user.js` URL in Safari, open the extension popup and you will see an installation prompt, or it will pop up automatically if you have enhanced prompts turned on.
21
+
- The URL should end with `.user.js` in `/PATH` part, not the `?QUERY` or `#HASH` parts, otherwise it will not be considered a valid user script URL by the extension.
22
+
- When you enabled the extension and write the metadata correctly especially like `@match`, it will automatically complete the injection when you visit a matching web page.
23
+
- You could temporarily disable individual user scripts or all of them, just open the extension popup interface to toggle them.
24
+
25
+
### That’s it, start improving your quality of life now!
16
26
17
27
_Hey, don't forget to read our detailed documentation to learn more._
0 commit comments