// Prosper Listing Forum Lender Link Update script // // Purpose: // -------- // This script fires on a Prosper.com listing page to replace // hyperlinks to lender profile in bid history to the lenders // lendingstat profile. // // Version History: // ---------------- // Version Date Geek Comments // ------- ------- ------ ----------------------------------- // 1.0 04/13/2007 pwrfin Created. // // Installation: // ------------- // This is a Greasemonkey user script. // // To install, you need Greasemonkey: http://www.greasespot.net/ // Then restart Firefox and revisit this script. // // Under Tools, there will be a new menu item to "Install User Script". // Accept the default configuration and install. // // To uninstall, go to Tools/Manage User Scripts, // select "Prosper Listing Forum Lender Link Update", and click Uninstall. // // -------------------------------------------------------------------- // ==UserScript== // @name Link lender names to lendingstats // @namespace https://www.prosper.com/lend/ // @description Replace the lender link in bid history to point to thier lendstats page // @include https://www.prosper.com/lend/listing.aspx?* // @include http://www.prosper.com/lend/listing.aspx?* // @include http://prosper.com/lend/listing.aspx?* // ==/UserScript== window.addEventListener("load", function(e) { var myBidTable = document.getElementById ("ctrlBidHistoryDataGrid_datagrid"); if (myBidTable) { myAtags = myBidTable.getElementsByTagName("a"); for (var i = 0; i < myAtags.length; i++) { var a = myAtags[i]; if(a.href.match("screen_name")) { var lendername = (a.href.split ("=", 2))[1]; a.href = "http://www.lendingstats.com/memberProfile?lenderId="; a.href += lendername; a.target = "_blank"; } }; } }, false);