stsyn
Moderator
Script executes, when "upload page":/images/new has some parameters in URL. All of them are not necessary. All not numeric parameters should be URI encoded (@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==]@
allows compacted version of root userscript to parse and fill your data.
- @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 it
- @src@ — source link
- @tags@ — list of tags separated by @,@ which will be inserted automatically
- @description@ — description
- @origin@ — numeric id of pre-selected "similar" image
- @originView@ — link to "similar" image itself
- @originWidth@ — width of "similar" image
- @originHeight@ — as previous
- @newWidth@ — width of new image. Use if Derpibooru fetchs preview image smaller than actual to display sizes correctly
- @newHeight@ — as previous
Selecting image from list of similar is equivalent to setting @origin@ parameter.
If origin parameter exists or changes, script fetchs: @originView@ (large view url), @originWidth@, @originHeight@, @tags@ (adds to defined in URL) and @src@ (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?tags=3d%2C%20artist%3Athevioletghost%2C%20looking%20at%20you%2C%20queen%20chrysalis%2C%20safe%2C%20solo%2C%20source%20filmmaker&src=http%3A%2F%2Fthevioletghost.tumblr.com%2Fpost%2F156087120675%2Fhere-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":http://www.derpibooru.org/images/new?newImg=http%3A%2F%2Fs3.amazonaws.com%2Fdata.tumblr.com%2F76a578e66c050fb9368c1ac1026a4676%2Ftumblr_moamaxd8a81r7jepho1_raw.jpg&src=http%3A%2F%2Ftsitra360.tumblr.com%2Fpost%2F52804598555%2Fquick-30-minute-drawing-practicing-styles-and&tags=artist%3Atsitra360&description=example%20text
"/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":/images/new?newImg=https%3A%2F%2Forig00.deviantart.net%2Fe747%2Ff%2F2016%2F170%2F9%2Fa%2Fcelestial_valkyrie_by_mysticalpha-da5fznj.jpg&src=https%3A%2F%2Fmysticalpha.deviantart.com%2Fart%2FCelestial-Valkyrie-613805887&tags=artist%3Amysticalpha&description=%5Bbq%5DDat%20hair%0A%0A%0A%20%0A%0A%20%0A%0A%20patreon.com%2Fmysticalpha%5B%2Fbq%5D&newWidth=2560&newHeight=1600
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==]@
allows compacted version of root userscript to parse and fill your data.
- @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 it
- @src@ — source link
- @tags@ — list of tags separated by @,@ which will be inserted automatically
- @description@ — description
- @origin@ — numeric id of pre-selected "similar" image
- @originView@ — link to "similar" image itself
- @originWidth@ — width of "similar" image
- @originHeight@ — as previous
- @newWidth@ — width of new image. Use if Derpibooru fetchs preview image smaller than actual to display sizes correctly
- @newHeight@ — as previous
Selecting image from list of similar is equivalent to setting @origin@ parameter.
If origin parameter exists or changes, script fetchs: @originView@ (large view url), @originWidth@, @originHeight@, @tags@ (adds to defined in URL) and @src@ (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?tags=3d%2C%20artist%3Athevioletghost%2C%20looking%20at%20you%2C%20queen%20chrysalis%2C%20safe%2C%20solo%2C%20source%20filmmaker&src=http%3A%2F%2Fthevioletghost.tumblr.com%2Fpost%2F156087120675%2Fhere-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":http://www.derpibooru.org/images/new?newImg=http%3A%2F%2Fs3.amazonaws.com%2Fdata.tumblr.com%2F76a578e66c050fb9368c1ac1026a4676%2Ftumblr_moamaxd8a81r7jepho1_raw.jpg&src=http%3A%2F%2Ftsitra360.tumblr.com%2Fpost%2F52804598555%2Fquick-30-minute-drawing-practicing-styles-and&tags=artist%3Atsitra360&description=example%20text
"/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":/images/new?newImg=https%3A%2F%2Forig00.deviantart.net%2Fe747%2Ff%2F2016%2F170%2F9%2Fa%2Fcelestial_valkyrie_by_mysticalpha-da5fznj.jpg&src=https%3A%2F%2Fmysticalpha.deviantart.com%2Fart%2FCelestial-Valkyrie-613805887&tags=artist%3Amysticalpha&description=%5Bbq%5DDat%20hair%0A%0A%0A%20%0A%0A%20%0A%0A%20patreon.com%2Fmysticalpha%5B%2Fbq%5D&newWidth=2560&newHeight=1600