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
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
convert <space-separated-list-of-images> -quality 100 output.pdf |
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 -resize '4000' -density 576 input.pdf -resize 50% output.png |
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
// press option key to zoom-in for close-quarters fighting | |
let zoom = false | |
document.onkeydown = e => { | |
if(e.key == 'Alt') { | |
zoom = true | |
e.stopPropagation() | |
e.preventDefault() | |
config.scalingFactor = 2000 | |
Graphics.resizeRenderer(window.innerWidth, window.innerHeight) | |
return false |
NewerOlder