Skip to content

Instantly share code, notes, and snippets.

View bwheeler96's full-sized avatar

Brian Wheeler bwheeler96

View GitHub Profile
// This will open up a prompt for text to send to a console session on digital ocean
// Useful for long passwords
(function () {
var t = prompt("Enter text to be sent to console, (This wont send the enter keystroke)").split("");
function f() {
var character = t.shift();
var i=[];
var code = character.charCodeAt();
var needs_shift = "!@#$%^&*()_+{}:\"<>?~|".indexOf(character) !== -1
@bwheeler96
bwheeler96 / delete-reddit-history.js
Created September 22, 2017 18:07 — forked from andrhamm/delete-reddit-history.js
Delete reddit comment and post history
// Load user profile page, if using RES scroll so many comments are loaded onto the page
// then enter the following in the browser's developer console.
// it will delete 1 post/comment every 1500ms
var $domNodeToIterateOver = $('.del-button .option .yes'),
currentTime = 0,
timeInterval = 1500;
$domNodeToIterateOver.each(function() {