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: Picviewer CE+/README.md
+85-70Lines changed: 85 additions & 70 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,18 +48,19 @@ If you are glad to assist with the translation, please ✍️[edit this file](ht
48
48
*Need more rules for peculiar sites? feel free to pull requests or open issues.*
49
49
50
50
## PDF Addon
51
-
Picviewer CE+ [PDF Addon](https://greasyfork.org/scripts/498445-picviewer-ce-pdf-addon). After installing this addon, when the `Compress to ZIP` feature is enabled, a PDF file will be generated instead of a ZIP file during the packaging process.
52
-
<details>
51
+
Picviewer CE+ [PDF Addon](https://hoothin.github.io/UserScripts/Picviewer%20CE+/pvcep_pdf_addon.user.js). After installing this addon, when the `Compress to ZIP` feature is enabled, a PDF file will be generated instead of a ZIP file during the packaging process.
52
+
53
+
<details>
53
54
<summary>Make a PDF e-book with this addon</summary>
54
-
55
-
For example, if there is a website with images from `xxx.com/1.jpg` to `xxx.com/99.jpg`, you can use this addon to generate a beautiful PDF e-book as follows:
56
-
1.Open the gallery by pressing Ctrl + g
57
-
2.In the `Command` menu, find and click `Add image`
58
-
3.Input `xxx.com/[1-99].jpg`
59
-
4.Right-click in the thumbnail frame below to ignore any unwanted images
60
-
5.Click `Download all shown` in the `Command` menu
61
-
62
-
This way, you'll get a beautifully created PDF e-book.
55
+
<pdir="auto">For example, if there is a website with images from <code>xxx.com/1.jpg</code> to <code>xxx.com/99.jpg</code>, you can use this addon to generate a beautiful PDF e-book as follows:</p>
56
+
<oldir="auto">
57
+
<li>Open the gallery by pressing Ctrl + g</li>
58
+
<li>In the <code>Command</code> menu, find and click <code>Add image</code></li>
59
+
<li>Input <code>xxx.com/[1-99].jpg</code></li>
60
+
<li>Right-click in the thumbnail frame below to ignore any unwanted images</li>
61
+
<li>Click <code>Download all shown</code> in the <code>Command</code> menu</li>
62
+
</ol>
63
+
<pdir="auto">This way, you'll get a beautifully created PDF e-book.</p>
63
64
</details>
64
65
65
66
## Custom [Rules Example](pvcep_rules.js):
@@ -140,73 +141,87 @@ Feel free to share your own custom rules on Greasy Fork!
140
141
})();
141
142
```
142
143
143
-
<details>
144
-
<summary><h2>Advance rule wizard</h2></summary>
145
-
146
-
There are two types of rules available:
147
-
+ JSON (simple mode)
148
-
149
-
These rules are written in JSON format and can be imported online through [Discussions](https://github.com/hoothin/UserScripts/discussions) or [Reddit](https://www.reddit.com/r/PicviewerCE).
150
-
They won't limited by websites that have a strict Content Security Policy that disallows unsafe-eval.
151
-
+ JSON params
152
-
- name
153
-
154
-
`"name": "rule name"`
155
-
156
-
Name of the rule
157
-
- url
158
-
159
-
`"url": "^https://google\\.com"`
160
-
161
-
Regular expression used to match the site URL.
162
-
- src
163
-
164
-
`"src": "^https://image\\.xx\\.com"`
165
-
166
-
Regular expression used to match the image src
167
-
- r
168
-
169
-
`"r": "/(.*)\\d+/i"` or `"r": "thumb"`
170
-
171
-
Simple string or regular expression used to replace the image src from
172
-
- s
173
-
174
-
`"s": "$1"`
175
-
176
-
Replace the image src to
177
-
- ext
178
-
179
-
`"ext": "previous"`
180
-
181
-
Capture nearby image element when the mouse hovers over a non-image element.
Fetch the link above the image that matches ".showcase__link" and query the "img[fetchpriority]" on the inner page from the link.
192
-
+ JS (full mode)
193
-
194
-
These rules are written in JavaScript object format. If you are not using a standalone userscript, they may be limited by websites that have a strict Content Security Policy that disallows unsafe-eval.
195
-
+ JS params
196
-
- all mentioned above and the function type instead of string type
197
-
- getImage
198
-
- getExtSrc
199
-
200
-
Learn from https://github.com/hoothin/UserScripts/blob/master/Picviewer%20CE%2B/pvcep_rules.js
201
144
145
+
<details>
146
+
<summary>Advance rule wizard</summary>
147
+
<pdir="auto">There are two types of rules available:</p>
148
+
<uldir="auto">
149
+
<li>
150
+
<pdir="auto">JSON (simple mode)</p>
151
+
<pdir="auto">These rules are written in JSON format and can be imported online through <ahref="https://github.com/hoothin/UserScripts/discussions">Discussions</a> or <ahref="https://www.reddit.com/r/PicviewerCE"rel="nofollow">Reddit</a>.
152
+
They won't limited by websites that have a strict Content Security Policy that disallows unsafe-eval.</p>
<pdir="auto">Fetch the link above the image that matches ".showcase__link" and query the "img[fetchpriority]" on the inner page from the link.</p>
195
+
</li>
196
+
</ul>
197
+
</li>
198
+
</ul>
199
+
</li>
200
+
<li>
201
+
<pdir="auto">JS (full mode)</p>
202
+
<pdir="auto">These rules are written in JavaScript object format. If you are not using a standalone userscript, they may be limited by websites that have a strict Content Security Policy that disallows unsafe-eval.</p>
203
+
<uldir="auto">
204
+
<li>JS params
205
+
<uldir="auto">
206
+
<li>all mentioned above and the function type instead of string type</li>
207
+
<li>getImage</li>
208
+
<li>getExtSrc</li>
209
+
</ul>
210
+
</li>
211
+
</ul>
212
+
<pdir="auto">Learn from <ahref="https://github.com/hoothin/UserScripts/blob/master/Picviewer%20CE%2B/pvcep_rules.js">https://github.com/hoothin/UserScripts/blob/master/Picviewer%20CE%2B/pvcep_rules.js</a></p>
Copy file name to clipboardExpand all lines: RandomSexyPic/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ Random sexy pictures
3
3
Browsing assistance for [Lolicon sexy pictures Api](https://api.lolicon.app/setu/v2?r18=1&num=5)
4
4
---
5
5
6
-
Can be used to preview pictures with any other JSON api. <br>Just open the api and click the "Parse current api" under command menu, and click again & cancel to disable.<br>
6
+
Can be used to preview pictures with **any other JSON api**. <br>Just open the api and click the "Parse current api" under command menu, and click again & cancel to disable.<br>
7
7
For example: https://wall.alphacoders.com/api2.0/get.php?method=highest_rated&page=1&info_level=2&page=2
0 commit comments