Code Monkey home page Code Monkey logo

copycat's Introduction

Copycat

copycat-logo

Copy content from web powerful than ever before.

Supported browsers and platforms

Features

  • Copy a tab title
  • Copy a tab link as
    • Plain text
    • Rich text
    • HTML
    • Markdown
    • Org-Mode
    • AsciiDoc
    • BBCode
  • Copy a frame title
  • Copy a frame link as
    • Plain text
    • Rich text
    • HTML
    • Markdown
    • Org-Mode
    • AsciiDoc
    • BBCode
  • Copy a link text
  • Copy a link as
    • Plain text
    • Rich text
    • HTML
    • Markdown
    • Org-Mode
    • AsciiDoc
    • BBCode
  • Copy selection as
    • Plain text
    • Concatenated plain text
    • JSON
    • Markdown
    • HTML
    • HTML without attributes
    • User-defined clean HTML
    • BBCode
  • Copy an image as
    • HTML
    • Markdown
    • BBCode
    • Data URL
  • Copy a native audio as HTML
  • Copy a native video as HTML

Extension shortcuts

Copy tab links and selections can be set as extension shortcuts.

Manage Chrome shortcuts: chrome://extensions/shortcuts

Manage Firefox shortcuts: about:addons -> Extensions -> Settings -> Manage Extension Shortcuts

copycat's People

Contributors

blackglory avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

copycat's Issues

decoded URLs feature

