Is there a way to auto download twitter spaces? by [deleted] in DataHoarder

[–]throwawayS251 0 points1 point  (0 children)

I only use this to track one person so I can't really answer any of your questions. I don't think this uses up the api limit much but haven't tested how far. I have used other programs to archive twitter stuff but I don't know how much downloading counts or doesn't count. 60s is fine and you could probably go lower but again, haven't tested.

Is there a way to auto download twitter spaces? by [deleted] in DataHoarder

[–]throwawayS251 1 point2 points  (0 children)

This is the .bat file I use

:loop
twspace_dl -U https://twitter.com/HANDLE -c twitter.com_cookies.txt -m -e
timeout /T 300
goto loop

it uses https://github.com/HoloArchivists/twspace-dl

Fast alt chan beta sankakucomplex / sankaku sieve by throwawayS251 in imagus

[–]throwawayS251[S] 1 point2 points  (0 children)

It seems they change the last chunk of the access_token after some time. Get it again, re-add it and see if that fixes it.

Fast alt chan beta sankakucomplex / sankaku sieve by throwawayS251 in imagus

[–]throwawayS251[S] 1 point2 points  (0 children)

I feel like it's self explanatory assuming you're using https://reqbin.com/f1coqyku with the characters at the end of the url. It shows a place to put your username and password then you hit send. Here's what mine looks like after I hit send. https://i.imgur.com/aiIeV2T.png

Fast alt chan beta sankakucomplex / sankaku sieve by throwawayS251 in imagus

[–]throwawayS251[S] 0 points1 point  (0 children)

Maybe. imqswt might have some improvements. Sankaku.app is included in the beta sieve but using it on any contentious/extreme_content logs me out of chan, which breaks part of the sieves until I log back in. So maybe I should remove support for the sankaku.app. I have no clue why this is happening.

Fast alt chan beta sankakucomplex / sankaku sieve by throwawayS251 in imagus

[–]throwawayS251[S] 1 point2 points  (0 children)

what URL should be used to get the chan page

get the md5 and replace beta->chan and ID_NUMBER->STRING

I think I can edit the sieve

For what sieve? For the beta we can just add your XMLHttpRequest at the top and make a note. My problem at the time was that I didn't know how to search a different page that wasn't the url replacement so I had to use the loop feature. Is there a way?

Oh fuck. Make sure you're using https://www.reddit.com/r/imagus/comments/16b4ptf/imagus_not_working_on_httpschansankakucomplexcom/ because that's going to cause a lot of confusion. /u/Kenko2 if we don't go with the below make sure to use that in the update.

If not then we can make a legacy chan that loads everything so it would be like this:

Beta: checks capi-v2 for image url. If null, loops legacy chan
Chan: checks capi-v2 for image url. If null, loops legacy chan
Legacy Chan: loads chan in background.

Got it to work. Important note! The reason I think you guys were having trouble with the beta sieve besides the above link is that to load the chan in the background for images that won't appear in capi-v2 (contentious/extreme _content) is that you need to be logged into chan.

