// ==UserScript== // @name NYTimes Login Avoider // @namespace http://meat.net/ // @description Automatically use RSS Userland NYTimes permalinks when prompted to log in // @include http://www.nytimes.com/glogin?* // ==/UserScript== var re = /\?.*URI=([^&;]+)/; var m = re.exec(window.location.href); var realpage = m[1]; function on_load(deets) { var pat = /href=\"([^\"]+nytimes.com[^\"]+)\"/; var m = pat.exec(deets.responseText); var newurl = m[1]; document.location.href=newurl; }; GM_xmlhttpRequest( { method: "GET", url: "http://nytimes.blogspace.com/genlink?q=" + realpage, onload: on_load, });