Skip to content

Instantly share code, notes, and snippets.

@netj
Created July 17, 2012 09:27
Show Gist options
  • Save netj/3128325 to your computer and use it in GitHub Desktop.
Save netj/3128325 to your computer and use it in GitHub Desktop.
Read RFC in HTML — Open an HTML version of this RFC document
/* Created with YouScript Bookmarklet Editor
* http://netj.github.com/youscript
*/
if (m=location.href.match(/http:\/\/((.*\.)?ietf\.org\/(rfc|html)|(.*\.)?faqs\.org\/rfcs)\/(rfc[0-9]*)/i)) {
location="http://tools.ietf.org/html/"+m[m.length-1];
} else {
alert("Unrecognized RFC URL: "+location.href);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment