Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Some websites use "creative" (javascript?) hyperlinks which break browser functionality, such as the ability to ctrl+click or middle click links to open them in a new tab.

A common example, taleo HR websites

No matter what I try, I can only follow links by clicking on them normally; I can't open them in a new window. Is there any way around this?

share|improve this question
Yes, href is set to # and JS is invoked on onclick event of links (site doesn't work with JS disabled). Perhaps there's some sort of browser plugin that can deal with this. – Karan Jun 7 '13 at 1:36
There is a request for a solution in Mozilla's Bugzilla: Bug 55696 - "Force JavaScript link to open in new window or new tab". – pabouk Aug 5 '13 at 13:52
Yeah I always thought this is extremely silly – Gigala Jul 28 '14 at 10:20

Yes. You can write your own scripts for Greasemonkey (Firefox) or Tampermonkey (Chrome)

For the example you mentioned, this Tampermonkey UserScript will set all JavaScript links in the search results to open in new tab / window (this depends on browser configuration, it's tabs for me).

// ==UserScript==
// @name       open links in tabs
// @match*
// ==/UserScript==


Though you can write more generic versions of this, enabling this functionality for all JavaScript links without breaking other usability will be hard.

A middlepath could be to set an event handler for Ctrl, that will temporarily set the target for ALL forms to "_blank" as long as the key is held.

share|improve this answer

Your question is specific to Taleo, so my answer will be too :)

I've coded a UserScript that does what you want: it replaces all the JavaScript links with normal links, so you can just click them or open them in a new tab if you want.

// ==UserScript==
// @name        Taleo Fix
// @namespace
// @description Taleo Fix Links
// @include     http://**
// @include     https://**
// @version     1
// @grant       none
// ==/UserScript==

function replaceLinks() {
    var rows = document.getElementsByClassName("titlelink");
    var url = window.location.href.substring(0, window.location.href.lastIndexOf("/") + 1) + "jobdetail.ftl";

    for (var i = 0; i < rows.length; i++) {
        rows[i].childNodes[0].href = url + "?job=" + rows[i];

if (typeof unsafeWindow.ftlPager_processResponse === 'function') {
    var _ftlPager_processResponse = unsafeWindow.ftlPager_processResponse;
    unsafeWindow.ftlPager_processResponse = function(f, b) {
        _ftlPager_processResponse(f, b);

if (typeof unsafeWindow.requisition_restoreDatesValues === 'function') {
    var _requisition_restoreDatesValues = unsafeWindow.requisition_restoreDatesValues;
    unsafeWindow.requisition_restoreDatesValues = function(d, b) {
        _requisition_restoreDatesValues(d, b);

You can find it here:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.