I hereby claim:
- I am mtandre on github.
- I am mtandre (https://keybase.io/mtandre) on keybase.
- I have a public key ASD75OV6nGdRynPx6besxJlbvH2qdS2iuZ6gkD9m2Q-nhQo
To claim this, I am signing this object:
//Clickability Bookmarklet: toggle production/stage environment | |
javascript:(function(){var a=window.location.host;window.location.host=-1<a.indexOf("stage.")||-1<a.indexOf("dev.")?a.replace(/^(stage|dev)\./,""):"stage."+a;})(); |
//Clickability Bookmarklet: cache buster - get fresh copy of page | |
javascript:(function(){for(var a=window.location.search.substring(1),b="",c=0;8>c;c++)var d=Math.floor(26*Math.random()),b=b+"ABCDEFGHIJKLMnopqrstuvwxyz".substring(d,d+1);a=0<a.length?-1<a.indexOf("&c=")?a.replace(/&c=\w{7,9}/,"&c="+b):a+"&c="+b:"?c="+b;window.location.search=a;})(); |
//Facebook Debug: clear Facebook's webpage cache (max 50 per url) | |
javascript:(function(){ var encodedUrl=encodeURIComponent(window.location.href);function createXMLHTTPObject(){var XMLHttpFactories=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}];var xmlhttp=false;for(var i=0;i<XMLHttpFactories.length;i++){try{xmlhttp=XMLHttpFactories[i]()}catch(e){continue}break}return xmlhttp} function sendRequest(articleUrl){var req=createXMLHTTPObject();if(!req||!articleUrl)return null;req.open("POST","http://graph.facebook.com/",true);req.setRequestHeader("Content-type","application/x-www-form-urlencoded");req.onreadystatechange=function(){if(req.status==200&&req.readyState==4){console.log(req.responseText);var obj=JSON.parse(req.responseText);alert("Article refreshed.\nTitle: "+obj.title+"\nurl: "+obj.url)}};req.send("id="+encodedUrl+"&scrape=true")}sendRequest(en |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>tooltip</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
.button { | |
border: 1px solid gray; |
javascript:(function() { | |
var siteCodes = {"www.jsonline.com": "PMJS"}; | |
var siteCode = siteCodes[window.location.host]; | |
if (siteCode === "PMJS") { | |
var id = parseInt(window.location.pathname.split("/").slice(-2)[0],10); | |
if (id > 0) { | |
var searchUrl = 'https://presto-wigroup.gannettdigital.com/#/?k=' + id + '&st=' + siteCode + '&pg=1&pgs=25'; | |
window.open(searchUrl, '_blank'); | |
} | |
} else { |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>text ticker / scroller</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
.text-ticker { | |
-webkit-animation: textscroller 30s linear infinite; |
javascript:(function(){ | |
var url = window.location.href, | |
newUrl = ""; | |
if (url.indexOf("jsonline.com") > -1) { | |
if (url.indexOf("www.jsonline.com") > -1) { | |
newUrl = url.replace(/www\./i,"m."); | |
} else { | |
newUrl = document.querySelector("link[rel='canonical']").href + window.location.search; | |
} | |
} else { |
<!doctype html> | |
<html lang="en-us"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<title></title> | |
</head> | |
<body> | |
</body> | |
</html> |
I hereby claim:
To claim this, I am signing this object: