Skip to content

Instantly share code, notes, and snippets.

javascript:styles='* { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important; }'; newSS = document.createElement('link'); newSS.rel = 'stylesheet'; newSS.href = 'data:text/css,' + escape(styles); document.documentElement.childNodes[0].appendChild(newSS); void 0
@jeffehobbs
jeffehobbs / unmasked.js
Created May 4, 2013 14:28
Bookmarklet to remove all password masking from page: Changes "type" of all input fields from "password" to "text". Because no one is looking over your shoulder, greybeard.
javascript:(function(e,a,g,h,f,c,b,d)%7Bif(!(f%3De.jQuery)%7C%7Cg>f.fn.jquery%7C%7Ch(f))%7Bc%3Da.createElement("script")%3Bc.type%3D"text/javascript"%3Bc.src%3D"http://ajax.googleapis.com/ajax/libs/jquery/"%2Bg%2B"/jquery.min.js"%3Bc.onload%3Dc.onreadystatechange%3Dfunction()%7Bif(!b%26%26(!(d%3Dthis.readyState)%7C%7Cd%3D%3D"loaded"%7C%7Cd%3D%3D"complete"))%7Bh((f%3De.jQuery).noConflict(1),b%3D1)%3Bf(c).remove()%7D%7D%3Ba.documentElement.childNodes%5B0%5D.appendChild(c)%7D%7D)(window,document,"1.9.1",function(%24,L)%7B%24(%27input%5Btype%3Dpassword%5D%27).attr(%27type%27,%27text%27)%3B%7D)%3B
@jeffehobbs
jeffehobbs / speaker.js
Last active December 26, 2015 12:59
Bookmarklet to scrub and speak current URL via SpeechSynthesisUtterance. (Please use your own Readability API token).
javascript:(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){c=a.createElement("script");c.type="text/javascript";c.src="http://ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";c.onload=c.onreadystatechange=function(){if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete")){h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.childNodes[0].appendChild(c)}})(window,document,"2.0.3",function($,L){
//speak current webpage
//jhobbs 2013
function stop(){
speechSynthesis.cancel();
}
@jeffehobbs
jeffehobbs / gist:7883246
Created December 9, 2013 23:51
Snowfall (for OS X Terminal)
ruby -e 'C=`stty size`.scan(/\d+/)[1].to_i;S=["2743".to_i(16)].pack("U*");a={};puts "\033[2J";loop{a[rand(C)]=0;a.each{|x,o|;a[x]+=1;print "\033[#{o};#{x}H \033[#{a[x]};#{x}H#{S} \033[0;0H"};$stdout.flush;sleep 0.1}'
@jeffehobbs
jeffehobbs / index.html
Last active February 8, 2018 10:05
Javascript Random Jersey Headline Generator
<html>
<head>
<title>JS Headline Generator</title>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
</head>
<body>
@jeffehobbs
jeffehobbs / index.html
Last active January 4, 2016 12:09
Random Jersey Scandal Generator 2.0
<html>
<head>
<title>JS Headline Generator 2.0</title>
</head>
<body>
@jeffehobbs
jeffehobbs / index.html
Last active January 4, 2016 12:29
Jersey Scandal Generator 3.0
<html>
<head>
<title>Jersey Scandal Article Generator</title>
<style>
body {
padding: 20px;
@jeffehobbs
jeffehobbs / index.html
Last active January 4, 2016 15:18
Jersey Scandal Generator Version 4
<html>
<head>
<title>Jersey Scandal Article Generator</title>
<style>
@font-face {
font-family: 'PreloSlabExtraBoldExtraBold';
@jeffehobbs
jeffehobbs / index.html
Created January 27, 2014 15:16
Jersey Scandal Generator v. 5.0
<html>
<head>
<title>Scandal Generator</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
@jeffehobbs
jeffehobbs / index.html
Last active January 4, 2016 16:49
Jersey Scandal Generator v. 5.0
<!DOCTYPE html>
<html lang="en">
<head>
<title>Scandal Generator</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>