Giter Site home page Giter Site logo

zznidar / link-fixer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from danielnixon/link-fixer

0.0 0.0 0.0 1.44 MB

Restores consistent ctrl+click, shift+click, cmd+click and middle-click behaviour when clicking links.

License: MIT License

JavaScript 93.23% HTML 6.77%

link-fixer's Introduction

Firefox users Firefox downloads Firefox rating Chrome users

Build Status Type Coverage Known Vulnerabilities

Link Fixer

The default behaviour of ctrl+click, shift+click, cmd+click (on macOS) and middle-click when clicking on links is to open the link in a new tab (or new window in the case of shift).

This behaviour is sometimes broken by careless developers.

This add-on restores the default behaviour, ensuring the modifier keys always cause links to open in a new tab (or window).

Installation

A note on the plain JS

Mozilla's add-on submission process requires submission of source code. It's probably an overly strict interpretation of that requirement, but I took it to mean that something like TypeScript (that neverless produces mostly readable, unobfuscated output) would require source code upload and push an add-on into the slow approval lane.

You'll notice this repo doesn't have a *.ts file in sight, and yet achieves a very high type coverage score courtesy of JSDoc types.

I took this as an opportunity to see how far I could push this given the no *.ts constraint.

link-fixer's People

Contributors

danielnixon avatar dependabot-preview[bot] avatar renovate-bot avatar renovate[bot] avatar greenkeeper[bot] avatar dependabot[bot] avatar zakius avatar zznidar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.