Skip to content

Instantly share code, notes, and snippets.

View verstoff's full-sized avatar

Vladimir Verstov verstoff

View GitHub Profile
@verstoff
verstoff / patreon-downloader.js
Last active April 22, 2025 00:44
Download all files on Patreon
// Copy-paste it to the browser console on Patreon posts page
setInterval(function() {
let clicked = Array.from(document.querySelectorAll('a')).some(
item => {
if (item.href.startsWith('https://www.patreon.com/file?') && !item.downloaded) {
item.click()
item.downloaded = true
return true
}
}
@verstoff
verstoff / router.js
Created May 14, 2020 00:21
Hostname-specific Nuxt router
/*
router.js
Using @nuxtjs/router
All pages from folder 'pages/root-domain' will be available on 'example.com'
All pages from folder 'pages/sub-domain' will be available on 'foo-bar.example.com'
All other pages will be available on any domain
*/
@verstoff
verstoff / clear-yandex-mail.js
Last active February 12, 2017 09:31
Remove all items in Yandex.Mail
(function(){
$('.ns-view-toolbar-button-main-select-all').click();
$('.ns-view-toolbar-button-delete').click();
 setTimeout(arguments.callee,5000);
})();