Skip to content

Commit 3a13802

Browse files
committed
feat: add acceleration key
chore: update readme
1 parent 1519b16 commit 3a13802

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

link-to-text/README.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,28 @@
1-
[link-to-text.webm](https://github.com/user-attachments/assets/19345bae-b60e-45fc-a769-20e25b2d6edb)
1+
# NAME
2+
3+
**link-to-text** - adds a right click menu item on selected text to create a direct link that will the browser to focus in and highlight this text when the link is opened
4+
5+
# SYNOPSIS
6+
7+
select some text, then right click on the selection and click on the context entry "Link to Text ..", a alert prompt will open where you can direct link from
8+
9+
# USER INPUTS
10+
11+
- selected text
12+
13+
# OPTIONS
14+
15+
none
16+
17+
# REQUIRED PERMISSIONS
18+
19+
- **menus**: used to add the context menu entry
20+
- **activeTab**: used to open the alert prompt to display the link
21+
22+
# OPTIONAL PERMISSIONS
23+
24+
none
25+
26+
# DEMO VIDEO
27+
28+
https://github.com/user-attachments/assets/19345bae-b60e-45fc-a769-20e25b2d6edb

link-to-text/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* global browser */
22

33
browser.menus.create({
4-
title: "Link to Text: '%s'",
4+
title: "&Link to Text: %s",
55
contexts: ["selection"],
66
documentUrlPatterns: ["<all_urls>"],
77
onclick: async (info, tab) => {

0 commit comments

Comments
 (0)