MCPcopy
hub / github.com/027xiguapi/code-box

github.com/027xiguapi/code-box @main sqlite

repository ↗ · DeepWiki ↗
447 symbols 1,190 edges 98 files 6 documented · 1%
README

Codebox - One-click Code Copying/Downloading Articles

中文 | English

official website

https://www.code-box.fun/

Introduction

This browser plugin can be used on websites like CSDN/Zhihu/Script Home/Blog Garden/51CTO Blog/PHP Chinese Network/Juejin/WeChat, etc., to download articles as HTML or Markdown files with one click; to copy code without logging in; to support selected code; or to copy code with one click from the button in the upper right corner of the code; to remove the prompt to follow the blogger to read the full text; to remove the login pop-up window; to remove the pop-up window to jump to the APP.

Installation

Installation Method 1: Plugin Store (Recommended)

Directly download and install: 1. Enter the app store - Chrome Web Store - Edge Web Store - 360 Browser App Store - Firefox Web Store

  1. Search: codebox

0f8137ce6861f2a387095aef446fe60 img 1724640161752

Installation Method 2: Direct Installation

  1. Installation address:

Installation Method 3: Download from WeChat Official Account

  1. Follow the WeChat official account

img

  1. Click Software Download

img

Installation Method 4: Source Code Installation

  1. Clone the source code sh git clone https://github.com/027xiguapi/code-box.git
  2. Install and package sh pnpm install pnpm dev pnpm build
  3. For Google Chrome, you can enter the plugin management page from the upper right menu -> More tools -> Extensions, or you can directly enter chrome://extensions in the address bar to access it.
  4. Check the developer mode, and you can directly load the plugin in the form of a folder.

Function

img-1

Customization

  • Insert custom styles (CSS code)
  • Download all images
  • Customize the selection to download HTML
  • Customize the selection to download Markdown
  • Customize the selection to download PDF

WeChat

  • Insert custom styles (CSS code)
  • One-click download of article HTML
  • One-click download of article Markdown
  • One-click download of article PDF
  • One-click download of all images

Nuggets

  • Insert custom styles (CSS code)
  • One-click download of article HTML
  • One-click download of article Markdown
  • One-click download of article PDF

CSDN

  • One-click download of article HTML, PDF, or Markdown files
  • Open any CSDN blog to start copying code
  • Support for selected code when not logged in to CSDN
  • One-click copy of code from the button in the upper right corner of the code when not logged in to CSDN
  • No more forced login pop-ups when not logged in to CSDN
  • No more prompts to follow the blogger to read the full text when not following the blogger, and the full text is displayed
  • Automatically expand code blocks
  • Block APP redirection on mobile
  • For non-VIP users, no more prompts for VIP viewing, and the full text is displayed
  • Insert custom styles (CSS code)

Zhihu

  • One-click download of article HTML, PDF, or Markdown files
  • One-click copy of code
  • No more prompts to expand and read the full text when not logged in to Zhihu, and the full text is displayed
  • No more forced login pop-ups when not logged in to Zhihu
  • Insert custom styles (CSS code)

Baidu

  • One-click download of dialog box HTML, PDF, or Markdown files
  • Close AI dialog box

Jian Shu

  • One-click download of article HTML, PDF, or Markdown files
  • One-click copy of code on mobile
  • No more prompts to expand and read the full text, and the full text is displayed
  • No more forced login pop-ups
  • Insert custom styles (CSS code)

Script Home

  • One-click download of article HTML, PDF, or Markdown files
  • Open any Script Home blog to start copying code
  • Support for selected code when not logged in to Script Home
  • Block ads
  • One-click copy of code from the button in the upper right corner of the code on mobile when not logged in to Script Home
  • Insert custom styles (CSS code)

Blog Garden

  • One-click download of article HTML, PDF, or Markdown files
  • One-click copy of code
  • Insert custom styles (CSS code)

51CTO Blog

  • One-click download of article HTML, PDF, or Markdown files
  • Support for selected code when not logged in to 51CTO Blog
  • One-click copy of code from the button in the upper right corner of the code when not logged in to 51CTO Blog
  • No more forced login pop-ups when not logged in to 51CTO Blog
  • One-click copy of code from the button in the upper right corner of the code on mobile when not logged in to 51CTO Blog
  • Insert custom styles (CSS code)

PHP Chinese Network

  • One-click download of article HTML, PDF, or Markdown files
  • Support for selected code when not logged in to PHP Chinese Network
  • One-click copy of code from the button in the upper right corner of the code when not logged in to PHP Chinese Network
  • No more forced login pop-ups when not logged in to PHP Chinese Network
  • One-click copy of code from the button in the upper right corner of the code on mobile when not logged in to PHP Chinese Network
  • Insert custom styles (CSS code)

img img img img img img img img img

Reference

  1. copy-csdn
  2. plasmo
  3. Chrome App Store One-stop Support
  4. Out-of-the-box web printing and downloading
  5. Export WeChat Official Account Articles to PDF
  6. One-click Download of WeChat Official Account Article Images

Privacy Policy

Webpage

Links

  • https://www.metrolinehub.com
  • https://routerpark.com
  • http://aitubestats.com

Extension points exported contracts — how you extend this code

EncryptionInterface (Interface)
(no doc) [2 implementers]
utils/encryption.ts
Position (Interface)
(no doc)
utils/makerQRPost.ts
PrintOptions (Interface)
(no doc)
utils/print.ts
QRCodeModalProps (Interface)
(no doc)
component/ui/QRCodeModal.tsx
ExtensionMessage (Interface)
(no doc)
contents/chat-integration.ts
DataType (Interface)
(no doc)
tabs/history.tsx
ChatResponse (Interface)
(no doc)
contents/chat-integration.ts

Core symbols most depended-on inside this repo

i18n
called by 140
tools.ts
send
called by 36
server/WechatSender.js
print
called by 22
utils/print.ts
Turndown
called by 20
utils/turndown.ts
saveMarkdown
called by 19
tools.ts
addCss
called by 18
tools.ts
saveHtml
called by 18
tools.ts
useParseMarkdown
called by 18
utils/parseMarkdownHook.ts

Shape

Function 398
Method 34
Class 8
Interface 7

Languages

TypeScript100%

Modules by API surface

contents/weixin.tsx19 symbols
utils/encryption.ts18 symbols
contents/csdn.tsx17 symbols
contents/zhihu.tsx16 symbols
contents/php.tsx14 symbols
contents/jianshu.tsx14 symbols
component/ui/customDomSelector.tsx14 symbols
tools.ts13 symbols
contents/jb51.tsx13 symbols
contents/cnblogs.tsx12 symbols
contents/51cto.tsx12 symbols
utils/print.ts11 symbols

Dependencies from manifests, versioned

@ant-design/cssinjs2.0.1 · 1×
@ant-design/icons6.1.0 · 1×
@babel/preset-env7.16.11 · 1×
@joplin/turndown4.0.74 · 1×
@joplin/turndown-plugin-gfm1.0.56 · 1×
@plasmohq/messaging0.7.2 · 1×
@plasmohq/storage1.15.0 · 1×
@types/chrome0.0.258 · 1×
@types/node20.11.5 · 1×
@types/react19.2.3 · 1×
@types/react-dom19.2.3 · 1×

For agents

$ claude mcp add code-box \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact