
stsyn 














Moderator
Script executes, when upload page has some parameters in URL. All of them are not necessary. All not numeric parameters should be URI encoded (
Directives
are required in your userscript.
encodeURIComponent
).Directives
// @include /http\(s\|\):\\/\\/\(www\\.\|\)\(trixie\|derpi\)booru.org\\/images\\/new.\*/
// @require https://github.com/stsyn/derpibooruscripts/raw/master/YouBooru/libs/ADUp-mini.js
// @grant unsafeWindow
are required in your userscript.
newImg
— link to uploading image. Note, that it’s being pasted and executes in the fetching field, so you may put there page link if you believe, that Derpibooru will handle itsrc
— source linktags
— list of tags separated by,
which will be inserted automaticallydescription
— descriptionorigin
— numeric id of pre-selected “similar” imageoriginView
— link to “similar” image itselforiginWidth
— width of “similar” imageoriginHeight
— as previousnewWidth
— width of new image. Use if Derpibooru fetchs preview image smaller than actual to display sizes correctlynewHeight
— as previous
Selecting image from list of similar is equivalent to settingorigin
parameter.
If origin parameter exists or changes, script fetchs:originView
(large view url),originWidth
,originHeight
,tags
(adds to defined in URL) andsrc
(only if wasn’t provided in URL)
Examples:
/images/new?tags=3d, artist:thevioletghost, looking at you, queen chrysalis, safe, solo, source filmmaker&src=//thevioletghost.tumblr.com/post/156087120675/here-has-a-bugg-queen-butt-cause-bugs&origin=1670513&originView=//derpicdn.net/img/2018/3/3/1670513/large.jpeg&originWidth=4000&originHeight=2250
/images/new?newImg=//s3.amazonaws.com/data.tumblr.com/76a578e66c050fb9368c1ac1026a4676/tumblr_moamaxd8a81r7jepho1_raw.jpg&src=//tsitra360.tumblr.com/post/52804598555/quick-30-minute-drawing-practicing-styles-and&tags=artist:tsitra360&description=example text
/images/new?newImg=//orig00.deviantart.net/e747/f/2016/170/9/a/celestial_valkyrie_by_mysticalpha-da5fznj.jpg&src=//mysticalpha.deviantart.com/art/Celestial-Valkyrie-613805887&tags=artist%3Amysticalpha&description=[bq]Dat hair patreon.com/mysticalpha[/bq]&newWidth=2560&newHeight=1600