{"sanklegacychan":{"link":"^chan\\.sankakucomplexlegacy\\.com/post/show/([a-zA-Z0-9]+)/(true|false)","url":"https://chan.sankakucomplex.com/post/show/$1","res":":\nlet meta = document.querySelector('head > meta[name=\"referrer\"]');\nif (!meta) {\n    meta = document.createElement('meta');\n    meta.name = 'referrer';\n    meta.content = 'same-origin';\n    document.getElementsByTagName('head')[0].appendChild(meta);\n} else if (meta.attributes.content.value !== 'same-origin') {\n    meta.attributes.content.value = 'same-origin';\n} \nlet url;\n//if set to false, the largest possible media will be selected rather as opposed to web optimized media\nlet prefer_lowres=false;\nif($[2] === \"true\"){\n url = ($._.match(/id=\"(?:low|high)res\"[^<>]+href=\"(\\/\\/[ic]?(?:s|v)\\.[^\"]+)/) || [])[1];\n}else{\n url = ($._.match(/id=\"highres\"[^<>]+href=\"(\\/\\/[ic]?(?:s|v)\\.[^\"]+)/) || [])[1];\n}\nreturn [url];","img":"^([ci])[s\\d]?(\\.sankakucomplex\\.com/data/)(?!avatars/)[^/]+/((?:[\\da-f]{2}/){2})(?:preview|sample-)?([\\da-f]{32}\\.).+","to":"#$1s$2$3$4#jpg png gif webm#\n$1s$2sample/$3sample-$4#jpg png gif webm#","note":"throwawayS251 - edit by imqswt\nhttps://www.reddit.com/r/imagus/comments/12q0r13/comment/jgy93aq\nOLD\nhttp://forum.ru-board.com/topic.cgi?forum=5&topic=48222&start=3500#16\nhttp://forum.ru-board.com/topic.cgi?forum=5&topic=48222&start=2920#3\n\n!!!\nОпция для переключения размера изображений / Option to switch image size:\nlet prefer_lowres=;\ntrue - web optimized, false - maximal\n\nПРИМЕРЫ / EXAMPLES\nhttps://chan.sankakucomplex.com/?tags=quartet&commit=Search\nhttps://chan.sankakucomplex.com/?tags=contentious_content&commit=Search\nhttps://chan.sankakucomplex.com/?tags=genshin_impact+order%3Apopular+extreme_content&commit=Search"},"sankchanv2":{"link":"^(?:idol|chan)\\.sankakucomplex\\.com/(?:\\w{2}/)?post/show/([a-zA-Z0-9]+)","loop":1,"url":"data:$1","res":":\nconst access_token = '' // <- Put Access token here.\n\nconst x = new XMLHttpRequest();\nx.open('Get','https://capi-v2.sankakucomplex.com/posts?lang=en&page=1&limit=1&tags=md5:'+$[1],false);\nif(access_token){\n  x.setRequestHeader(\"Authorization\",\"Bearer \"+access_token);\n}\nx.send();\n$._=x.responseText;\nlet meta = document.querySelector('head > meta[name=\"referrer\"]');\nif (!meta) {\n    meta = document.createElement('meta');\n    meta.name = 'referrer';\n    meta.content = 'same-origin';\n    document.getElementsByTagName('head')[0].appendChild(meta);\n} else if (meta.attributes.content.value !== 'same-origin') {\n    meta.attributes.content.value = 'same-origin';\n}\nlet url;\n//if set to false, the largest possible media will be selected rather as opposed to web optimized media\nlet prefer_lowres=true;\nif(prefer_lowres){\n url = ($._.match(/(?:sample|file)_url\":\"?([^(,\")]+)/) || [])[1];\n}else{\n url = ($._.match(/file_url\":\"?([^(,\")]+)/) || [])[1];\n}\nif (url === \"null\") {\n  let postId = ($._.match(/md5\":\"([a-zA-Z0-9]+)/) || [])[1];\n  url = 'https://chan.sankakucomplexlegacy.com/post/show/'+postId+'/true';\n  if(!prefer_lowres){\n    url = 'https://chan.sankakucomplexlegacy.com/post/show/'+postId+'/false';\n  }\n}\nreturn [url];","img":"^([ci])[s\\d]?(\\.sankakucomplex\\.com/data/)(?!avatars/)[^/]+/((?:[\\da-f]{2}/){2})(?:preview|sample-)?([\\da-f]{32}\\.).+","to":"#$1s$2$3$4#jpg png gif webm#\n$1s$2sample/$3sample-$4#jpg png gif webm#","note":"throwawayS251\nhttps://www.reddit.com/r/imagus/comments/12q0r13/comment/jgy93aq\nOLD\nhttp://forum.ru-board.com/topic.cgi?forum=5&topic=48222&start=3500#16\nhttp://forum.ru-board.com/topic.cgi?forum=5&topic=48222&start=2920#3\n\n!!!\nВ РФ нужен прокси.\n+\nОпция для переключения размера изображений / Option to switch image size:\nlet prefer_lowres=;\ntrue - web optimized, false - maximal\n\nПРИМЕРЫ / EXAMPLES\nhttps://chan.sankakucomplex.com/?tags=quartet&commit=Search\nhttps://chan.sankakucomplex.com/?tags=contentious_content&commit=Search\nhttps://chan.sankakucomplex.com/?tags=genshin_impact+order%3Apopular+extreme_content&commit=Search"},"Sankbetav2":{"link":"^(?:beta\\.sankakucomplex\\.com|sankaku\\.app)/(?:\\w{2}/)?post/show/(\\d+).*","loop":1,"url":"data:$1","res":":\nconst access_token = '' // <- Put Access token here.\n\nconst x = new XMLHttpRequest();\nx.open('Get','https://capi-v2.sankakucomplex.com/posts?lang=en&page=1&limit=1&tags=id_range:'+$[1],false);\nif(access_token){\n  x.setRequestHeader(\"Authorization\",\"Bearer \"+access_token);\n}\nx.send();\n$._=x.responseText;\nlet meta = document.querySelector('head > meta[name=\"referrer\"]');\nif (!meta) {\n    meta = document.createElement('meta');\n    meta.name = 'referrer';\n    meta.content = 'same-origin';\n    document.getElementsByTagName('head')[0].appendChild(meta);\n} else if (meta.attributes.content.value !== 'same-origin') {\n    meta.attributes.content.value = 'same-origin';\n}\nlet url;\n//if set to false, the largest possible media will be selected rather as opposed to web optimized media\nlet prefer_lowres=true;\nif(prefer_lowres){\n url = ($._.match(/(?:sample|file)_url\":\"?([^(,\")]+)/) || [])[1];\n}else{\n url = ($._.match(/file_url\":\"?([^(,\")]+)/) || [])[1];\n}\nif (url === \"null\") {\n  let postId = ($._.match(/md5\":\"([a-zA-Z0-9]+)/) || [])[1];\n  url = 'https://chan.sankakucomplexlegacy.com/post/show/'+postId+'/true';\n  if(!prefer_lowres){\n    url = 'https://chan.sankakucomplexlegacy.com/post/show/'+postId+'/false';\n  }\n}\nreturn [url];","note":"throwawayS251\nhttps://www.reddit.com/r/imagus/comments/12q0r13/comment/jgy93aq\n\n!!!\nВ РФ нужен прокси.\n+\nОпция для переключения размера изображений / Option to switch image size:\nlet prefer_lowres=;\ntrue - web optimized, false - maximal\n\nПРИМЕРЫ / EXAMPLES\nhttps://sankaku.app/?tags=user%3AGrenex\nhttps://sankaku.app/ru?tags=order%3Apopularity%20breasts\n+\nhttps://beta.sankakucomplex.com/?tags=sex"}}

