├── icon-128.png ├── icon-16.png ├── icon-48.png ├── linkding.png ├── background.js ├── bookmarklet.js ├── manifest.json ├── LICENSE └── README.md /icon-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeroenpardon/linkding-extension/HEAD/icon-128.png -------------------------------------------------------------------------------- /icon-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeroenpardon/linkding-extension/HEAD/icon-16.png -------------------------------------------------------------------------------- /icon-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeroenpardon/linkding-extension/HEAD/icon-48.png -------------------------------------------------------------------------------- /linkding.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeroenpardon/linkding-extension/HEAD/linkding.png -------------------------------------------------------------------------------- /background.js: -------------------------------------------------------------------------------- 1 | chrome.browserAction.onClicked.addListener(function(tab) { 2 | chrome.tabs.executeScript(tab.id, {file: "bookmarklet.js"}) 3 | }); 4 | -------------------------------------------------------------------------------- /bookmarklet.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | var bookmarkUrl = window.location; 3 | var applicationUrl = 'https://example.com/bookmarks/new'; 4 | applicationUrl += '?url=' + encodeURIComponent(bookmarkUrl); 5 | applicationUrl += '&auto_close'; 6 | window.open(applicationUrl); 7 | })(); 8 | -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "background": {"scripts": ["background.js"]}, 3 | "browser_action": { 4 | "default_icon": "icon-128.png", 5 | "default_title": "Linkding" 6 | }, 7 | "name": "Linkding", 8 | "description": "https://github.com/sissbruecker/linkding", 9 | "homepage_url": "https://github.com/sissbruecker/linkding", 10 | "icons": { 11 | "16": "icon-16.png", 12 | "48": "icon-48.png", 13 | "128": "icon-128.png" }, 14 | "permissions": [ 15 | "tabs", 16 | "http://*/*", 17 | "https://*/*" 18 | ], 19 | "version": "0.1", 20 | "manifest_version": 2 21 | } 22 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Jeroen 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # linkding-extension 2 | A simple extension for Chromium based browsers (tested on Google Chrome and Microsoft Edge) for [Linkding](https://github.com/sissbruecker/linkding), a self hosted bookmarking service. 3 | 4 | [Linkding](https://github.com/sissbruecker/linkding) is not my creation, I take no credit for it whatsoever. 5 | 6 | #### Why? 7 | Linkding provides a bookmarklet by default when you install it. I put this extension together to have quick access to adding a new bookmark as I always have the bookmarks bar of my browser hidden and I have the main Linkding screen set as my new tab page. 8 | 9 | #### Installation 10 | * If you haven't already, install [Linkding](https://github.com/sissbruecker/linkding) 11 | * Clone [this repository](https://github.com/jeroenpardon/linkding-extension) or extract the [zip package](https://github.com/jeroenpardon/linkding-extension/archive/master.zip) to a location of your choice 12 | * Replace `example.com` with your domain in bookmarklet.js 13 | * Enter `chrome://extensions/` or `edge://extensions/` into the adress field of your browser 14 | * Choose "Load unpacked". If you don't see this option, you need to switch on "developer mode" first. 15 | * Select the extension's location 16 | * The extension should pop up in your browser's toolbar 17 | --------------------------------------------------------------------------------