cockscomb / chrome-cocopy

chrome extension to copy text by your code.

Home Page:https://chrome.google.com/webstore/detail/cocopy/ihnfodlbkhgjnbheemjhkjfkfglgbdgc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cocopy

logo

a chrome extension to copy text by your code.

(In Japanese) コードで(by code) コピー(copy)

Install

Install from Chrome Web Store

Usage

Execute Function to Copy

  • By selecting a function, it runs with the current page content.
  • The return value of the function is copied to the clipboard.
  • You can use the number keys to select a function.

run a function to copy

Create & Edit Function

  • You can open the options page from the cog icon ⚙️ on the popup and define & edit a function
  • The function receives an object having these properties.
    • title: same as document.title.
    • url: same as location.href.
    • content: same as document.documentElement.outerHTML. You can query it using DOMParser.
    • selectingText: same as window.getSelection().toString().
  • The code runs safely under the sandbox, not under the page.

edit a function

Keyboard Shortcut (optional)

Set it up in chrome://extensions/shortcuts .

The default suggested keys to open popup are Ctrl+Shift+L or Cmd+Shift+L(Mac).

Check for the settings conflicts with other extensions and re-input your shortcut keys if it doesn't work. (e.g. 1Password X)

Function Gallery

Go to the gallery to add more functions and see sample codes.

There are functions to ...

  • Simplify Amazon.co.jp URL.
  • Copy current playing position on YouTube video.

About

chrome extension to copy text by your code.

https://chrome.google.com/webstore/detail/cocopy/ihnfodlbkhgjnbheemjhkjfkfglgbdgc

License:MIT License


Languages

Language:TypeScript 90.8%Language:JavaScript 4.5%Language:CSS 3.1%Language:HTML 0.9%Language:Shell 0.4%Language:Makefile 0.3%