/cumg/ - coom.tech

coom.tech - refugee from retarded cuckchan mods. Where technology meets cooming. (NSFW)

Posting mode: Reply

Check to confirm you're not a robot
Name
Email
Subject
Comment
Password
Drawing x size canvas
File(s)

Board Rules

Max file size: 350.00 MB

Max files: 5

Max message length: 4096

Manage Board | Moderate Thread

Return | Magrathea | Catalog | Bottom


Welcome to the /cumg/ board.
This is where technology meets cooming.
Also known as coom.tech.
https://coom.tech/index.php?title=Main_Page

Expand All Images


(186.42 KB 1055x1500 snis-939.cover.jpg)
/sg/ - Scripting General Anonymous 03/24/2021 (Wed) 04:54:31 [Preview] No. 13
Share and discuss cooming-related scripts. This thread is for those who appreciate small-scale programming. Shell scripts as well as browser userscripts are welcome.

>Wiki
Tips & Tricks: https://coom.tech/index.php?title=Tricks

>Bash Scripting Resources
Bash Hackers Wiki: https://wiki.bash-hackers.org/
Bash Cheat Sheet: https://shellmagic.xyz/
Bash Reference Sheet: http://mywiki.wooledge.org/BashSheet
Bash Programming: http://mywiki.wooledge.org/BashProgramming
Bash Guide: http://mywiki.wooledge.org/BashGuide
Advanced Bash Scripting Guide: https://tldp.org/LDP/abs/html/abs-guide.html
Pure Bash Bible: https://github.com/dylanaraps/pure-bash-bible
Official Bash Manual: https://www.gnu.org/software/bash/manual/bash.html
Bash Cheat Sheet: https://devhints.io/bash

>UserScript Resources
How To Write A UserScript: https://simply-how.com/enhance-and-fine-tune-any-web-page-the-complete-user-scripts-guide
Violentmonkey: https://violentmonkey.github.io/


Anonymous 03/24/2021 (Wed) 05:05 [Preview] No.14 del
#!/bin/sh
echo "Hello, World!"


jav script Anonymous 03/24/2021 (Wed) 06:52 [Preview] No.15 del
This is one of the simpler versions of the jav script which takes a video code as parameter and streams the video using mpv. Many derivatives of the original jav shell function were made, but this one is mine.
https://warosu.org/jp/thread/32431725#p32464690

#!/bin/sh

jav_name() {
if [ -z "$1" ]; then
read name
else
name="$1"
fi
echo $name
}

jav_url () {
name="$(jav_name $1)"
links="(curl -s "$(curl -s "https://www2.javhdporn.net/video/$name/" | grep "embedURL" | grep -o "{.*}" | jq '.["@graph"]' | jq -r '.[].embedURL' | sed '/^null$/d' | sed 's/\/v\//\/api\/source\//')" --data-raw 'r=&d=javmvp.com' | jq -r '.data[] | select(.label | contains("720p", "480p","360p")).file' | tail -n1)"
echo "$links"
}

mpv "$(jav_url $1)"


Example:

jav sspd-152


Anonymous 03/24/2021 (Wed) 07:23 [Preview] No.19 del
>>15
The code tag here is no bueno. It actually corrupted the code by interpreting a $ as a cue to start turning text green, removing the $ in the process. Let's see what happens if I poste a pastebin URL.

https://pastebin.com/vevLYNWM


Embed Resource - endchan.net Anonymous 03/26/2021 (Fri) 00:45 [Preview] No.33 del
I made a userscript for use on endchan /cumg/ to embed pastebins directly on the page like 4chan does. In the future, maybe we could embed more things beyond pastebin.

https://pastebin.com/RRL8Qp33


Anonymous 03/26/2021 (Fri) 19:41 [Preview] No.34 del
>>19
>>33
>pastebins
unfortunately not ideal because pastebin are fucking cucks. it is preferred to post the code directly on the coom.tech wiki and just link to that.
https://coom.tech/index.php?title=Tricks#Shell_Scripts


Please throw a post to the Endchan admins telling them about this issue.
>>>/operate/


