Skip to content

Commit 303273e

Browse files
committed
Merge branch 'master' of https://github.com/hoothin/UserScripts
2 parents 56d4b89 + b42eb23 commit 303273e

File tree

4 files changed

+90
-73
lines changed

4 files changed

+90
-73
lines changed

DownloadAllContent/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
[![img](https://img.shields.io/github/stars/hoothin/UserScripts?style=social)](https://github.com/hoothin/UserScripts#StarMe)[Star Me](https://github.com/hoothin/UserScripts#StarMe)
1111

12+
安裝: [Github📥](https://hoothin.github.io/UserScripts/DownloadAllContent/DownloadAllContent.user.js) / [Greasefork📥](https://greasyfork.org/scripts/25068).
13+
1214
---
1315

1416
# 操作說明
@@ -23,7 +25,7 @@
2325

2426
![donate](https://s2.loli.net/2023/02/06/afTMxeASm48z5vE.jpg)
2527

26-
[怠惰小説下載器 ZIP 擴充](https://greasyfork.org/scripts/476943) 下載時將各章節分別存為 TXT,並打包成 ZIP 檔
28+
[怠惰小説下載器 ZIP 擴充](https://hoothin.github.io/UserScripts/DownloadAllContent/DownloadAllContentSavaAsZIP.user.js) 下載時將各章節分別存為 TXT,並打包成 ZIP 檔
2729

2830
[圖片驗證碼辨識](https://github.com/hoothin/ImgCodeCheck) 開啟`保留內文圖片的網址`後配合 ZIP 擴充可自動轉換圖片文字,詳閱[愛發電](https://afdian.com/p/c7fc3abc8e8411ee9b1852540025c377)
2931

Picviewer CE+/README.md

Lines changed: 85 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,19 @@ If you are glad to assist with the translation, please ✍️[edit this file](ht
4848
*Need more rules for peculiar sites? feel free to pull requests or open issues.*
4949

5050
## 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>
5354
<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+
<p dir="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+
<ol dir="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+
<p dir="auto">This way, you'll get a beautifully created PDF e-book.</p>
6364
</details>
6465

6566
## Custom [Rules Example](pvcep_rules.js):
@@ -140,73 +141,87 @@ Feel free to share your own custom rules on Greasy Fork!
140141
})();
141142
```
142143

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.
182-
- lazyAttr
183-
184-
`"lazyAttr": "data-lazy"`
185-
186-
Lazy loaded original image URL attribute name
187-
- xhr
188-
189-
`"xhr": { "url": ".showcase__link", "query": "img[fetchpriority]" }`
190-
191-
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
201144

145+
<details>
146+
<summary>Advance rule wizard</summary>
147+
<p dir="auto">There are two types of rules available:</p>
148+
<ul dir="auto">
149+
<li>
150+
<p dir="auto">JSON (simple mode)</p>
151+
<p dir="auto">These rules are written in JSON format and can be imported online through <a href="https://github.com/hoothin/UserScripts/discussions">Discussions</a> or <a href="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>
153+
<ul dir="auto">
154+
<li>JSON params
155+
<ul dir="auto">
156+
<li>
157+
<p dir="auto">name</p>
158+
<p dir="auto"><code>"name": "rule name"</code></p>
159+
<p dir="auto">Name of the rule</p>
160+
</li>
161+
<li>
162+
<p dir="auto">url</p>
163+
<p dir="auto"><code>"url": "^https://google\\.com"</code></p>
164+
<p dir="auto">Regular expression used to match the site URL.</p>
165+
</li>
166+
<li>
167+
<p dir="auto">src</p>
168+
<p dir="auto"><code>"src": "^https://image\\.xx\\.com"</code></p>
169+
<p dir="auto">Regular expression used to match the image src</p>
170+
</li>
171+
<li>
172+
<p dir="auto">r</p>
173+
<p dir="auto"><code>"r": "/(.*)\\d+/i"</code> or <code>"r": "thumb"</code></p>
174+
<p dir="auto">Simple string or regular expression used to replace the image src from</p>
175+
</li>
176+
<li>
177+
<p dir="auto">s</p>
178+
<p dir="auto"><code>"s": "$1"</code></p>
179+
<p dir="auto">Replace the image src to</p>
180+
</li>
181+
<li>
182+
<p dir="auto">ext</p>
183+
<p dir="auto"><code>"ext": "previous"</code></p>
184+
<p dir="auto">Capture nearby image element when the mouse hovers over a non-image element.</p>
185+
</li>
186+
<li>
187+
<p dir="auto">lazyAttr</p>
188+
<p dir="auto"><code>"lazyAttr": "data-lazy"</code></p>
189+
<p dir="auto">Lazy loaded original image URL attribute name</p>
190+
</li>
191+
<li>
192+
<p dir="auto">xhr</p>
193+
<p dir="auto"><code>"xhr": { "url": ".showcase__link", "query": "img[fetchpriority]" }</code></p>
194+
<p dir="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+
<p dir="auto">JS (full mode)</p>
202+
<p dir="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+
<ul dir="auto">
204+
<li>JS params
205+
<ul dir="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+
<p dir="auto">Learn from <a href="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>
213+
</li>
214+
</ul>
202215
</details>
203216

204217
## Blank Gallery Page
205218
[https://hoothin.github.io/UserScripts/Picviewer%20CE+/gallery.html](https://hoothin.github.io/UserScripts/Picviewer%20CE+/gallery.html)
206219

207220
> *A blank gallery page designed for viewing local or online pictures, showcasing every image you have imported.*
208221
209-
You can drag and drop folders or videos/audios/images into this gallery to get an electronic slideshow to view them.
222+
You can drag and drop **folders** or videos/audios/images into this gallery to get an electronic slideshow to view them.
223+
224+
Click with `Ctrl key` can import folder too.
210225

211226
Include `mode=`*`1`* to open gallery in view-more mode.<br/>
212227
Add `imgs=`*`http://xxx/xxx.jpg`* to import images. ` ` to split multi-image, `[01-09]` to generate nine urls form 01 to 09<br/>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<h1 align="center">⚙️<a href="https://greasyfork.org/users/8227">Greasemonkey scripts</a></h1>
1+
<h1 align="center">⚙️<a href="https://hoothin.github.io/UserScripts/">Greasemonkey scripts</a></h1>
22

33
<p align="center">
44
<a href="https://github.com/hoothin/UserScripts"><img src="https://img.shields.io/badge/License-MIT-red.svg" alt="license"></a>

RandomSexyPic/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Random sexy pictures
33
Browsing assistance for [Lolicon sexy pictures Api](https://api.lolicon.app/setu/v2?r18=1&num=5)
44
---
55

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>
77
For example: https://wall.alphacoders.com/api2.0/get.php?method=highest_rated&page=1&info_level=2&page=2
88

99
![case1](case1.jpg)![case2](case2.jpg)![case3](case3.jpg)![case4](case4.jpg)![case5](case5.jpg)

0 commit comments

Comments
 (0)