Skip to content

Instantly share code, notes, and snippets.

View carmona's full-sized avatar
🏖️
Working from home

Filipe Carmona carmona

🏖️
Working from home
View GitHub Profile
@carmona
carmona / steam-autoremove.js
Last active June 28, 2016 04:08
Steam sales auto-remove
const removeBtn = '.item_market_action_button';
const confirmBtn = '#market_removelisting_dialog_accept';
let sell = document.querySelector(removeBtn);
sell.classList = [];
var start = setInterval(function(){
cancelSale();
},2000);
@carmona
carmona / binge.js
Last active July 6, 2016 15:52
GloboPlay Binge-watch
console.log('funcao de autoplay ativada');
setInterval(loopEvento, 10000);
function loopEvento(){
document.querySelector('video').addEventListener('ended',proximo,false);
function proximo(e) {
document.querySelector('.video-item.active').nextSibling.click();
}
}
@carmona
carmona / download-images.sh
Created January 31, 2017 15:51
download all files from a URL list in a text file
#!/bin/bash
INPUT="links.txt"
while read line ;
do
curl -O $line &> /dev/null
done < $INPUT
exit
// this is meant to extract a movie's full name, year and ID from an IMDB page
// in a format that is easily read by Plex
// eg: "The Haunted Mansion [2003][tt0338094]"
(() => {
let window_code = findCode(window.location.pathname);
if (window_code && window_code.includes('tt')) {
let movie_name = formatMovieTitle(getOriginalName() || getSimpleName());
let year = getYear(document.title);
copyToClipboard(`${movie_name} [${year}][${window_code}]`);
}