Anonymous 03/27/2021 (Sat) 07:17 [Preview] No.39 del
>>34
>it is preferred to post the code directly on the coom.tech wiki and just link to that.
It's really hard to format code well on the coom.tech wiki. The SyntaxHighlight extension (which comes standard with MediaWiki) needs to be enabled at the very least.

https://www.mediawiki.org/wiki/Extension:SyntaxHighlight


Anonymous 03/28/2021 (Sun) 14:05 [Preview] No.40 del
>>39
Yeah, I've been doing it in quotes for now but obviously not ideal.
I have no way to contact the wiki host so it's a matter of trying to reach out to him.

I've posted on the discussion page about other stuff, but haven't seen a response yet.


Anonymous 04/01/2021 (Thu) 15:03 [Preview] No.43 del
sauc for pic related


Anonymous 04/04/2021 (Sun) 20:17 [Preview] No.46 del
>>13
>>43
It's in the file name.
SNIS-939


Anonymous 04/06/2021 (Tue) 01:42 [Preview] No.47 del
>>40
The wiki admin enabled the <syntaxhighlight> tag.


Anonymous 04/06/2021 (Tue) 19:03 [Preview] No.48 del
Where do I get JAV from?


Anonymous 04/29/2021 (Thu) 21:37 [Preview] No.54 del
>>15
Anyone fixed the script yet?
I'm getting parse errors


Anonymous 05/03/2021 (Mon) 22:56 [Preview] No.55 del
>>54
Use the script from this pastebin.
https://pastebin.com/vevLYNWM

endchan isn't good for posting code due to a bug it has as explained in >>19 .


Anonymous 05/04/2021 (Tue) 10:54 [Preview] No.56 del
>>54
>>55
Oh wait, it's really not working. javhdporn.net changes things up to stop people from downloading. This could take some time to figure out.


Anonymous 05/07/2021 (Fri) 10:16 [Preview] No.57 del
i will write a bash script to download from iwara.
i used iwara-dl from github before, but it's dead. wget should work fine, right?


Anonymous 05/08/2021 (Sat) 02:39 [Preview] No.58 del
>>57
>wget should work fine, right?
wget should be fine.


Anonymous 05/08/2021 (Sat) 13:01 [Preview] No.59 del
>>57
i am stuck because the download link doesn't appear in the html page that is downloaded using curl/wget. it appears that the download link is generated with js in the browser and i don't know how to go around this. if you have some ideas - please respond


Anonymous 05/12/2021 (Wed) 23:56 [Preview] No.60 del
>>57
>>59
Why re-invent the wheel?
youtube-dl can parse and download from iwara.
If you want to use wget to download then you can use youtube-dl with --get-url flag and pass it to wget.
But if you want to make your own extractor, then you can look up at the extractor and make your own
https://github.com/ytdl-org/youtube-dl/blob/master/youtube_dl/extractor/iwara.py
I'm not sure since I know nothing about python, but it seems to get the video url from iwara API, using JSON.
I think you can parse JSON with jq package.


Anonymous 05/15/2021 (Sat) 02:02 [Preview] No.61 del
>>60
i remember it not working for me, but it works now, so whatever
thanks for pointing me in the right direction


Anonymous 06/13/2021 (Sun) 22:01 [Preview] No.63 del
What's a good instagram mirror and is there a userscript to redirect instagram profile links to that site?


Anonymous 01/03/2022 (Mon) 12:24 [Preview] No.67 del
Here's a Greasemonkey script I wrote that lets you search for a DL Site game on Nyaa in case you're an H game addict like me:

https://github.com/eternalmiko/nyaa_dl_search/blob/main/nyaa_search.js


Anonymous 01/03/2022 (Mon) 16:03 [Preview] No.68 del
>>13
Thanks for the links. p good


Anonymous 01/15/2022 (Sat) 00:26 [Preview] No.77 del
>>56
Test Subject:
https://www2.javhdporn.net/video/sspd-150/

Using mitmproxy,
https://mitmproxy.org/
I was able to find the index.m3u8 file, but I don't know how to figure out the URL for it programatically.
https://hls1.gslb.ru/hls/Cen/SSPD-150.mp4/index.m3u8

This m3u8 file contains a list of all the parts that can be downloaded and then concatenated together.
The pattern in this case looks like:
https://hls1.gslb.ru/hls/Cen/SSPD-150.mp4/cdn-1-v1-a1.ts
https://hls1.gslb.ru/hls/Cen/SSPD-150.mp4/cdn-2-v1-a1.ts
https://hls1.gslb.ru/hls/Cen/SSPD-150.mp4/cdn-3-v1-a1.ts
all the way to 554.

Alternatively, you can feed the m3u8 URL directly to mpv to stream the video.

mpv https://hls1.gslb.ru/hls/Cen/SSPD-150.mp4/index.m3u8


Anonymous 01/15/2022 (Sat) 01:49 [Preview] No.78 del


Anonymous 01/15/2022 (Sat) 23:22 [Preview] No.103 del
>>77
>I was able to find the index.m3u8 file, but I don't know how to figure out the URL for it programatically.
The devs at javhdporn.net have made it very difficult to inspect the underlying DOM and JS.
They're using some kind of devtools detector, and
it's not as easy to disable as it was in this other case:
https://coom.tech/index.php?title=Tricks#Download_Videos_From_Sites_That_Disable_Downloading

One heavy-handed approach to finding the index.m3u8 URL could be to use puppeteer to browse to the page and
click around while setting up some code to monitor network requests.
https://github.com/puppeteer/puppeteer
https://pptr.dev/#?product=Puppeteer&version=v13.0.1&show=api-class-httprequest


Anonymous 01/16/2022 (Sun) 00:01 [Preview] No.104 del
>>77
>mpv https://hls1.gslb.ru/hls/Cen/SSPD-150.mp4/index.m3u8

Out of curiosity, I tried:
mpv https://hls1.gslb.ru/hls/Cen/ADN-219.mp4/index.m3u8

and it didn't work.
I don't have mitmproxy setup on the laptop I'm currently using, but
I wonder what the right m3u8 URL is for ADN-219.
My guess is that the "Cen" part will be different, but everything else would follow the same structure.

https://www2.javhdporn.net/video/adn-219/


Anonymous 01/17/2022 (Mon) 05:37 [Preview] No.123 del
Here's a thread in /bant/ that has a list of UserScripts for 4chan.
This doesn't include /cumg/ work, but it's nice to know what else exists.

Original: https://boards.4chan.org/bant/thread/14297446
Archive: https://archived.moe/bant/thread/14297446/


Anonymous 01/19/2022 (Wed) 01:09 [Preview] No.141 del
>>104
>https://hls1.gslb.ru/hls/Cen/ADN-219.mp4/index.m3u8

I had a little bad luck.
I guessed the correct URL for ADN-219, but
the Russian server didn't have the data, so
it couldn't play it.
I tried ADN-115, and it worked.
We may have found a working pattern for the Russian servers.


mpv https://hls1.gslb.ru/hls/Cen/ADN-115.mp4/index.m3u8


Replace "ADN-115" with the code of the video you want, and
this will work for any video that's hosted on Russian servers.
However, many of their recent uploads are not on their Russian servers.
Similar patterns probably exist for their Dutch, French, and German servers, but
I'll leave that as an exercise for the reader.
If this gets automated,
it'll probably be abused again, because
c00mers don't know when to stop.

PS: I think the "Cen" stands for censored.


Anonymous 01/19/2022 (Wed) 03:11 [Preview] No.142 del


Anonymous 01/20/2022 (Thu) 23:35 [Preview] No.146 del
>>78
>ffmpeg
...tries to download the video parts as fast as possible which makes it hit the Russian server's rate limit often.
ffmpeg will still power through the errors and eventually finish the download, but
it would be nice to slow ffmpeg down to stay under their rate limit.
There doesn't seem to be an easy way to do that though.
https://github.com/ytdl-org/youtube-dl/issues/29360


Anonymous 01/21/2022 (Fri) 02:08 [Preview] No.147 del
>>13
>UserScript Resources
GM_* API: https://violentmonkey.github.io/api/gm/


Anonymous 01/22/2022 (Sat) 20:35 [Preview] No.155 del
This is a repo for collecting various userscripts written by anons.
https://git.coom.tech/g/userscripts


