/cumg/ - coom.tech
coom.tech - refugee from retarded cuckchan mods. Where technology meets cooming. (NSFW)
Board Rules
Max file size: 350.00 MB
Max files: 5
Max message length: 4096
Manage Board | Staff: Moderate thread
Return | Magrathea | Catalog | Bottom
Expand All Images
#!/bin/shecho "Hello, World!"
#!/bin/shjav_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)"
mpv https://hls1.gslb.ru/hls/Cen/SSPD-150.mp4/index.m3u8
ffmpeg -i https://hls1.gslb.ru/hls/Cen/SSPD-150.mp4/index.m3u8 -c copy SSPD-150.mp4
mpv https://hls1.gslb.ru/hls/Cen/ADN-219.mp4/index.m3u8
mpv https://hls1.gslb.ru/hls/Cen/ADN-115.mp4/index.m3u8
// 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;
Top | Catalog | Post a reply | Magrathea | Return | Content Removal | Public thread | Staff: Moderate thread
Board owners/volunteers: use the authenticated staff thread view for bans, IP/range info, thread settings, transfer, and spoil tools. This public thread page is shared with all visitors and caches, so the controls below are only delete/report.
You can delete your own posts with the password you posted with.
Only staff can delete posts on this board. Reporting still works.