Skip to content

Instantly share code, notes, and snippets.

@softworkz
softworkz / ReadMe.md
Last active February 11, 2023 17:22
Generate M3U Playlist for SiliconDust HDHomerun Tuners

SYNOPSIS

Creates an M3U playlist for an HDHomerun tuner

DESCRIPTION

Downloads the lineup from an HDHR tuner, specified by IP address and transforms it into an M3U plalist

When you don't specify an output file, the m3u content will be printed out for preview.
@lucidBrot
lucidBrot / bookmarklet_image_dwl.js
Last active June 4, 2023 13:43
Bookmarklet to download all images on a page
// as one-liner for bookmarklet
javascript:;(function(){var images=[].slice.call(document.querySelectorAll('img'));try{images.forEach(function(img){downloadResource(img.src)})}catch(e){alert("Download failed.");console.log('Download failed.',e)}function forceDownload(blob,filename){var a=document.createElement('a');a.download=filename;a.href=blob;a.click()}function downloadResource(url,filename){if(!filename)filename=url.split('\\').pop().split('/').pop();fetch(url,{headers:new Headers({'Origin':location.origin}),mode:'cors'}).then(response=>response.blob()).then(blob=>{let blobUrl=window.URL.createObjectURL(blob);forceDownload(blobUrl,filename)}).catch(e=>console.error(e))}}).call(window);