From 5ab8996715f1324c103095712b4ec5d894c3acc2 Mon Sep 17 00:00:00 2001 From: dannym Date: Fri, 6 Aug 2010 00:16:08 +0200 Subject: [PATCH] FF_EXT: Fixed "save to Insipid" links on del.icio.us pages. --- ff_ext/inspd@danny/chrome/inspd/content/inc/globals.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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'; -- 2.39.5