VoidPaste

Auto transform pasted image links.

目前為 2023-09-20 提交的版本,檢視 最新版本

作者
voidnyan
評價
0 0 0
版本
0.1.1
建立日期
2023-09-20
更新日期
2023-09-20
尺寸
950 位元組
授權條款
MIT
腳本執行於

This script surrounds pasted image links with image and link tags.
Add your desired image sharing domain(s) to the imageUrls array. You can also define the image width that you use.

This is mostly created to fit my use case, so there is not much parsing or handling of the pasted content.
It should work when you paste a link that starts with one of the domains defined.
You can even paste multiple links, if they are separated by line breaks.

https://i.ibb.co/C5gmSZh/Chihayafuru-2020-S03-E17-00-07-25.jpg

=>

[ img320(https://i.ibb.co/C5gmSZh/Chihayafuru-2020-S03-E17-00-07-25.jpg) ](https://i.ibb.co/C5gmSZh/Chihayafuru-2020-S03-E17-00-07-25.jpg)