davidlublink / shaarli-urlextern

Shaarli plugin to open external links in a new tab/window.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

shaarli-urlextern

Shaarli plugin to open external links in a new tab/window.

Should work with any template.

Installation

The plugin's folder (urlextern) should be placed in the <shaarli>/plugins/ directory.

The directory structure should look like:

└── plugins
    └── urlextern
        ├── urlextern.js
        ├── urlextern.meta
        └── urlextern.php

To enable the plugin, just check it in the Plugin Administration page (?do=pluginadmin).

You can also add urlextern to your list of enabled plugins in data/config.json.php.
The general.enabled_plugins list should look like this:

"general": {
  "enabled_plugins": [
    "urlextern",
    [...]
  ],
}

Configuration

None - enable/disable in the Plugin Administration page.

Credits

Javascript code by @CrocoDillon.

About

Shaarli plugin to open external links in a new tab/window.

License:MIT License


Languages

Language:PHP 75.9%Language:JavaScript 17.3%Language:Dockerfile 6.8%