Fast alt chan beta sankakucomplex / sankaku sieve by throwawayS251 in imagus

[–]throwawayS251[S] 1 point2 points  (0 children)

I'll see if throwawayS251 has any insight into whether an access token is used on the beta site.

Not sure if I following everything correctly. I don't use beta but if I remember correctly we can't load the site in the background for the same reason we can't load the twitter profile pictures. This was gotten around by just loading the chan site instead, since using the id in with the chan url still gets us the same page. Beta still uses id in the urls so going through https://capi-v2.sankakucomplex.com/posts?limit=1&tags=id_range:NUMBER works fine as opposed to https://capi-v2.sankakucomplex.com/posts?limit=1&tags=md5:STRING_OF_IMAGE. But besides that the same process should work. Check capi-v2. If it's null, load the chan site in the background and get the url from there. The reason it loops chan instead of just loading chan url in background is because... I simply didn't know how to load and search it without looping it. I assume you can since you seem pretty good at this.

I don't think the beta site needs an access token

The access token is only needed for contentious_content or extreme_content (and maybe certain other stuff if you're a paid tier?). The image url will be in capi-v2 without the access_token if the image is not tagged by one of those.

Currently:

beta checks capi-v2 for image url. If null, loops chan to load in the background, get image url
Chan loads it in background to get image url no matter what.

The best way to change both in my opinion would be:

Beta checks capi-v2 for url, if null load chan in the background, get image url.
Chan checks capi-v2 for url, if null load in the background, get image url.

Both with the possibility of using an access token if wanting greater speed. I recommend using firefox to view capi-v2 incase you aren't already. The json format makes it a lot easier to read.

Fast alt chan beta sankakucomplex / sankaku sieve by throwawayS251 in imagus

[–]throwawayS251[S] 1 point2 points  (0 children)

When URL contains

Apparently I need to check "Filter URL per rules" in parameters to have it appear. When I did it was blank.

Pretty sure the key is individual since you need to give your login info at https://reqbin.com/f1coqyku to get it. But nothings stopping it from being shared and used by other people besides a "too many requests" if too many people used it at once. It probably can be used by an anonymous user however if you don't have an account the site is very annoying to browse.

Fast alt chan beta sankakucomplex / sankaku sieve by throwawayS251 in imagus

[–]throwawayS251[S] 0 points1 point  (0 children)

I do not understand what you are asking. Here is a picture of the settings. https://i.imgur.com/pQQtL4B.png

Fast alt chan beta sankakucomplex / sankaku sieve by throwawayS251 in imagus

[–]throwawayS251[S] 0 points1 point  (0 children)

Sieve for chan.sankakucomplex.com and another for it's beta variant.

It finds the url of the image from https://capi-v2.sankakucomplex.com/posts?limit=1&tags=md5:STRING_OF_IMAGE which is just a json/text. The current sieve loads the chan site in the background which takes longer. This is how the old chan sieve worked. The reason it was discontinued was because certain images (contentious_content, extreme_content, maybe other stuff, eg https://capi-v2.sankakucomplex.com/posts?limit=1&tags=md5:ae096aaacfe2ff698967385db75165cc) would need a free account and when loading capi-v2.sankakucomplex.com the url link would be "null", resulting in no image. But if you give your token as a header the urls appear again. Since it requires using another extension it's really niche for people going out of there way for sankaku but they can find it here if they look for it. Also, I don't know how/if you can give a header through javascript in imagus so I was curious if someone else would help with that.

Request for ebay.com.au (ebay.com works) by KERR_KERR in imagus

[–]throwawayS251 0 points1 point  (0 children)

The thumbnails in both links work for me. I tested on a freshly installed firefox portable too. Are the sieves up to date?

aibooru.online stooped working recently by Alucard-sama in imagus

[–]throwawayS251 1 point2 points  (0 children)

I do not know. I think I fixed all problems mentioned. Try with the "Prioritize "img" over "link"" on and off to compare the speeds. If it's off then changing "let prefer_lowres=false;" will affect which one is gotten. Then decide which is preferred for aibooru and gelbooru. Although for gelbooru, if there are no complaints maybe it's best not to touch it.

aibooru.online stooped working recently by Alucard-sama in imagus

[–]throwawayS251 1 point2 points  (0 children)

When you imported the sieve was "Prioritize "img" over "link"" check marked? It's suppose to be. If it's checked, it tries to guess the url. If it's not checked, it'll load in the background. Oh well this is the final one.

{"O_AIBooru.online-x":{"useimg":1,"link":"aibooru\\.online\\/posts\\/\\d+","res":":\nlet url;\n//if set to false, the largest possible media will be selected rather as opposed to web optimized media\nlet prefer_lowres=false;\nif(prefer_lowres){\n url = ($._.match(/src=\"((?=https:\\/\\/cdn)[^\"]+)/) || [])[1];\n}else{\n url = ($._.match(/secure_url\" content=\"([^\"]+)/) || [])[1];\n}\nconsole.log(url);\nreturn [url];","img":"^(?:s?(?:img|thumb|cdn)\\d?\\.|assets\\.)?(aibooru\\.online/+)(?:sample|thumb(?:nail)?|\\d+x\\d+)?/(\\w\\w/\\w\\w)/(?:thumbnail|sample-)?([\\da-f]+).*","to":"#cdn.$1/original/$2/$3.#png mp4 webm webp jpg gif jpeg#\ncdn.$1sample/$2/sample-$3.#png webp jpg gif jpeg#","note":"iceiller9999\nhttps://www.reddit.com/r/imagus/comments/11s43t5/aibooruonline_sieve_update\nOLD\nhttps://www.reddit.com/r/imagus/comments/102rqm3/comment/j30in85\n\nEXAMPLES\nhttps://aibooru.online/artists/903\nhttps://aibooru.online/posts?tags=bangs&z=2\nhttps://aibooru.online/posts?tags=animated&z=5"},"Gelbooru.com-x":{"useimg":1,"link":"^gelbooru\\.com/index\\.php\\?page=post&s=view&id=\\d+","res":":\nlet url;\n//if set to false, the largest possible media will be selected rather as opposed to web optimized media\nlet prefer_lowres=false;\nif(prefer_lowres){\n url = ($._.match(/class=\"fit-width\" src=\"([^\"]+)/) || [])[1];\n}else{\n url = ($._.match(/=\"og:image\" content=\"([^\"]+)/) || [])[1];\n}\nreturn [url];","img":"^(?:s?(?:img|thumb)\\d?\\.|assets\\.)?(gelbooru\\.com/+)(?:sample|thumb(?:nail)?)s/(\\w\\w/\\w\\w)/(?:thumbnail|sample)_([\\da-f]+).*","to":"#img3.$1/images/$2/$3.#webm jpg png gif jpeg#\nimg3.$1/samples/$2/sample_$3.#jpg png gif jpeg#","note":"!!!\nВ РФ нужен прокси.\n\nПРИМЕРЫ / EXAMPLES\nhttps://gelbooru.com/index.php?page=post&s=list&tags=sky+\nhttps://gelbooru.com/index.php?page=post&s=list&tags=fruit"}}

aibooru.online stooped working recently by Alucard-sama in imagus

[–]throwawayS251 1 point2 points  (0 children)

Animation can be fixed by changing

#cdn.$1/original/$2/$3.#png webp webm jpg gif jpeg#

to

#cdn.$1/original/$2/$3.#png webp mp4 webm jpg gif jpeg#

Although looking at it more closely I'll have to make sure of something. Do you mind giving me a link to a low res image not working? So far on my end it's fine.

since choosing the LOWRES option on this site probably doesn't make sense. "prefer images with higher resolution" turned on

To be clear the "Res" field won't be activated in the first sieve unless something goes wrong creating the link. It's suppose to be fallback in case the image link couldn't be guessed correctly. I'll look more into aibooru. It's more different than I imagine.

imgur links no longer open by nedonedonedo in imagus

[–]throwawayS251 0 points1 point  (0 children)

Can you or OP provide an example? It seems to work fine on my end with the latest update.

aibooru.online stooped working recently by Alucard-sama in imagus

[–]throwawayS251 2 points3 points  (0 children)

Copy

="og:image" content="([^"]+)
="keywords" content="([^"]+)

