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
// Scroll Twitter home (worked for profiles too before a Twitter update) | |
/*var target_tweet = document.getElementById("stream-items-id"); | |
var target_fail = document.getElementsByClassName("stream-fail-container")[0];*/ | |
// Scroll Twitter profiles | |
var target_tweet = document.getElementsByClassName("GridTimeline-items")[0]; | |
var target_fail = document.getElementsByClassName("GridTimeline-failure")[0]; | |
var height = target_tweet.scrollHeight; | |
var observer = new MutationObserver(function(mutations) { |
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
var target_tweet = document.getElementsByClassName("stream-container")[0]; | |
var observer = new MutationObserver(function(mutations) { | |
for (var i = 0; mutations[i]; i++) | |
document.getElementsByClassName("new-tweets-bar")[0].click(); | |
}); | |
var config = { attributes: true, childList: true, characterData: true } | |
observer.observe(target_tweet, config); |
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
// ==UserScript== | |
// @name amazon_mp3_multiple_download | |
// @namespace amazon | |
// @description Download all songs in current playlist | |
// @include https://www.amazon.*/gp/dmusic/mp3/player* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
setTimeout(function() { |
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
IFS=$'\n' | |
if [ $# -gt 0 ]; then | |
if [ ! -f $1 ]; then | |
echo "Error: file $1 does not exist" | |
exit | |
fi | |
path=`echo $1 | rev | cut -d / -f 2- | rev` | |
if [ $path == $1 ]; then | |
path=$PWD | |
fi |
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
IFS=$'\n' | |
if [ $# == 2 ]; then | |
if [ ! -d $1 ]; then | |
echo "Error: directory $1 does not exist" | |
else | |
dir=$1 | |
len=$((${#dir} + 1)) | |
if [ ! -d $2 ]; then | |
mkdir $2 | |
fi |
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
var https = require("https"); | |
var fs = require("fs"); | |
var ws = fs.createWriteStream("2letters_domains_available.txt"); | |
var domain = "aa.lc"; // format: aa.tld | |
var numbers = false; // include numbers | |
function apiParse(body) | |
{ | |
var status = JSON.parse(body)[0].available; |
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
// ==UserScript== | |
// @name freelancer.com country filter | |
// @namespace https://drawcode.eu/ | |
// @include https://www.freelancer.com/projects/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
// Commented script needs to run in web console on a job search page (e.g. in a separate Firefox profile to avoid new tab focus and tabs overflow) | |
// You need to be logged in because the logged out page is different and displays less jobs |
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
<script> | |
// copy tweets variable from tweets.js file of your Twitter archive | |
var tweets = []; | |
// Open this HTML file and execute the following JavaScript code in the web console (F12 or Ctrl+Shift+K shortcut) | |
// A textarea will appear so you can copy/paste to save data as a CSV file | |
/* | |
var out = []; | |
var length = tweets.length; | |
for (var i = 0; i < length; ++i) { |
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
/* | |
* config | |
*/ | |
var token = "XXX"; | |
var limit = 5000; | |
var id1 = "XXX"; | |
var id2 = "XXX"; |
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
// ==UserScript== | |
// @name get_m3u8 | |
// @namespace francetvinfo | |
// @include http://www.francetvinfo.fr/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
/* Using Content Script Injection (window.functionName) to make function available outside GreaseMonkey scope | |
Page reload is needed if using existing function _jsonp_loader_callback_request_0. */ |
OlderNewer