Hi! Awesome and great extension. Feature request for encoded URLs (eg. with cyrilic characters) support inside Markdown.
eg.
[Мадам Баттерфляй — Википедия](https://ru.wikipedia.org/wiki/%D0%9C%D0%B0%D0%B4%D0%B0%D0%BC_%D0%91%D0%B0%D1%82%D1%82%D0%B5%D1%80%D1%84%D0%BB%D1%8F%D0%B9)
to
https://ru.wikipedia.org/wiki/Мадам_Баттерфляй .

similar to firefox quantum config:

about:config
browser.urlbar.decodeURLsOnCopy: true

HTML to BBCode tables and center

Hey! Thanks for the very useful extension!

I noticed that the library you're using to convert HTML to BBCode doesn't support converting HTML tables. I was just wondering if you'd be interested in adding support for that somehow.

I also noticed that it converts elements with text-align: center to [center][/center], but in Gazelle (a private tracker web framework) it's [align=center][/align]. I suppose these things are different everywhere because there is no real standard, so you'd need user-facing options to enable/disable/modify tags accordingly which seems a bit difficult. But yea just something to take into consideration.

Uncaught (in promise) [object Object]

最近chrome更新之后,发现提示错误用不了了

Uncaught (in promise) [object Object]
上下文
_generated_background_page.html
堆叠追踪
browser-polyfill.min.js:1 (匿名函数)

新版本无法输出结果

这几天使用copy cat时发现剪贴板里完全没有内容,回头发现copy cat最近更新了一次,不知是否为新版本问题。
浏览器为Chrome,版本 55.0.2883.87 (64-bit)

add option for custom context menu

thanks for this extension, it's the best extension used to copy as markdown.
so how about add these features:

  • hide context menu
  • only display one item(copy as markdown, copy as html, or other things we can configure) instead of current TWO level menu

[Feature Request] Support Paste Content of Clipboard as Pure Text

Reason

I often copy some text from vscode and paste it to confference, but will also paste with css style. So, it would be convinnient to add a context menu item to paste the content of clipboard to pure text.

Expect

Add a new menu item named Paste Content� of Clipboard as Pure Text

Edge无法使用,右键菜单无相关菜单项

Edge从插件商店下载并重启浏览器后,在右键菜单中未出现相关菜单项。

操作系统:macOS Catalina 10.15.7
Edge版本:111.0.1661.51 (正式版本) (x86_64)

插件安装详情截图
image

页面使用详情截图
image

Copy GIF

This is a brilliant extension that just works.

I was wondering if it's possible to add GIF. Currently, I was trying to copy this GIF but it only copied it as image in Windows.

Then I tried Copycat but it doesn't have support for GIF option. Any chances it could work?

Feature Request: regex conversion custom copy?

I'm finding use cases where I need to manipulate a certain set of attributes rather frequently and would like to convert them to another form of output that simplifies it over standard HTML or other options. Could you give us a custom option that will utilize a (or a series of) regular expression to reflow the copied content to a new format output for the pasteboard/clipboard?

Preserve IMG SRC when using HTML No Attributes

I'm interested in removing most CSS and extra attributes to my HTML copying, but the (no attributes) mode breaks IMG embeds since it removes the src= attribute which leaves just empty IMG tags. I'd rather keep the images intact.

One reason for this is sites like Wordpress Blogs, which add a bunch of excess attributes to their image embeds making them a mess to clean afterwards.

Copy as Markdown not escaping some characters

If the text itself includes asterisks or angle-brackets, they aren't escaped into * or < >

So the resulting markdown doesn't match the original. That is to say, this italicized and censored internal thought:
F*ck, what is going on?
becomes:
Fck, what is going on?*
The asterisk in the text isn't escaped, so it's treated as markdown when it shouldn't be.

This looks like it might be a Turndown issue, as escaping was fixed in the recent 5.0.0 release, so if you're using a version older than that you'll have the same bugs.

Nesting of emphasis

In case of something like <em><strong>strong</strong> in em</em> Copycat produces ***strong** in em* which some parsers (notably, Reddit) don't handle correctly. It doesn't help that * can be an indicator for a list. It seems like denoting outer emphasis with _'s instead of *'s, i.e. _**strong** in em_ makes them parse this correctly. Can this be implemented?

Missing context menu

Context menu is missing until the extension is toggled off and on again in Firefox 114.0.2 on Windows. This behavior has been observed for several months already.

tables with multiline text

It is rather common and annoying to find, on the internet, table cells which have new lines in.

The new lines are rendered as they are, i.e. as new lines, which clashes with the new line character used in markdown to separate rows.
As a result, html tables which contain <br> or <p> elements break the rendered markdown.

For instance an html table structured like this:

|  heading 1   |   heading 2   |
|--------------|---------------|
| a line       | just one line |
| another line |               |
|--------------|---------------|
| and so       |               |
| on           |               |
|--------------|---------------|
|              |               |

might be rendered preserving the <br> and <p> tags

|       heading 1        |   heading 2   |
|------------------------|---------------|
| a line<br>another line | just one line |
| and so<p>on</p>        |               |

And, if it may make sense, and could be easy to implement, it could be useful to implement some dialect that supports multiline-row and recursively render the cell content as a new markdown text. So for instance complex formatting might be preserved within a cell (for instance bulleted lists, italics and so on):

|   heading 1    |   heading 2   |
|----------------|---------------|
| * a line       | just one line |
| * another line |               |
|----------------|---------------|
| and so         |               |
| _on_           |               |
|----------------|---------------|

(see azure devops - How can I add a table with multi-row cells to a readme in VSTS? - Stack Overflow for info about multi-line tables).

Copycat is not working in Chrome (especially the Hotkey)

in_short

Copycat has been working fine before in Chrome.

But in the recent 2~3? weeks, Copycat starts to not working sometimes (especially the Hotkey).

I have not idea what is the cause.

details

  • I have set hotkey shortcuts for Copycat in Chrome,
    and it has been working before.

  • Recently,
    when I:

    1. open a web page (a tab)
    2. select some text & try to copy into Markdown/Html/PlainText ...

    -> 70% of the time, the Copycat Hotkey fails to copy -- nothing is copied/updated to the Clipboard (-- Clipboard remains unchanged).

    • (70% -- the percentage is base on the page-open actions, not the copy actions (see below [page-open action based]))
  • I tired to refresh the page / restart the browser / disable&enable the extension / disable all other extension.
    Still, cant solve the problem -- it still only works sometimes
    (--ie: if you refresh multiple times, you may eventually get a page that have Copycat working...)

    I tried to reinstall the extension, not helping.

  • If the page was opened & copycat works, then it remains to work, as long as I dont refresh the page.
    If the page was opened & copycat doesnt work, then it remains to doesnt work, as long as I dont refresh the page.
    (page-open action based)

    So, it may be:
    working in one web page (one tab),
    while failing to work in another web page (another tab).

    Its not for a specific website -- it can happen to any website.

  • If I right click and use the context menu (not hotkey) to select Copycat to copy,
    -> still.... 60% of the time, the Copycat (Context Menu) fails to copy,

    There could be a case where: Hotkey is not working & Context menu is not working either. (most of the time)
    There could be a case where: Hotkey is not working, but Context menu works. (sometimes)

  • I tried to assign the same Hotkey to other extensions -- the Hotkey is working fine for others, but not for Copycat.

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.