konami-command icon indicating copy to clipboard operation
konami-command copied to clipboard

On‐the‐fly link changer library

Open jesus2099 opened this issue 10 years ago • 8 comments

This is the library side of #151. Cool names range from A LINK TO THE PAST to RE‐LINK.

jesus2099 avatar Apr 08 '16 12:04 jesus2099

#186 requires conditional changes, give parameter to exclude :mouse: right click, but maybe not only.

jesus2099 avatar Apr 08 '16 13:04 jesus2099

Take Snap Links event listener from PREFERRED MB.

jesus2099 avatar Apr 16 '16 23:04 jesus2099

PREFERRED MBS seems to avoid change on right click, copy that.

jesus2099 avatar May 24 '16 14:05 jesus2099

There is no avoid on right click actually now. No need IMO.

But I think it should not alter protocol to // when same protocol.

jesus2099 avatar Aug 03 '19 15:08 jesus2099

Principle would be something like:

LinkChanger({match: /url-regex/, replace: "$1... $9 and $* would work"});

jesus2099 avatar Aug 04 '19 16:08 jesus2099

With some possible exceptions:

By default, exceptions is the same as match:

LinkChanger({match: /^(https?:)?\/\/(\w+\.)?musicbrainz\.org(\/.*)/, replace: "https://musicbrainz.org$3"});

But we could also want to not modify links on some websites:

LinkChanger({match: /^(https?:)?\/\/(\w+\.)?musicbrainz\.org(\/.*)/, replace: "https://musicbrainz.org$3", exclude: /some-website/});

jesus2099 avatar Aug 06 '19 16:08 jesus2099

Removed obsolete scripts.

jesus2099 avatar Aug 08 '19 05:08 jesus2099

mb_REVIVE-DELETED-EDITORS does not seem to change any links, on the fly. At least, not yet.

jesus2099 avatar May 06 '23 10:05 jesus2099