Anonymous 01/23/2022 (Sun) 11:22 [Preview] No.157 del
I wrote a userscript for gelbooru, so I can move around and open images with the keyboard, to enhance my cooming™ experience. Any feedback is welcome.

// UserScript
// @name Keyboard controls for Gelbooru
// @namespace Booru
// @match https://gelbooru.com/index.php?page=*
// @grant none
// @version 1.0
// @author anon
// @description
// /UserScript

const markedBorder = 'solid black 2px';

const search = document.getElementById('tags-search');
const images = document.getElementsByClassName('thumbnail-preview');
const imageHeight = images[0].clientHeight;

let selectedIndex = 0;

const getImagesPerRow = () => {
const baseOffset = images[0].getBoundingClientRect().y;

for(let i = 1; i < images.length; i++) {
if(images[i].getBoundingClientRect().y > baseOffset)
return i;
}

return -1;
};

const isOutsideViewPort = (img) => {
const rect = img.getBoundingClientRect();

return (rect.top > (window.innerHeight || document.documentElement.clientHeight)) ||
(rect.bottom < 0)
};

const markSelected = (i) => {
// if we're above images.length - 1, then
images[selectedIndex].style.border = '';

// update the indices
selectedIndex = i;

images[selectedIndex].style.border = markedBorder;

if(isOutsideViewPort(images[selectedIndex]))
images[selectedIndex].scrollIntoView(false);
};

const openSelected = () => {
const link = images[selectedIndex].getElementsByTagName('a')[0].href;
window.open(link);
};

