Clipboard filtering with regular expression

Latest Version

Version
0.1.11
Update
March 15, 2023
Size
31.91KiB
Developer
Category
Users
66
Rating
2.66667 ★
Manifest Version
3
Web Store Status
Languages Support
Deutsch
English
Français
See more
Permissions
Storage
ContextMenus
ActiveTab
ClipboardRead
ClipboardWrite
See more

Skim the clipboard Extension

This add-on use regular expression templates to filter a text when it is pasted or copied.
You may paste & filter when you paste a text modified by a regular expression in a form field in the browser.
You may copy & filter to copy some text from a web page and want to use it modified by a regular expression in another application.
You may also apply a regular expression modifier to change a text already in the clipcoard. The changed text being kept in the clipboard so that it can be pasted in the address bar for example.

Example 1: Suppose I want to filter only words that are longer then four characters to use in search engine:
Open the Skim the clipboard option page click on Add a row (check box field) and enter the following in the table:

- set name: >4,
- set regular expression template: [\\w\\u00c0-\\u010f]{4,}
- Regular expression modifier: gi
- set keep match or substitute: checked
- Keep in clipboard: unchecked
- Shortcut: two

Click on Save all and close the option page.

Close the options, and select and copy a text from the web page you want to search, click in the search engine field, right click and select
Paste filtered - >4. Only the words of four charaters or more are paste in the field.
You may also simply press Ctrl+Shift+B (PC) / Command+Shift+B (Mac) in the form field to paste the modified clipboard content.

Example 2: Suppose I want to paste the host url address (https://dev.opera.com/) in the address bar, using any link location from this site, eg. (https://dev.opera.com/extensions/publishing-guidelines/#create).

Open the Skim the clipboard option page, click on Add a row (text field) and enter the following in the table:

- set name: host,
- set regular expression template: (^http.?:\\/\\/[^\\/]+)(.*$)
- Regular expression modifier: gi
- set keep match or substitute: $1
- Keep in clipboard: checked
- Shortcut: one

Click on Save all and close the option page.
Copy a page url from the address bar or on the context menu Copy link Address. Click on the page and right click on Replace in Clipboard > Host. The clipboard content is changed to the host url.Click in the address bar and (regular) paste the modified url that you can paste in the address bar.
You may also simply press Ctrl+Shift+A (PC) Command+Shift+A (Mac) in the web page to modify the clipboard content.
Read more

Source Manifest.json

{ "background": { "service_worker": "js/background.js", "type": "module" }, "action": { "default_icons" :{ "64": "img/icon-64x64.png", "16": "img/icon-16x16.png", "48": "img/icon-48x48.png" } }, "content_scripts": [ { "js": [ "js/content.js" ], "matches": [ "\\u003Call_urls>" ] } ], "default_locale": "en", "description": "__MSG_panel_label__", "icons": { "16": "img/icon-16x16.png", "48": "img/icon-48x48.png", "64": "img/icon-64x64.png" }, "manifest_version": 3, "name": "__MSG_extName__", "optional_permissions": [ ], "options_ui": { "page" : "options.html", "open_in_tab" : true }, "permissions": [ "storage", "contextMenus", "activeTab", "clipboardRead", "clipboardWrite" ], "update_url": "https://clients2.google.com/service/update2/crx", "version": "0.1.11", "commands": {"one": {"suggested_key": {"default": "Ctrl+Shift+Comma","mac": "Command+Shift+Comma"},"description": "run shortkey one"},"two": {"suggested_key": {"default": "Ctrl+Shift+Period","mac": "Command+Shift+Period"},"description": "run shortkey two"},"three": {"suggested_key": {"default": "Ctrl+Shift+1","mac": "Command+Shift+1"},"description": "run shortkey three"}, "four": {"suggested_key": {"default": "Ctrl+Shift+2","mac": "Command+Shift+2"},"description": "run shortkey four"}}}
Read more

Similar Extensions

icon

Text Tools Extension · Productivity 66 27 ★ 13.13KiB

icon

LinkStash Bookmark Manager Extension · Productivity 66 24 ★ 28.07KiB

icon

TempText Extension · Productivity 66 10 ★ 46.78KiB

icon

Clipboard History Manager Extension · Productivity 66 8 ★ 534KiB

icon

Searchable Bookmarks Manager Extension · Productivity 66 13 ★ 1.04MiB

icon

SelectionSK Extension · Productivity 66 49 ★ 388KiB

icon

append-to-clipboard Extension · Social & Communication 66 3 ★ 488KiB

icon

SaveMyClips Extension · Productivity 66 1 ★ 15.01KiB

icon

Quick Bookmark to Folders Extension · Productivity 66 2 ★ 152KiB

icon

Text Toolkit : (AIO Text Tools) Extension · Developer Tools 66 3 ★ 37.32KiB

icon

Bookmarks HotList Extension · Productivity 66 13 ★ 316KiB

icon

Append Text To Clipboard Extension · Productivity 66 2 ★ 27.56KiB

icon

QuickBookmarkToFolder Extension · Productivity 66 16 ★ 45.95KiB

icon

Clean Bookmark Extension · Productivity 66 5 ★ 1.26MiB

icon

Manager Extension · Productivity 66 4 ★ 491KiB

icon

Bookmarkme - Bookmark Manager Extension · Productivity 66 5 ★ 1.04MiB

icon

Webmapper Extension · Productivity 66 13 ★ 200KiB

icon

copy 2 clipboard with ease Extension · Accessibility 66 23 ★ 390KiB

icon

Bookmark Manager per Domain and Page Extension · Productivity 66 11 ★ 13.83KiB

icon

ManExt Extension · Accessibility 66 11 ★ 413KiB

icon

Rich URL Extension · Productivity 66 76 ★ 750KiB

icon

Format Link Extension · Productivity 66 12 ★ 53.32KiB

icon

tabzen Extension · Productivity 66 19 ★ 85.96KiB

icon

urlNeXT Extension · Productivity 66 28 ★ 264KiB