Skip to content

Instantly share code, notes, and snippets.

View davewhitley's full-sized avatar

Dave Whitley davewhitley

View GitHub Profile
void( prompt( 'Copy and paste this:', ( '76.74.255.55 ' + window.location.host + ' ' + document.querySelector('link[rel="openid.delegate"]').href.replace(/https?:\/\/([^\/]+)\//i,'$1') ) ) );
// Which may be more readable as:
void(
var str = '76.74.255.55' // Sandbox IP Goes Here
+ ' ' + window.location.host
+ ' ' + document.querySelector('link[rel="openid.delegate"]').href.replace(/https?:\/\/([^\/]+)\//i,'$1');
prompt( 'Copy and paste this:', str );
);