External Links Enhanced #528
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
External Links Enhanced
Plugin that adds additional icons for external links.
Supported Links
The following sites are supported out of the box:
Want more icons? It's pretty simple to add your own; however, it's recommended to request an icon to be added the CommunityScripts repository. When you install the plugin from the CommunityScripts repository, it will come bundled with icons that the community has contributed.
Creating a custom icon
First, you'll need to locate the
custom/directory found in the plugin's directory. This housescustom.jsonalong with the custom icons.In
custom.json, you will find link definitions. Below is an example definition.The
nameis a unique identifier. Theiconcan be an SVG or image. Theaddressesarray will be used in conjunction with theregexproperty (not shown above since it's not required) for link detection to properly categorize the icons. The default/fallback regex ishttps?:\/\/(?:www\.)?${addr}\/After you've created your definitions, simply toss your icons in the same directory as
custom.json.Things to know
The plugin will fetch both the
custom.jsonand icon files from the hard-coded plugin directory:./plugin/externalLinksEnhanced/assets/customThis means if you rename the
externalLinksEnhanceddirectory, things will break. You would need to updatecustomAssetPathin theexternalLinksEnhanced.jsfile.Support
I (Qx) developed this plugin but I'm giving it to the community to change and update it as much as they like. The original source code can be found here.
If you're looking for a clean install of the plugin without the custom icons, you can add my plugin repo source to Stash and install it that way:
https://qxxxgit.github.io/stash-plugins/index.yml