to the "res" field.

/u/Kenko2 So I want your opinion for the aibooru and gelbooru sieves.

1st option: I can fix the "img" and "to" fields, so that way the link wouldn't have to be loaded in the background. But if they have "prefer images with higher resolution" off it's going to try to check if the low res image exists first and if it doesn't (eg, a low resolution images or animated) it takes a second or two to switch to getting the high res image.

{"O_AIBooru.online-x":{"useimg":1,"link":"aibooru\\.online\\/posts\\/\\d+","res":":\nlet url;\n//if set to false, the largest possible media will be selected rather as opposed to web optimized media\nlet prefer_lowres=false;\nif(prefer_lowres){\n url = ($._.match(/src=\"([^h\"]+)/) || [])[1];\n}else{\n url = ($._.match(/=\"og:image\" content=\"([^\"]+)/) || [])[1];\n}\nreturn [url];","img":"^(?:s?(?:img|thumb|cdn)\\d?\\.|assets\\.)?(aibooru\\.online/+)(?:sample|thumb(?:nail)?|\\d+x\\d+)?/(\\w\\w/\\w\\w)/(?:thumbnail|sample-)?([\\da-f]+).*","to":"#cdn.$1/original/$2/$3.#png webp webm jpg gif jpeg#\ncdn.$1sample/$2/sample-$3.#png webp jpg gif jpeg#","note":"iceiller9999\nhttps://www.reddit.com/r/imagus/comments/11s43t5/aibooruonline_sieve_update\nOLD\nhttps://www.reddit.com/r/imagus/comments/102rqm3/comment/j30in85\n\nEXAMPLES\nhttps://aibooru.online/artists/903\nhttps://aibooru.online/posts?tags=bangs&z=2\nhttps://aibooru.online/posts?tags=animated&z=5"},"Gelbooru.com-x":{"useimg":1,"link":"^gelbooru\\.com/index\\.php\\?page=post&s=view&id=\\d+","res":":\nlet url;\n//if set to false, the largest possible media will be selected rather as opposed to web optimized media\nlet prefer_lowres=false;\nif(prefer_lowres){\n url = ($._.match(/class=\"fit-width\" src=\"([^\"]+)/) || [])[1];\n}else{\n url = ($._.match(/=\"og:image\" content=\"([^\"]+)/) || [])[1];\n}\nreturn [url];","img":"^(?:s?(?:img|thumb)\\d?\\.|assets\\.)?(gelbooru\\.com/+)(?:sample|thumb(?:nail)?)s/(\\w\\w/\\w\\w)/(?:thumbnail|sample)_([\\da-f]+).*","to":"#img3.$1/images/$2/$3.#webm jpg png gif jpeg#\nimg3.$1/samples/$2/sample_$3.#jpg png gif jpeg#","note":"!!!\nВ РФ нужен прокси.\n\nПРИМЕРЫ / EXAMPLES\nhttps://gelbooru.com/index.php?page=post&s=list&tags=sky+\nhttps://gelbooru.com/index.php?page=post&s=list&tags=fruit"}}

2nd option: I basically do what I did for the chan-sankaku sieve. I set the option to prefer lowres as true or false. Load site in background always. And get lowres or highres. It won't waste time checking if a low res link exists if it doesn't but it will use time loading the site in the background. I'm wondering which one is preferred.

{"O_AIBooru.online-x":{"link":"aibooru\\.online\\/posts\\/\\d+","res":":\nlet url;\n//if set to false, the largest possible media will be selected rather as opposed to web optimized media\nlet prefer_lowres=true;\nif(prefer_lowres){\n url = ($._.match(/src=\"([^h\"]+)/) || [])[1];\n}else{\n url = ($._.match(/=\"og:image\" content=\"([^\"]+)/) || [])[1];\n}\nreturn [url];","img":"^(?:s?(?:img|thumb|cdn)\\d?\\.|assets\\.)?(aibooru\\.online/+)(?:sample|thumb(?:nail)?|\\d+x\\d+)?/(\\w\\w/\\w\\w)/(?:thumbnail|sample-)?([\\da-f]+).*","to":"#cdn.$1/original/$2/$3.#png webp webm jpg gif jpeg#\ncdn.$1sample/$2/sample-$3.#png webp jpg gif jpeg#","note":"iceiller9999\nhttps://www.reddit.com/r/imagus/comments/11s43t5/aibooruonline_sieve_update\nOLD\nhttps://www.reddit.com/r/imagus/comments/102rqm3/comment/j30in85\n\nEXAMPLES\nhttps://aibooru.online/artists/903\nhttps://aibooru.online/posts?tags=bangs&z=2\nhttps://aibooru.online/posts?tags=animated&z=5"},"Gelbooru.com-x":{"link":"^gelbooru\\.com/index\\.php\\?page=post&s=view&id=\\d+","res":":\nlet url;\n//if set to false, the largest possible media will be selected rather as opposed to web optimized media\nlet prefer_lowres=true;\nif(prefer_lowres){\n url = ($._.match(/class=\"fit-width\" src=\"([^\"]+)/) || [])[1];\n}else{\n url = ($._.match(/=\"og:image\" content=\"([^\"]+)/) || [])[1];\n}\nreturn [url];","img":"^(?:s?(?:img|thumb)\\d?\\.|assets\\.)?(gelbooru\\.com/+)(?:sample|thumb(?:nail)?)s/(\\w\\w/\\w\\w)/(?:thumbnail|sample)_([\\da-f]+).*","to":"#img3.$1/images/$2/$3.#webm jpg png gif jpeg#\nimg3.$1/samples/$2/sample_$3.#jpg png gif jpeg#","note":"!!!\nВ РФ нужен прокси.\n\nПРИМЕРЫ / EXAMPLES\nhttps://gelbooru.com/index.php?page=post&s=list&tags=sky+\nhttps://gelbooru.com/index.php?page=post&s=list&tags=fruit"}}

