Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Èròjà atẹ̀lélànà yii ni a ti fi pamọ́ fọ́jọ́ pípẹ́. Jọ̀wọ́ béèrè ìbéèrè titun bí o bá nílò ìrànwọ́.

lendle bookmarklet previously opened in a new tab, now it does not. how do I force it open in new tab again?

  • 9 àwọn èsì
  • 2 ní àwọn ìṣòro yìí
  • 2 views
  • Èsì tí ó kẹ́hìn lọ́wọ́ jendrew

more options

Previously when I clicked on the lendle bookmarklet fx would navigate me to a new tab and open the appropriate lendle page. I liked that. Now fx opens the lendle page in the same tab. How do I force it to open in new tab?

- I have the add-on open all bookmarks in new tab.

- It worked before I installed TMP (Tab Mix Plus) add-on and it opened in a new page too with TMP installed. I have now removed the TMP add-on due to a big performance hit of this add-on. TMP is a cpu and memory hog.

- lendle bookmarklet has this code under bookmark properties

javascript:var array=document.URL.match(/amazon\.(.*?)\/.*?\/.*?\/(.{10})/);if(array==null){alert('This bookmarket works on Amazon.com Kindle book pages, and redirects you to the same book\'s page on Lendle. Please visit a Kindle book page on Amazon.com and then click this bookmarklet.');}else{var x=window.open('http://www.lendle.me/books/detail/'+array[2]);x.focus();}

- I checked my config settings per answer on https://support.mozilla.org/en-US/questions/1060711. My config setting is:

   browser.link.open_newwindow.override.external              -1
   browser.link.open_newwindow                                              3


https://support.mozilla.org/en-US/questions/1060711

There is this pref to override the behavior of opening a link in an external application.

   browser.link.open_newwindow.override.external 

If this pref has the default value -1 then browser.link.open_newwindow is used.

The meaning of the value of the browser.link.open_newwindow.override.external is the same as of browser.link.open_newwindow

   1:current tab; 2:new window; 3:new tab;
   http://kb.mozillazine.org/browser.link.open_newwindow
Previously when I clicked on the lendle bookmarklet fx would navigate me to a new tab and open the appropriate lendle page. I liked that. Now fx opens the lendle page in the same tab. How do I force it to open in new tab? - I have the add-on open all bookmarks in new tab. - It worked before I installed TMP (Tab Mix Plus) add-on and it opened in a new page too with TMP installed. I have now removed the TMP add-on due to a big performance hit of this add-on. TMP is a cpu and memory hog. - lendle bookmarklet has this code under bookmark properties <pre><nowiki> javascript:var array=document.URL.match(/amazon\.(.*?)\/.*?\/.*?\/(.{10})/);if(array==null){alert('This bookmarket works on Amazon.com Kindle book pages, and redirects you to the same book\'s page on Lendle. Please visit a Kindle book page on Amazon.com and then click this bookmarklet.');}else{var x=window.open('http://www.lendle.me/books/detail/'+array[2]);x.focus();} </nowiki></pre> - I checked my config settings per answer on https://support.mozilla.org/en-US/questions/1060711. My config setting is: browser.link.open_newwindow.override.external -1 browser.link.open_newwindow 3 https://support.mozilla.org/en-US/questions/1060711 There is this pref to override the behavior of opening a link in an external application. browser.link.open_newwindow.override.external If this pref has the default value -1 then browser.link.open_newwindow is used. The meaning of the value of the browser.link.open_newwindow.override.external is the same as of browser.link.open_newwindow 1:current tab; 2:new window; 3:new tab; http://kb.mozillazine.org/browser.link.open_newwindow

Ti ṣàtúnṣe nípa cor-el

Ọ̀nà àbáyọ tí a yàn

Those setting mean that you are redirecting all window.open() calls to the current tab.

You need to set browser.link.open_newwindow to 3 to open links in a new tab.

Ka ìdáhùn ni ìṣètò kíkà 👍 1

All Replies (9)

more options

This forum does not do well with code... How about I change %20 back to a space for posting purposes:

javascript:var array=document.URL.match(/amazon\.(.*?)\/.*?\/.*?\/(.{10})/);if(array==null){alert('This bookmarket works on Amazon.com Kindle book pages, and redirects you to the same book\'s page on Lendle. Please visit a Kindle book page on Amazon.com and then click this bookmarklet.');}else{var x=window.open('http://www.lendle.me/books/detail/'+array[2]);x.focus();}

What I think is missing here is the target attribute in the window.open() function call (last line):

javascript:var array=document.URL.match(/amazon\.(.*?)\/.*?\/.*?\/(.{10})/);if(array==null){alert('This bookmarket works on Amazon.com Kindle book pages, and redirects you to the same book\'s page on Lendle. Please visit a Kindle book page on Amazon.com and then click this bookmarklet.');}else{var x=window.open('http://www.lendle.me/books/detail/'+array[2], "_blank");x.focus();}

more options

As for the browser.link.open_newwindow.* preferences, you probably do not need to modify them from their default values. In particular, the one for external links is for completely separate programs like Adobe Reader and Microsoft Word. The poster in that other thread was launching a link from outside Firefox.

more options

thankyou jscher2000. tried that but it did not work for me

I updated the properties in the bookmarklet (bookmark, properties)

to include

x=window.open('http://www.lendle.me/books/detail/'+array[2], "_blank");x.focus();} (there is a space after, and before "_blank")

but firefox keeps changing it to insert %20 rather than the space

x=window.open('http://www.lendle.me/books/detail/'+array[2],%20"_blank");x.focus();}

more options

That is OK. A space and some other characters are escaped when you save them as a bookmarklet. The code is unescaped automatically if you run the code.

What is the value of these two prefs?

browser.link.open_newwindow.override.external doesn't apply here as this is meant for links that you click in an external program like an email to open in the default browser.

more options
more options

Ọ̀nà àbáyọ Tí a Yàn

Those setting mean that you are redirecting all window.open() calls to the current tab.

You need to set browser.link.open_newwindow to 3 to open links in a new tab.

more options

Configuration setting changed to 3, new tab.

Fx is not working all the time. Fx worked the first time (opened lendle in a new tab when I clicked on the lendle bookmarkelet) then no time after that, has it worked (e.g opening in same tab).

I do not understand why so trying to see if I can get it to work again.

Ti ṣàtúnṣe nípa jendrew

more options

Does it work better in a new window if you set browser.link.open_newwindow.restriction to 1 or 2?

more options

hi cor-el

Kept config setting at 3

It was me i think, I took jscher2000 new bit out of the bookmarklet (e.g. before "_blank") as I was thinking it did not need it before and worked, so why does it need it now...

if I popped that back in and keeping the config setting to 3, then it is working.

Thankyou for all your help. It is wonderful!

Ti ṣàtúnṣe nípa jendrew