Very simple bookmarklet which, when run, will display the RUM-SpeedIndex (derived from this script) from the current page. Chrome-only, as far as I'm aware.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var system = require('system'), | |
fs = require("fs"), | |
CACHED_HEADER_NAME_REGEX = /X-Cache/, | |
CACHED_HEADER_VALUE_REGEX = /HIT/, | |
address, | |
parsedAddress, | |
cachedBytes = 0, | |
nocacheBytes= 0, | |
showAllURLS = false, | |
quiet = false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFHp5VjLFBaRwe7JH4kG2SwhQpIH/d3AOhqX2zYJI66s2vNTDI1H20AuXCMqClOPSEGHEjz8lKVaSmHN0F2YKIwwTT9M6soqSHU5tk9h2/AjiH2dN7PhvTDAw88hxiqr9oE0QF9IyngCFgxbEzwHwOBmZsgYGJIlga4gneTKe/ufNq6Z6RydVK5sGWqv86tfPQUyUztC+ZqVlqsTV2+arLcZwwtpc9sR9pJZOxmHI8AfxE+GWFPJesQzQFvFH/Bs+G20g0a7QcRO45SY7j1FR9vzH7EuE8L673JtXvScHK7s3DBRqBgCEvVrQfUYXEc/TsEhh2MP4UH3C33QU+82sn jeffsisson@jeffs-imac.domain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:var element1 = document.createElement(%27script%27);element1.src = %27https:%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.4.4%2Fjquery.min.js%27;element1.type=%27text%2Fjavascript%27;document.getElementsByTagName(%27head%27)[0].appendChild(element1);var div = document.getElementById(%27ID-navPanelContainer%27).style; if(div) void(div.display=(div.display==%27none%27)%3F %27block%27:%27none%27);var div = document.getElementById(%27ID-reportTitle%27).style; if(div) void(div.display=(div.display==%27none%27)%3F %27block%27:%27none%27);var div = document.getElementById(%27ID-newKennedyHeader%27).style; if(div) void(div.display=(div.display==%27none%27)%3F %27block%27:%27none%27);var div = document.getElementById(%27ID-headerPanel%27).style; if(div) void(div.display=(div.display==%27none%27)%3F %27block%27:%27none%27);var div = document.getElementById(%27ID-overviewPanelTrafficSourceValueOrganicTable%27).style; if(div) void(div.display=(div.display==%27none%27)%3F %27block%27:%27none%27);var div |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:void($(%27%23ID-report div div div:contains(\%27Real-time reports do not include profile filtering\%27)%27).css(%27display%27,%27none%27));void($(%27%23ID-overviewPanelTrafficSourceNameTable%27).siblings(%27div%27).css(%27display%27,%27none%27));void($(%27%23ID-overviewPanelRequestUriTable%27).siblings(%27div%27).css(%27display%27,%27none%27));void($(%27%23ID-overviewPanelTrafficSourceValueOrganicTable%27).siblings(%27div%27).css(%27display%27,%27none%27));void($(%27%23ID-overviewPanelGeoComponent%27).siblings(%27div%27).css(%27display%27,%27none%27));void($(%27%23ID-reportHeader-titleSection%27).css(%27display%27,%27none%27));void($(%27%23ID-reportHeader-toolbarSection%27).css(%27display%27,%27none%27));void($(%27%23ID-report%27).css(%27padding%27,%270 60px%27));void($(%27%23ID-realtimeReportFootnote%27).css(%27display%27,%27none%27));void($(%27%23ID-mainLayoutContainer%27).css(%27background-color%27, %27%23FFF%27));void($(%27body%27).css(%27background-color%27, %27%23FFF%27));void($(%27%23main-bo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var links = {}; | |
[].forEach.call(document.querySelectorAll('a'), function(el) { links[el.getAttribute('href')] = true; }); con | |
sole.log(Object.keys(links).join(',\n')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function filter(input) { | |
var elements; | |
if (typeof input === 'string') { | |
var div = document.createElement('div'); | |
div.innerHTML = input; | |
elements = div.childNodes; | |
} else { | |
elements = input.childNodes; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Forecast = require('forecast.io'), | |
options = { | |
APIKey: process.env.FORECAST_API_KEY | |
}, | |
forecast = new Forecast(options), | |
weathercolor = require('./weathercolor.js'); | |
forecast.get(40.681975, -74.003441, function (err, res, data) { | |
if (err) throw err; | |
var nowTemp = data.currently.temperature, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.custom-selector { | |
& { | |
color:blue; | |
} | |
@-webkit-keyframes zoomer { | |
from { | |
transform:scale(0.5); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function updated_when() { | |
var xmlhttp; | |
var last_modified = {}; | |
if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } | |
else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } | |
xmlhttp.onreadystatechange=function() { | |
if (xmlhttp.readyState==4 && xmlhttp.status==200) { | |
var lm_str = xmlhttp.getResponseHeader('Last-Modified'); | |
if (lm_str != '') { | |
last_modified.date = new Date(lm_str); |
OlderNewer