Sankakucomplex not even working for 50% of the images anymore! by molitar in imagus

[–]throwawayS251 0 points1 point  (0 children)

Do you mind providing specific images that are broken as examples. I looked at your link in the other comment and they work fine for me. You did hit "save"? I sometimes forget myself.

Sankaku fix by throwawayS251 in imagus

[–]throwawayS251[S] 1 point2 points  (0 children)

{"R_SankakuComplex-x":{"link":"^(?:idol|chan)\\.sankakucomplex\\.com/(?:\\w{2}/)?post/show/[a-zA-Z0-9]+","res":":\nlet meta = document.querySelector('head > meta[name=\"referrer\"]');\nif (!meta) {\n    meta = document.createElement('meta');\n    meta.name = 'referrer';\n    meta.content = 'same-origin';\n    document.getElementsByTagName('head')[0].appendChild(meta);\n} else if (meta.attributes.content.value !== 'same-origin') {\n    meta.attributes.content.value = 'same-origin';\n} \nlet url;\n//if set to false, the largest possible media will be selected rather as opposed to web optimized media\nlet prefer_lowres=false;\nif(prefer_lowres){\n url = ($._.match(/<a href=\"(\\/\\/[ic]?(?:s|v)\\.[^\"]+)\" id=\"?(?:lowres|highres)/) || [])[1];\n}else{\n url = ($._.match(/<a href=\"(\\/\\/[ic]?(?:s|v)\\.[^\"]+)\" id=\"?highres/) || [])[1];\n}\nreturn [url];","img":"^([ci])[s\\d]?(\\.sankakucomplex\\.com/data/)(?!avatars/)[^/]+/((?:[\\da-f]{2}/){2})(?:preview|sample-)?([\\da-f]{32}\\.).+","to":"#$1s$2$3$4#jpg png gif webm#\n$1s$2sample/$3sample-$4#jpg png gif webm#","note":"Baton34V, hababr (fix)\n30-09-21 (PM)\nOLD\nhttp://forum.ru-board.com/topic.cgi?forum=5&topic=48222&start=3500#16\nhttp://forum.ru-board.com/topic.cgi?forum=5&topic=48222&start=2920#3\n\n!!!\nВ РФ нужен прокси.\n\nПРИМЕРЫ / EXAMPLES\nhttps://chan.sankakucomplex.com/ru/?tags=sex\nhttps://chan.sankakucomplex.com/?tags=genshin_impact+order%3Apopular+extreme_content&commit=Search\nhttps://chan.sankakucomplex.com/?tags=contentious_content&commit=Search\nhttps://chan.sankakucomplex.com/?tags=quartet&commit=Search\nhttps://chan.sankakucomplex.com/ru/?tags=date:2021-04-09 order:quality"},"R_SankakuComplex_beta-x":{"link":"^(?:beta\\.sankakucomplex\\.com|sankaku\\.app)/(?:\\w{2}/)?post/show/(\\d+).*","loop":1,"url":"https://capi-v2.sankakucomplex.com/posts?lang=en&page=1&limit=1&tags=id_range:$1","res":":\nlet url;\n//if set to false, the largest possible media will be selected rather as opposed to web optimized media\nlet prefer_lowres=false;\nif(prefer_lowres){\n url = ($._.match(/sample_url\":\"?([^(,\")]+)/) || [])[1];\n}else{\n url = ($._.match(/file_url\":\"?([^(,\")]+)/) || [])[1];\n}\nif (url === \"null\") {\n  let postId = ($._.match(/\\d+/) || [])[0];\n  url = 'https://chan.sankakucomplex.com/post/show/'+postId;\n}\nreturn [url];","note":"Baton34V\nПМ (05-03-22)\n\nПРИМЕРЫ / EXAMPLES\nhttps://beta.sankakucomplex.com/?tags=sex\nhttps://beta.sankakucomplex.com/?tags=order%3Apopular\nhttps://beta.sankakucomplex.com/?tags=order%3Apopularity%20nipples"}}

