jslint-org / jslint

JSLint, The JavaScript Code Quality and Coverage Tool

Home Page:https://www.jslint.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: Using `target="_blank" on all external links`

unrealapex opened this issue · comments

commented

Is your feature request related to a problem? Please describe.

It's very frustrating to have the code you linted and started to fix vanish in thin air when you click a link because it doesn't open in a new tab.

Describe the solution you'd like

My suggestion is using target="_blank" on all external links on JSLint or at least just on the linting page. See When to use target=”_blank” for a more in depth guide and reasoning.

Describe alternatives you've considered

An alternative would be just Ctrl/Cmd clicking every line, but that is tedious.
One other option is adding a unsaved changes dialog:

window.addEventListener("beforeunload", function (e) {
    var confirmationMessage = 'It looks like you have been editing something. '
                            + 'If you leave before saving, your changes will be lost.';

    (e || window.event).returnValue = confirmationMessage; //Gecko + IE
    return confirmationMessage; //Gecko + Webkit, Safari, Chrome etc.
});

code for unsaved warning