This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mpv link_to_youtube_vid --no-video |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// put this inside a Run Javascript block in Automator | |
app.doJavaScript("var script = document.createElement('script'); script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js'; document.getElementsByTagName('head')[0].appendChild(script);", { | |
in: app.windows[0].currentTab | |
}) | |
delay(1); // wait for jQuery to load | |
//... jQuery is now loaded, now add the rest of the script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pause = false, timeout = lastFetch = restarter = null, moreCommentSelector = 'span.morecomments > a' | |
moreCommentLinks = () => document.querySelectorAll(moreCommentSelector) | |
showProgress = msg => { | |
lastFetch = Date.now() | |
console.log(`${new Date().toLocaleTimeString()} — ${msg}`) | |
} | |
restartIfPaused = () => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Safari" | |
set windowCount to number of windows | |
set docText to "" | |
repeat with x from 1 to windowCount | |
set tabcount to number of tabs in window x | |
repeat with y from 1 to tabcount | |
set tabName to URL of tab y of window x | |
set docText to docText & tabName & linefeed as string | |
end repeat | |
end repeat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Similar to: | |
• https://gist.github.com/vjk2005/3331714 (ajax-page-loader.js) | |
• https://gist.github.com/vjk2005/3812832 (deepload.js) | |
*/ | |
let start = 2, | |
end = 8, | |
url = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[...document.getElementsByClassName('class-name-goes-here')].map(el => el.parentNode.removeChild(el)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example video made by this script: https://twitter.com/erkaman2/status/990873258416361472 | |
ffmpeg \ | |
-y \ | |
-i vid1.mp4 \ | |
-i vid2.mp4 \ | |
-i vid3.mp4 \ | |
-filter_complex '[0:v]pad=iw*3:ih[int];[int][1:v]overlay=W*0.33:0[temp];[temp][2:v]overlay=W*0.66:0[vid]' \ | |
-map [vid] \ | |
-c:v libx264 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:window.location = document.querySelectorAll('img[srcset^="http"]')[0].srcset.split(',').pop().split(' ')[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[...document.querySelectorAll('.list_box_info.list_title')].map(el => el.innerHTML = el.textContent.replace(/http(.*)\.\.\./, '<a href="http$1">http$1</a>')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
convert <space-separated-list-of-images> -quality 100 output.pdf |
NewerOlder