Last active
September 18, 2016 01:41
-
-
Save Telematica/253eca9b7e3fcd118e8060afc01e823f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
//Vimeo | |
(function(){ | |
document.querySelectorAll('video')[0].src = ''; | |
setTimeout( | |
function() { | |
document.querySelectorAll('.telecine')[0].appendChild(document.createElement('a')); | |
document.querySelectorAll('.telecine a')[0].setAttribute('href', document.querySelectorAll('video')[0].src); | |
document.querySelectorAll('.telecine a')[0].setAttribute('download', 'a.mp4'); | |
document.querySelectorAll('.telecine a')[0].click(); | |
}, | |
2000 | |
); | |
})(); | |
//jQuery | |
(() => { | |
var timer = setInterval(function() { | |
$("html, body").animate({ | |
scrollTop: $(document).height() | |
}, 100); | |
if ($('.js-stream-item').length === parseInt($('.ProfileNav-item--following .ProfileNav-value').text(),10)) { | |
clearInterval(timer); | |
} | |
}, 200); | |
})(); | |
//Twitter: followers lists Vanilla JS | |
((window) => { | |
var selector = document.querySelector('.ProfileNav-item--following .ProfileNav-value') || document.querySelector('.stats .js-nav strong'); | |
window.timer = setInterval(function() { | |
try { | |
window.scrollTo( 0, 1000000 ); | |
if (document.querySelectorAll('.js-stream-item').length === parseInt(selector.textContent,10)) { | |
clearInterval(window.timer); | |
console.log(window.timer); | |
} | |
} catch(e) { | |
clearInterval(window.timer); | |
console.log(window.timer,e); | |
} | |
}, 200); | |
})(window); | |
//YouTube: Large Playlist Vanilla JS | |
((window)=>{ | |
window.timer = setInterval(()=> { | |
var button = document.querySelector('button[data-uix-load-more-target-id="pl-load-more-destination"]'); | |
if (button) { | |
button.click(); | |
} else { | |
clearInterval(timer); | |
} | |
} | |
, 200); | |
})(window); | |
//Instagram : Scroll down 'til pull all pics | |
((window) => { | |
var button = document.querySelector('._oidfu'); | |
if (button) { | |
button.click(); | |
} | |
var count = 0; | |
window.timer = setInterval(()=>{ | |
if (document.querySelectorAll('._8mlbc._vbtk2._t5r8b').length === parseInt(document.querySelector('._bkw5z').textContent.replace(/\.|\,/g,''),10)) { | |
clearInterval(timer); | |
window.scrollTo(0,10000000); | |
console.log('It\'s done, dude! Enjoy!') | |
return; | |
} | |
window.scrollTo( 0, (count % 2 === 0) ? 0 : 10000000 ); | |
count++; | |
},200); | |
})(window); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment