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
// 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}]`); | |
} |
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
(function() { | |
let window_code = findCode(window.location.pathname); | |
if (window_code && window_code.includes('tt')) { | |
openbj(window_code); | |
// openrarbg(window_code); | |
} | |
let all_buttons = document.querySelectorAll("a"); | |
for (let button of all_buttons) { | |
if (button.href.includes('/tt')) { | |
button.addEventListener('click', clickHandler); |
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
#!/bin/bash | |
INPUT="links.txt" | |
while read line ; | |
do | |
curl -O $line &> /dev/null | |
done < $INPUT | |
exit |
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
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(); | |
} | |
} |
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
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); |