/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)

Remember to follow the rules

Max file size: 350.00 MB

Max files: 5

Max message length: 4096

Manage Board | Moderate Thread

Return | 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:58 [Preview] No.14 del
#!/bin/sh
echo "Hello, World!"


jav script Anonymous 03/24/2021 (Wed) 06:52:20 [Preview] No.15 del
(148.70 KB 1055x1500 sspd-152.cover.jpg)
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:34 [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:43 [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:22 [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:15 [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:39 [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:53 [Preview] No.43 del
sauc for pic related


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


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


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


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


Anonymous 05/03/2021 (Mon) 22:56:58 [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:05 [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:15 [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:48 [Preview] No.58 del
>>57
>wget should work fine, right?
wget should be fine.


Anonymous 05/08/2021 (Sat) 13:01:37 [Preview] No.59 del
(60.73 KB 434x600 1386775652319.jpg)
>>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:25 [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:41 [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:22 [Preview] No.63 del
What's a good instagram mirror and is there a userscript to redirect instagram profile links to that site?



Top | Return | Catalog | Post a reply