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
var watched = document.querySelectorAll('.ytd-thumbnail-overlay-resume-playback-renderer'); | |
for (var i = watched.length-1; i >= 0; i--) { | |
watched[i].parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.remove() | |
} |
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
(function() { | |
var index = 0, | |
scripts = ["https://domain.tld/script1.js","https://otherdomain.tld/script2.js"], | |
newScriptNode, | |
loadScripts = function () { | |
if (index >= scripts.length) { return; } | |
newScriptNode = window.document.createElement("script"); | |
newScriptNode.type = "text/javascript"; | |
newScriptNode.async = true; |
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
function decode(encoded) { | |
return parseInt(encoded, 36); | |
} | |
function encode(decoded) { | |
return Number(decoded).toString(36); | |
} |
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
// Needed to check a large amount of domains quickly and | |
// NameCheap UI can be really sluggish .. | |
// Script needs to be run from NameCheap.com | |
// To find current client_id go on a NameCheap search page, | |
// such as https://namecheap.com/domains/registration/results.aspx?domain=google&tlds=com | |
// Open source code, search for .cloudfront.net/search.js | |
// In that script search for {domainr:" | |
var client_id = "fb7aca826b084569a50cfb3157e924ae"; |
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
deleteFromAccount = function(deletehash) { | |
$.ajax({ | |
method: "POST", | |
url: "/delete/" + deletehash, | |
data: { | |
confirm: !0 | |
}, | |
displayGenericError: !1, | |
error: function() { | |
console.log("There was an error deleting your image", "error-msg") |
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
/* | |
* Parse your Steam Wishlist to different formats | |
* Extract Steam Wishlist game titles list as a regex (for use with ruTorrent) | |
* Can be run as a bookmarklet or through the developer console of your browser | |
* URL: https://store.steampowered.com/wishlist/ | |
*/ | |
var regex_head = '(?:^(', // Add at start of list | |
regex_tail = '))', // Add at end of list | |
repl_space = '[\\s\\._-]', // Replace space characters with this | |
separator = '|'; // Character to separate the game titles |
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
############################################################################### | |
# League of Legends (LCU API) script | |
# | |
# Auto accept matchmaking | |
# Automatic/instant pick champion | |
# Automatic/instant lock champion | |
# Set High process priority | |
# | |
# Usage: | |
# python lcu-mm-auto-accept-auto-lock-champion.py "Jax" "Xayah" |
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
/////////////////////////////////////////////////////////////////////////// | |
// Scripts to hide already watched videos from YouTube subscriptions feed | |
// Removes videos counted as "Watched" | |
document.querySelectorAll('.yt-lockup-thumbnail.watched').forEach((e)=>{e.parentNode.parentNode.parentNode.remove()}); | |
document.querySelectorAll('ytd-thumbnail-overlay-resume-playback-renderer').forEach((e)=>{e.parentNode.parentNode.parentNode.parentNode.parentNode.remove()}); | |
// Removes videos which you've started watching (but not completed) | |
document.querySelectorAll('.yt-lockup-thumbnail.contains-percent-duration-watched').forEach((e)=>{e.parentNode.parentNode.parentNode.remove()}); |
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
<?php | |
//// Simple Wallhaven downloader | |
// Downloads wallpapers from Wallhaven.cc at full resolution by searching for specified keywords | |
$keywords = [ | |
'waterfall', | |
'nature', | |
'mountains', | |
]; |