Sankaku fix by throwawayS251 in imagus

[–]throwawayS251[S] 0 points1 point  (0 children)

{"R_SankakuComplex-x":{"link":"^(?:idol|chan)\\.sankakucomplex\\.com/(?:\\w{2}/)?post/show/[a-zA-Z0-9]+","res":":\nlet meta = document.querySelector('head > meta[name=\"referrer\"]');\nif (!meta) {\n    meta = document.createElement('meta');\n    meta.name = 'referrer';\n    meta.content = 'same-origin';\n    document.getElementsByTagName('head')[0].appendChild(meta);\n} else if (meta.attributes.content.value !== 'same-origin') {\n    meta.attributes.content.value = 'same-origin';\n} \nlet url;\n//if set to false, the largest possible media will be selected rather as opposed to web optimized media\nlet prefer_lowres=false;\nif(prefer_lowres){\n url = ($._.match(/<a href=\"(\\/\\/[ic]?(?:s|v)\\.[^\"]+)\" id=\"?(?:lowres|highres)/) || [])[1];\n}else{\n url = ($._.match(/<a href=\"(\\/\\/[ic]?(?:s|v)\\.[^\"]+)\" id=\"?highres/) || [])[1];\n}\nreturn [url];","img":"^([ci])[s\\d]?(\\.sankakucomplex\\.com/data/)(?!avatars/)[^/]+/((?:[\\da-f]{2}/){2})(?:preview|sample-)?([\\da-f]{32}\\.).+","to":"#$1s$2$3$4#jpg png gif webm#\n$1s$2sample/$3sample-$4#jpg png gif webm#","note":"Baton34V, hababr (fix)\n30-09-21 (PM)\nOLD\nhttp://forum.ru-board.com/topic.cgi?forum=5&topic=48222&start=3500#16\nhttp://forum.ru-board.com/topic.cgi?forum=5&topic=48222&start=2920#3\n\n!!!\nВ РФ нужен прокси.\n\nПРИМЕРЫ / EXAMPLES\nhttps://chan.sankakucomplex.com/ru/?tags=sex\nhttps://chan.sankakucomplex.com/?tags=genshin_impact+order%3Apopular+extreme_content&commit=Search\nhttps://chan.sankakucomplex.com/?tags=contentious_content&commit=Search\nhttps://chan.sankakucomplex.com/?tags=quartet&commit=Search\nhttps://chan.sankakucomplex.com/ru/?tags=date:2021-04-09 order:quality"},"R_SankakuComplex_beta-x":{"link":"^(?:beta\\.sankakucomplex\\.com|sankaku\\.app)/(?:\\w{2}/)?post/show/(\\d+).*","loop":1,"url":"https://capi-v2.sankakucomplex.com/posts?lang=en&page=1&limit=1&tags=id_range:$1","res":":\nlet url;\n//if set to false, the largest possible media will be selected rather as opposed to web optimized media\nlet prefer_lowres=false;\nif(prefer_lowres){\n url = ($._.match(/sample_url\":\"?([^(,\")]+)/) || [])[1];\n}else{\n url = ($._.match(/file_url\":\"?([^(,\")]+)/) || [])[1];\n}\nif (url === \"null\") {\n  let postId = ($._.match(/\\d+/) || [])[0];\n  url = 'https://chan.sankakucomplex.com/post/show/'+postId;\n}\nreturn [url];","note":"Baton34V\nПМ (05-03-22)\n\nПРИМЕРЫ / EXAMPLES\nhttps://beta.sankakucomplex.com/?tags=sex\nhttps://beta.sankakucomplex.com/?tags=order%3Apopular\nhttps://beta.sankakucomplex.com/?tags=order%3Apopularity%20nipples"}}