How can I change the control + left click shortcut?

Hello

If I Ctrl + left click a link now, the link opens in a new tab. What I want is that control + left click works as a normal click, so that the link opens in the same tab. Is this possible? So that the control does nothing.

I already read this topic and I've managed to disable the control + left click, but this isn't what I want:
https://support.Mozilla.org/NL/questions/931230
I think I should change the code a bit, but I don't know how.

Can someone help me? Thank you!

Kind regards
Koen

Here's the revised for you:

// ==UserScript==
// @name        Ctrl+click to Regular Click
// @namespace   YourNameHere
// @description Change ctrl+left click to regular click on all sites
// @include     http*://*
// ==/UserScript==
function overrideCtrlClick(e){
  if (e.button == 0 && e.ctrlKey && e.target.nodeName == "A"){ // left button + ctrl key
    e.preventDefault();  // stop Firefox from processing
    e.stopPropagation(); //   the user's Ctrl+click
    e.target.click();    // apply a regular click to the link
    return false;
  }
}
document.addEventListener("click", overrideCtrlClick);

Who do you want?

Tags: Firefox

Similar Questions

Maybe you are looking for

  • "Problem with recording device" - with no Microphone

    In short, despite not having a mic that I usually use Skype calls to be able to listen to friends when you play and do stuff in general. However today all of a sudden when we tried it auto-a ended the call with an error 'problem with the recording de

  • ThinkPad 8 20 billion

    Good evening everyoneI recently bought a Lenovo ThinkPad 8 20 billion model and having to use in combination with instrumentation, I thought to buy a ThinkPad Digitizer Pen to be faster in the selection of operations in the various menus.Well after b

  • How to search a file .csv for data using its timestamp, then import into labview

    Hi, I am currently get density, viscosity and temperature of an instrument, adding a timestamp data and write to a .csv file that I can view in Excel. It works very well (see attached code) but reimport what I have to do now is search this csv file o

  • How to disable windows Vista UAC features

    I can't remove the infection because the windows vista UAC settings are turned off

  • crackling audio/static

    I have a Dell Inspiron E1505; Intel Core Duoprocessor T2050 (2MB/1.60GHz/533MHz) 120 GB hard drive, which is a year old.  The last two weeks audio has been "crackling" not only during playback of videos like YouTube, but loading programs are, at boot