document.addEventListener('keydown', (event) => {
if(document.activeElement !== search) {
if(event.ctrlKey) {
const paginator = document.getElementById('paginator');
const links = Array.from(paginator.children);

// there's only one b element
const currentPageIndex = links.findIndex(elem => elem.tagName === 'B');
console.log(currentPageIndex);
let pageToGoTo = currentPageIndex;

switch(event.key) {
case 'ArrowLeft':
case 'a':
case 'h':
pageToGoTo--;
if(pageToGoTo >= 0 && parseInt(links[pageToGoTo]) !== NaN)
window.location = links[pageToGoTo].href;
break;
case 'ArrowRight':
case 'd':
case 'l':
pageToGoTo++;
if(pageToGoTo < links.length && parseInt(links[pageToGoTo]) !== NaN)
window.location = links[pageToGoTo].href;
break;
default:
break;
}
} else {
const imagesPerRow = getImagesPerRow();
switch(event.key) {
case 'ArrowLeft':
case 'a':
case 'h':
markSelected(selectedIndex - 1 >= 0 ? selectedIndex - 1 : selectedIndex);
break;
case 'ArrowRight':
case 'd':
case 'l':
markSelected(selectedIndex + 1 < images.length ?
selectedIndex + 1 :
images.length - 1);
break;
case 'ArrowUp':
case 'w':
case 'k':
markSelected(selectedIndex - imagesPerRow >= 0 ?
selectedIndex - imagesPerRow :
selectedIndex);
break;
case 'ArrowDown':
case 's':
case 'j':
markSelected(selectedIndex + imagesPerRow < images.length ?
selectedIndex + imagesPerRow :
images.length - 1);
break;
case 'Enter':
openSelected();
default:
break;


Anonymous 01/23/2022 (Sun) 11:35 [Preview] No.158 del
>>157
pastebin link, because the code block messed up the formatting: https://dpaste.com/2GYCBX6J6


Anonymous 01/23/2022 (Sun) 18:56 [Preview] No.160 del
>>157
>>158
I like how it simultaneously supports:
- Arrow Keys (normies)
- WASD (gamers)
- HJKL (vim users)
.


Anonymous 01/23/2022 (Sun) 20:00 [Preview] No.161 del


Anonymous 03/21/2022 (Mon) 18:33 [Preview] No.169 del
hacked together a tiny userscript to automatically reveal nsfw covers on vndb if anyone's interested: https://dpaste.com/9DPDUJWJM


Anonymous 03/30/2022 (Wed) 20:03 [Preview] No.174 del
>>169
Simple and to the point.
Very nice.


Anonymous 04/07/2022 (Thu) 17:05 [Preview] No.179 del
>>63
Use your own bibliogram instance and make your own redirect script


Anonymous 04/15/2022 (Fri) 12:24 [Preview] No.185 del
>>63
>What's a good instagram mirror
https://imginn.com/


Anonymous 06/02/2022 (Thu) 16:42 [Preview] No.190 del
Can someone write a script for patreon/fantia that checks if they have a kemono page and adds a link to it?


Anonymous 08/07/2022 (Sun) 03:58 [Preview] No.191 del
This isn't really cooming-related but I started working on a script that lets you put messages into images and then read them out again on soyjak.party

https://dpaste.org/9qFW5


Anonymous 08/11/2022 (Thu) 22:39 [Preview] No.192 del
I currently use tweetdeck to export my twitter lists manually which I then can then use with gallery-dl to archive accounts. Is there a way to do this without tweetdeck?

The only way I've found is by requesting data from twitter itself, but the problem is the account names are replaced with a string of numbers at the end (their account id). You can only get the proper name by manually loading each url and waiting for the redirect. There must be a better way than these two methods surely?


Anonymous 11/02/2022 (Wed) 17:24 [Preview] No.193 del
The new home of /cumg/ is https://2chen.moe/tech/catalog .


Anonymous 11/23/2022 (Wed) 14:42 [Preview] No.194 del
>>193
Alright that died pretty fuckin fast


Anonymous 11/23/2022 (Wed) 15:31 [Preview] No.195 del
>>193
>>194
Why not stay here?


Anonymous 11/24/2022 (Thu) 06:24 [Preview] No.196 del
seems like there aren’t many legit cumg users left anyway


Anonymous 12/05/2022 (Mon) 03:36 [Preview] No.197 del
>>194
It's back.

>>195
The meguca board software feels better.


Anonymous 12/28/2022 (Wed) 13:25 [Preview] No.198 del
>>197
and its down again


Anonymous 12/28/2022 (Wed) 19:28 [Preview] No.201 del
>>196
what's a "legit" cumg user?

>>194
/ttg/ doesn't know what happened either.
most of /cumg/ is bunkering in the matrix chat for now
#coomtech:plan9.rocks


Anonymous 01/21/2023 (Sat) 22:23 [Preview] No.216 del
>https://mega.nz/folder/abcde
>key >immapatreonfaggotjewwhosplitsmymegalink

There has got to be a way to fix this shit...


Anonymous 01/21/2023 (Sat) 23:34 [Preview] No.217 del
>>216
<antisemitism
kay why ess


Anonymous 01/22/2023 (Sun) 00:17 [Preview] No.220 del
>>217
Antisemitism saves lives.
Every antisemite I know avoided the clot shot.
Fuck off, kike.


Anonymous 01/25/2023 (Wed) 18:22 [Preview] No.224 del
>>197
have you tried the magrathea version?


Anonymous 02/08/2023 (Wed) 00:54 [Preview] No.225 del
Do you know of any catpcha solvers for 4chan? The JK one works 1/4 times


Anonymous 02/08/2023 (Wed) 20:46 [Preview] No.226 del
>>225
That's the one I'm using too. Even when it's wrong, it's close, so I manually fix it's guess.


Anonymous 02/08/2023 (Wed) 20:47 [Preview] No.227 del
>>226
s/it's/its/


Anonymous 05/27/2023 (Sat) 14:42 [Preview] No.231 del
wrote a userscript that creates a 'watch on javgg' button on onejav.com: https://dpaste.com/5Q2P2HMUN


Anonymous 05/31/2023 (Wed) 16:22 [Preview] No.232 del
>>231
https://javgg.net/
That's a nice site.


good website to watch xaflam 09/02/2023 (Sat) 21:59 [Preview] No.236 del


HomeMade Porn Videos XXX Zon 11/04/2023 (Sat) 13:19 [Preview] No.238 del
(454.34 KB 1134x1600 HomeMade Porn Videos.jpg)
HomeMade Porn Videos and Movies Sex on XxxZon.com, This Where True Girls Having Real Sex With Men at Home Made. Free XXX Clips to Watch Online in High Quality HD Online Sex Tube.
https://xxxzon.com/category/homemade-porn-videos/



Top | Catalog | Post a reply | Magrathea | Return