GithubHelp home page GithubHelp logo

nathanbw / copy-title-as-link Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 201 KB

Browser extension that provides a shortcut for copying a link to a page

License: MIT License

JavaScript 80.05% HTML 18.34% CSS 1.61%

copy-title-as-link's Introduction

Copy Title As Link

This repo houses the source code to a browser extension that adds a keyboard shortcut (default: Alt-Shift-C / Option-Shift-C) that, when pressed, will copy a hyperlink to the currently-focused page into the clipboard. This link can then be pasted anywhere that accepts hyperlinks in text, like chat applications and office document applications.

There are also hotkeys to copy links as Markdown text (default: Alt-Shift-M / Option-Shift-M) or org-mode text (default: Alt-Shift-E / Option-Shift-E).

You can assign other hotkeys besides the defaults. In Firefox, you do that by navigating to about:addons, clicking the cog wheel in the top right and selecting "Manage Extension Shortcuts". In Chrome, the extension's popup should provide a link to the configuration page in Chrome that allows you to select other hotkeys.

How to install

In Firefox

Install here: Copy Page Title As Link โ€“ Get this Extension for ๐ŸฆŠ Firefox (en-US)

In Chrome

The extension has been submitted to the Chrome Web Store but is currently pending review. Once the extension is available in the web store, I'll update with a link to its page on the Chrome Web Store. In the meantime, you can clone this repo and add the extension to Chrome manually, using the steps outlined below:

Clone this git repo (example below clones into ~/src/chrome-extensions/copy-title-as-link):

mkdir -p ~/src/chrome-extensions
cd ~/src/chrome-extensions
git clone [email protected]:nathanbw/copy-title-as-link.git
cd -

Go to chrome://extensions (copy-paste that into you URL bar), toggle "Developer mode" on (top right corner of the page), then click on "Load Unpacked" (top left corner of the page)

screenshot of where to load unpacked extensions

Select the src/chrome directory inside the directory you cloned this repo into.

After the extension is loaded, you can click on it in the extension menu to see its popup; it has the aforementioned link for customizing the hotkeys:

screenshot of how to open the extension's popup

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.