Skip to content

Instantly share code, notes, and snippets.

@dara
Created May 26, 2014 13:24
Show Gist options
  • Save dara/6a9a39e559e2072d14e8 to your computer and use it in GitHub Desktop.
Save dara/6a9a39e559e2072d14e8 to your computer and use it in GitHub Desktop.
// Safari Pesticide Bookmarklet
// Based on http://pesticide.io
javascript:(function(){
var pesticideStyles = document.getElementById('pesticide-styles'),
head = document.head || document.getElementsByTagName('head')[0],
css = 'body{outline:1px%20solid%20#2980b9%20!important}article{outline:1px%20solid%20#3498db%20!important}nav{outline:1px%20solid%20#0088c3%20!important}aside{outline:1px%20solid%20#33a0ce%20!important}section{outline:1px%20solid%20#66b8da%20!important}header{outline:1px%20solid%20#99cfe7%20!important}footer{outline:1px%20solid%20#cce7f3%20!important}h1{outline:1px%20solid%20#162544%20!important}h2{outline:1px%20solid%20#314e6e%20!important}h3{outline:1px%20solid%20#3e5e85%20!important}h4{outline:1px%20solid%20#449baf%20!important}h5{outline:1px%20solid%20#c7d1cb%20!important}h6{outline:1px%20solid%20#4371d0%20!important}main{outline:1px%20solid%20#2f4f90%20!important}address{outline:1px%20solid%20#1a2c51%20!important}div{outline:1px%20solid%20#036cdb%20!important}p{outline:1px%20solid%20#ac050b%20!important}hr{outline:1px%20solid%20#ff063f%20!important}pre{outline:1px%20solid%20#850440%20!important}blockquote{outline:1px%20solid%20#f1b8e7%20!important}ol{outline:1px%20solid%20#ff050c%20!important}ul{outline:1px%20solid%20#d90416%20!important}li{outline:1px%20solid%20#d90416%20!important}dl{outline:1px%20solid%20#fd3427%20!important}dt{outline:1px%20solid%20#ff0043%20!important}dd{outline:1px%20solid%20#e80174%20!important}figure{outline:1px%20solid%20#f0b%20!important}figcaption{outline:1px%20solid%20#bf0032%20!important}table{outline:1px%20solid%20#0c9%20!important}caption{outline:1px%20solid%20#37ffc4%20!important}thead{outline:1px%20solid%20#98daca%20!important}tbody{outline:1px%20solid%20#64a7a0%20!important}tfoot{outline:1px%20solid%20#22746b%20!important}tr{outline:1px%20solid%20#86c0b2%20!important}th{outline:1px%20solid%20#a1e7d6%20!important}td{outline:1px%20solid%20#3f5a54%20!important}col{outline:1px%20solid%20#6c9a8f%20!important}colgroup{outline:1px%20solid%20#6c9a9d%20!important}button{outline:1px%20solid%20#da8301%20!important}datalist{outline:1px%20solid%20#c06000%20!important}fieldset{outline:1px%20solid%20#d95100%20!important}form{outline:1px%20solid%20#d23600%20!important}input{outline:1px%20solid%20#fca600%20!important}keygen{outline:1px%20solid%20#b31e00%20!important}label{outline:1px%20solid%20#ee8900%20!important}legend{outline:1px%20solid%20#de6d00%20!important}meter{outline:1px%20solid%20#e8630c%20!important}optgroup{outline:1px%20solid%20#b33600%20!important}option{outline:1px%20solid%20#ff8a00%20!important}output{outline:1px%20solid%20#ff9619%20!important}progress{outline:1px%20solid%20#e57c00%20!important}select{outline:1px%20solid%20#e26e0f%20!important}textarea{outline:1px%20solid%20#cc5400%20!important}details{outline:1px%20solid%20#33848f%20!important}summary{outline:1px%20solid%20#60a1a6%20!important}command{outline:1px%20solid%20#438da1%20!important}menu{outline:1px%20solid%20#449da6%20!important}del{outline:1px%20solid%20#bf0000%20!important}ins{outline:1px%20solid%20#400000%20!important}img{outline:1px%20solid%20#22746b%20!important}iframe{outline:1px%20solid%20#64a7a0%20!important}embed{outline:1px%20solid%20#98daca%20!important}object{outline:1px%20solid%20#0c9%20!important}param{outline:1px%20solid%20#37ffc4%20!important}video{outline:1px%20solid%20#6ee866%20!important}audio{outline:1px%20solid%20#027353%20!important}source{outline:1px%20solid%20#012426%20!important}canvas{outline:1px%20solid%20#a2f570%20!important}track{outline:1px%20solid%20#59a600%20!important}map{outline:1px%20solid%20#7be500%20!important}area{outline:1px%20solid%20#305900%20!important}a{outline:1px%20solid%20#ff62ab%20!important}em{outline:1px%20solid%20#800b41%20!important}strong{outline:1px%20solid%20#ff1583%20!important}i{outline:1px%20solid%20#803156%20!important}b{outline:1px%20solid%20#cc1169%20!important}u{outline:1px%20solid%20#ff0430%20!important}s{outline:1px%20solid%20#f805e3%20!important}small{outline:1px%20solid%20#d107b2%20!important}abbr{outline:1px%20solid%20#4a0263%20!important}q{outline:1px%20solid%20#240018%20!important}cite{outline:1px%20solid%20#64003c%20!important}dfn{outline:1px%20solid%20#b4005a%20!important}sub{outline:1px%20solid%20#dba0c8%20!important}sup{outline:1px%20solid%20#cc0256%20!important}time{outline:1px%20solid%20#d6606d%20!important}code{outline:1px%20solid%20#e04251%20!important}kbd{outline:1px%20solid%20#5e001f%20!important}samp{outline:1px%20solid%20#9c0033%20!important}var{outline:1px%20solid%20#d90047%20!important}mark{outline:1px%20solid%20#ff0053%20!important}bdi{outline:1px%20solid%20#bf3668%20!important}bdo{outline:1px%20solid%20#6f1400%20!important}ruby{outline:1px%20solid%20#ff7b93%20!important}rt{outline:1px%20solid%20#ff2f54%20!important}rp{outline:1px%20solid%20#803e49%20!important}span{outline:1px%20solid%20#cc2643%20!important}br{outline:1px%20solid%20#db687d%20!important}wbr{outline:1px%20solid%20#db175b%20!important}'
if (pesticideStyles){
head.removeChild(pesticideStyles);
} else {
pesticideStyles = document.createElement('style');
pesticideStyles.id = 'pesticide-styles';
pesticideStyles.type = 'text/css';
if (pesticideStyles.styleSheet) {
pesticideStyles.styleSheet.cssText = css;
} else {
pesticideStyles.appendChild(document.createTextNode(css));
}
head.appendChild(pesticideStyles);
}
})();
// Bookmarklet Ready
var%20a=document.getElementById("pesticide-styles"),b=document.head||document.getElementsByTagName("head")[0];a?b.removeChild(a):(a=document.createElement("style"),a.id="pesticide-styles",a.type="text/css",a.styleSheet?a.styleSheet.cssText="body{outline:1px%20solid%20#2980b9%20!important}article{outline:1px%20solid%20#3498db%20!important}nav{outline:1px%20solid%20#0088c3%20!important}aside{outline:1px%20solid%20#33a0ce%20!important}section{outline:1px%20solid%20#66b8da%20!important}header{outline:1px%20solid%20#99cfe7%20!important}footer{outline:1px%20solid%20#cce7f3%20!important}h1{outline:1px%20solid%20#162544%20!important}h2{outline:1px%20solid%20#314e6e%20!important}h3{outline:1px%20solid%20#3e5e85%20!important}h4{outline:1px%20solid%20#449baf%20!important}h5{outline:1px%20solid%20#c7d1cb%20!important}h6{outline:1px%20solid%20#4371d0%20!important}main{outline:1px%20solid%20#2f4f90%20!important}address{outline:1px%20solid%20#1a2c51%20!important}div{outline:1px%20solid%20#036cdb%20!important}p{outline:1px%20solid%20#ac050b%20!important}hr{outline:1px%20solid%20#ff063f%20!important}pre{outline:1px%20solid%20#850440%20!important}blockquote{outline:1px%20solid%20#f1b8e7%20!important}ol{outline:1px%20solid%20#ff050c%20!important}ul{outline:1px%20solid%20#d90416%20!important}li{outline:1px%20solid%20#d90416%20!important}dl{outline:1px%20solid%20#fd3427%20!important}dt{outline:1px%20solid%20#ff0043%20!important}dd{outline:1px%20solid%20#e80174%20!important}figure{outline:1px%20solid%20#f0b%20!important}figcaption{outline:1px%20solid%20#bf0032%20!important}table{outline:1px%20solid%20#0c9%20!important}caption{outline:1px%20solid%20#37ffc4%20!important}thead{outline:1px%20solid%20#98daca%20!important}tbody{outline:1px%20solid%20#64a7a0%20!important}tfoot{outline:1px%20solid%20#22746b%20!important}tr{outline:1px%20solid%20#86c0b2%20!important}th{outline:1px%20solid%20#a1e7d6%20!important}td{outline:1px%20solid%20#3f5a54%20!important}col{outline:1px%20solid%20#6c9a8f%20!important}colgroup{outline:1px%20solid%20#6c9a9d%20!important}button{outline:1px%20solid%20#da8301%20!important}datalist{outline:1px%20solid%20#c06000%20!important}fieldset{outline:1px%20solid%20#d95100%20!important}form{outline:1px%20solid%20#d23600%20!important}input{outline:1px%20solid%20#fca600%20!important}keygen{outline:1px%20solid%20#b31e00%20!important}label{outline:1px%20solid%20#ee8900%20!important}legend{outline:1px%20solid%20#de6d00%20!important}meter{outline:1px%20solid%20#e8630c%20!important}optgroup{outline:1px%20solid%20#b33600%20!important}option{outline:1px%20solid%20#ff8a00%20!important}output{outline:1px%20solid%20#ff9619%20!important}progress{outline:1px%20solid%20#e57c00%20!important}select{outline:1px%20solid%20#e26e0f%20!important}textarea{outline:1px%20solid%20#cc5400%20!important}details{outline:1px%20solid%20#33848f%20!important}summary{outline:1px%20solid%20#60a1a6%20!important}command{outline:1px%20solid%20#438da1%20!important}menu{outline:1px%20solid%20#449da6%20!important}del{outline:1px%20solid%20#bf0000%20!important}ins{outline:1px%20solid%20#400000%20!important}img{outline:1px%20solid%20#22746b%20!important}iframe{outline:1px%20solid%20#64a7a0%20!important}embed{outline:1px%20solid%20#98daca%20!important}object{outline:1px%20solid%20#0c9%20!important}param{outline:1px%20solid%20#37ffc4%20!important}video{outline:1px%20solid%20#6ee866%20!important}audio{outline:1px%20solid%20#027353%20!important}source{outline:1px%20solid%20#012426%20!important}canvas{outline:1px%20solid%20#a2f570%20!important}track{outline:1px%20solid%20#59a600%20!important}map{outline:1px%20solid%20#7be500%20!important}area{outline:1px%20solid%20#305900%20!important}a{outline:1px%20solid%20#ff62ab%20!important}em{outline:1px%20solid%20#800b41%20!important}strong{outline:1px%20solid%20#ff1583%20!important}i{outline:1px%20solid%20#803156%20!important}b{outline:1px%20solid%20#cc1169%20!important}u{outline:1px%20solid%20#ff0430%20!important}s{outline:1px%20solid%20#f805e3%20!important}small{outline:1px%20solid%20#d107b2%20!important}abbr{outline:1px%20solid%20#4a0263%20!important}q{outline:1px%20solid%20#240018%20!important}cite{outline:1px%20solid%20#64003c%20!important}dfn{outline:1px%20solid%20#b4005a%20!important}sub{outline:1px%20solid%20#dba0c8%20!important}sup{outline:1px%20solid%20#cc0256%20!important}time{outline:1px%20solid%20#d6606d%20!important}code{outline:1px%20solid%20#e04251%20!important}kbd{outline:1px%20solid%20#5e001f%20!important}samp{outline:1px%20solid%20#9c0033%20!important}var{outline:1px%20solid%20#d90047%20!important}mark{outline:1px%20solid%20#ff0053%20!important}bdi{outline:1px%20solid%20#bf3668%20!important}bdo{outline:1px%20solid%20#6f1400%20!important}ruby{outline:1px%20solid%20#ff7b93%20!important}rt{outline:1px%20solid%20#ff2f54%20!important}rp{outline:1px%20solid%20#803e49%20!important}span{outline:1px%20solid%20#cc2643%20!important}br{outline:1px%20solid%20#db687d%20!important}wbr{outline:1px%20solid%20#db175b%20!important}":a.appendChild(document.createTextNode("body{outline:1px%20solid%20#2980b9%20!important}article{outline:1px%20solid%20#3498db%20!important}nav{outline:1px%20solid%20#0088c3%20!important}aside{outline:1px%20solid%20#33a0ce%20!important}section{outline:1px%20solid%20#66b8da%20!important}header{outline:1px%20solid%20#99cfe7%20!important}footer{outline:1px%20solid%20#cce7f3%20!important}h1{outline:1px%20solid%20#162544%20!important}h2{outline:1px%20solid%20#314e6e%20!important}h3{outline:1px%20solid%20#3e5e85%20!important}h4{outline:1px%20solid%20#449baf%20!important}h5{outline:1px%20solid%20#c7d1cb%20!important}h6{outline:1px%20solid%20#4371d0%20!important}main{outline:1px%20solid%20#2f4f90%20!important}address{outline:1px%20solid%20#1a2c51%20!important}div{outline:1px%20solid%20#036cdb%20!important}p{outline:1px%20solid%20#ac050b%20!important}hr{outline:1px%20solid%20#ff063f%20!important}pre{outline:1px%20solid%20#850440%20!important}blockquote{outline:1px%20solid%20#f1b8e7%20!important}ol{outline:1px%20solid%20#ff050c%20!important}ul{outline:1px%20solid%20#d90416%20!important}li{outline:1px%20solid%20#d90416%20!important}dl{outline:1px%20solid%20#fd3427%20!important}dt{outline:1px%20solid%20#ff0043%20!important}dd{outline:1px%20solid%20#e80174%20!important}figure{outline:1px%20solid%20#f0b%20!important}figcaption{outline:1px%20solid%20#bf0032%20!important}table{outline:1px%20solid%20#0c9%20!important}caption{outline:1px%20solid%20#37ffc4%20!important}thead{outline:1px%20solid%20#98daca%20!important}tbody{outline:1px%20solid%20#64a7a0%20!important}tfoot{outline:1px%20solid%20#22746b%20!important}tr{outline:1px%20solid%20#86c0b2%20!important}th{outline:1px%20solid%20#a1e7d6%20!important}td{outline:1px%20solid%20#3f5a54%20!important}col{outline:1px%20solid%20#6c9a8f%20!important}colgroup{outline:1px%20solid%20#6c9a9d%20!important}button{outline:1px%20solid%20#da8301%20!important}datalist{outline:1px%20solid%20#c06000%20!important}fieldset{outline:1px%20solid%20#d95100%20!important}form{outline:1px%20solid%20#d23600%20!important}input{outline:1px%20solid%20#fca600%20!important}keygen{outline:1px%20solid%20#b31e00%20!important}label{outline:1px%20solid%20#ee8900%20!important}legend{outline:1px%20solid%20#de6d00%20!important}meter{outline:1px%20solid%20#e8630c%20!important}optgroup{outline:1px%20solid%20#b33600%20!important}option{outline:1px%20solid%20#ff8a00%20!important}output{outline:1px%20solid%20#ff9619%20!important}progress{outline:1px%20solid%20#e57c00%20!important}select{outline:1px%20solid%20#e26e0f%20!important}textarea{outline:1px%20solid%20#cc5400%20!important}details{outline:1px%20solid%20#33848f%20!important}summary{outline:1px%20solid%20#60a1a6%20!important}command{outline:1px%20solid%20#438da1%20!important}menu{outline:1px%20solid%20#449da6%20!important}del{outline:1px%20solid%20#bf0000%20!important}ins{outline:1px%20solid%20#400000%20!important}img{outline:1px%20solid%20#22746b%20!important}iframe{outline:1px%20solid%20#64a7a0%20!important}embed{outline:1px%20solid%20#98daca%20!important}object{outline:1px%20solid%20#0c9%20!important}param{outline:1px%20solid%20#37ffc4%20!important}video{outline:1px%20solid%20#6ee866%20!important}audio{outline:1px%20solid%20#027353%20!important}source{outline:1px%20solid%20#012426%20!important}canvas{outline:1px%20solid%20#a2f570%20!important}track{outline:1px%20solid%20#59a600%20!important}map{outline:1px%20solid%20#7be500%20!important}area{outline:1px%20solid%20#305900%20!important}a{outline:1px%20solid%20#ff62ab%20!important}em{outline:1px%20solid%20#800b41%20!important}strong{outline:1px%20solid%20#ff1583%20!important}i{outline:1px%20solid%20#803156%20!important}b{outline:1px%20solid%20#cc1169%20!important}u{outline:1px%20solid%20#ff0430%20!important}s{outline:1px%20solid%20#f805e3%20!important}small{outline:1px%20solid%20#d107b2%20!important}abbr{outline:1px%20solid%20#4a0263%20!important}q{outline:1px%20solid%20#240018%20!important}cite{outline:1px%20solid%20#64003c%20!important}dfn{outline:1px%20solid%20#b4005a%20!important}sub{outline:1px%20solid%20#dba0c8%20!important}sup{outline:1px%20solid%20#cc0256%20!important}time{outline:1px%20solid%20#d6606d%20!important}code{outline:1px%20solid%20#e04251%20!important}kbd{outline:1px%20solid%20#5e001f%20!important}samp{outline:1px%20solid%20#9c0033%20!important}var{outline:1px%20solid%20#d90047%20!important}mark{outline:1px%20solid%20#ff0053%20!important}bdi{outline:1px%20solid%20#bf3668%20!important}bdo{outline:1px%20solid%20#6f1400%20!important}ruby{outline:1px%20solid%20#ff7b93%20!important}rt{outline:1px%20solid%20#ff2f54%20!important}rp{outline:1px%20solid%20#803e49%20!important}span{outline:1px%20solid%20#cc2643%20!important}br{outline:1px%20solid%20#db687d%20!important}wbr{outline:1px%20solid%20#db175b%20!important}")),
b.appendChild(a));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment