Skip to content

Instantly share code, notes, and snippets.

@tomtom87
tomtom87 / Reddit Upvote
Created April 30, 2019 10:27
Upvote everything on reddit
// Run this on a subreddit to upvote everything!!
var simulateClick = function (elem) {
console.log('upvoted...');
var evt = new MouseEvent('click', {
bubbles: true,
cancelable: true,
view: window
});
var canceled = !elem.dispatchEvent(evt);
// Run this on followers tab (e.g /_followers)
// Scroll the page to get many
var simulateClick = function (elem) {
console.log('clicking');
var evt = new MouseEvent('click', {
bubbles: true,
cancelable: true,
view: window
});
/*
You should inherit from StandardToken or, for a token like you would want to
deploy in something like Mist, see HumanStandardToken.sol.
(This implements ONLY the standard functions and NOTHING else.
If you deploy this, you won't have anything useful.)
Implements ERC 20 Token standard: https://github.com/ethereum/EIPs/issues/20
.*/
pragma solidity ^0.4.9;
0x494A3fD86bE098ea94Eb7eCafFcE409866eEcc1c
@tomtom87
tomtom87 / currency forecast q1 q2
Created March 13, 2017 12:05
User script for tradingeconomics.com/forecast/currency
// ==UserScript==
// @name Q1 and Q2 differences on forcast
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Shows the differences on forcasts for Q1 Q2
// @author Tom Whitbread
// @match http://www.tradingeconomics.com/forecast/currency
// @grant none
// ==/UserScript==