2

I’m stuck using a crappy website that is very dynamic and uses a lot of JavaScript, basically it has a table with many rows, each containing a link. Initially the rows are in a very poor order and I click various buttons to sort them. However, when I click a link and then try to go back to this page, when I go back the ordering is back to its useless initial state.

To overcome this problem I would like to open links in new tabs. But since the links have the location javascript:void(0) how can I do this? If I try click with the middle button of the mouse, a new empty tab opens. I’m using Firefox and am willing to install addons.

Here’s a link to a download of the source code.

Hennes
  • 64,768
  • 7
  • 111
  • 168
Celeritas
  • 8,159
  • 36
  • 107
  • 150
  • 1
    what website are you refering to ? – niceman Mar 05 '15 at 10:14
  • @niceman it's not public, would you like me to tell you a certain detail? – Celeritas Mar 05 '15 at 11:04
  • well what do you mean by "it doesn't go back to where I want it" ? what do you want ? – niceman Mar 05 '15 at 11:12
  • The previous page contains many links which are initially sorted in an order not useful to me. After clicking some buttons (e.g. sort by date etc.) then the list becomes useful. However, when I click on one of the links and leave the page and then go back to it, the list is in the initial useless order. – Celeritas Mar 05 '15 at 11:18
  • hmmm, this is a problem with the website itself(they didn't program it well) – niceman Mar 05 '15 at 11:20
  • could you post the source of it in a link ? – niceman Mar 05 '15 at 11:22
  • @niceman sorry, I don't understand what you're asking? The entire website is private and not available to the public (though I don't mind posting info about it or the pages source code) – Celeritas Mar 05 '15 at 19:55
  • post the page source code you're having problems with. – niceman Mar 06 '15 at 04:47
  • @niceman http://www71.zippyshare.com/v/EKDS1k3z/file.html – Celeritas Mar 06 '15 at 05:33
  • Similar to http://superuser.com/questions/604705/how-to-open-stubborn-javascript-links-in-a-new-tab-or-new-window – sffc Oct 26 '15 at 01:28

2 Answers2

1

There was once an add-on called "Smart Middle Click" that provided the ability to middle-click JavaScript links. It's no longer available at addons.mozilla.org or the author's website, but I've uploaded a copy for you:

http://www67.zippyshare.com/v/7SsmjES2/file.html

SMC doesn't work with all JS links, but rarely has trouble with the type you described. Hope it does the job for you!

blackwind
  • 209
  • 1
  • 13
0

Since Smart Middle Click didn't work for you, try this:

  • Open the Developer Console (Ctrl+Shift+K)
  • Click one of your links
  • Quickly hit Esc (or the Stop button) before the page changes
  • Middle-click the resulting link in the Console

It's a significantly less convenient solution, but it beats what you're doing now, and unfortunately, short of writing your own add-on or Greasemonkey script, it's your last remaining option.

blackwind
  • 209
  • 1
  • 13