From: dannym Date: Thu, 5 Aug 2010 22:16:08 +0000 (+0200) Subject: FF_EXT: Fixed "save to Insipid" links on del.icio.us pages. X-Git-Tag: 2.1-alpha-2019-0-29~140 X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=5ab8996715f1324c103095712b4ec5d894c3acc2;p=insipid.git FF_EXT: Fixed "save to Insipid" links on del.icio.us pages. --- diff --git a/ff_ext/inspd@danny/chrome/inspd/content/inc/globals.js b/ff_ext/inspd@danny/chrome/inspd/content/inc/globals.js index bc01b1d..a250a8c 100644 --- a/ff_ext/inspd@danny/chrome/inspd/content/inc/globals.js +++ b/ff_ext/inspd@danny/chrome/inspd/content/inc/globals.js @@ -525,8 +525,13 @@ var $delpage = { var metaNode = null; var tagsNode = null ; var original_save_link_href = row.getElementsByTagName('a')[1].getAttribute('href'); - original_save_link_href = original_save_link_href.replace(/^\/save;_y(.*)\?/,$prefs.get('defurl')+'?op=add_bookmark&'); - original_save_link_href = original_save_link_href.replace(/jump=(.*)original_user=/,'copy_user='); + if(original_save_link_href.match(/^\/save;_y(.*)\?/)){ + original_save_link_href = original_save_link_href.replace(/^\/save;_y(.*)\?/,$prefs.get('defurl')+'?op=add_bookmark&'); + } + else{ + original_save_link_href = original_save_link_href.replace(/^\/save\?/,$prefs.get('defurl')+'?op=add_bookmark&'); + } + original_save_link_href = original_save_link_href.replace(/jump=(.*)original_user=/,'copy_user='); original_save_link_href = original_save_link_href.replace(/%20/g,'+'); var new_save_link_href = original_save_link_href ; row.innerHTML += ' SAVE TO INSIPID';