Skip to content

Commit fb6dd66

Browse files
update README
1 parent 21293ba commit fb6dd66

File tree

1 file changed

+36
-33
lines changed

1 file changed

+36
-33
lines changed

README.md

Lines changed: 36 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,77 @@
1+
Here’s an updated README reflecting the slimmed-down extension (the online tool is still live, even though it doesn’t surface in the extension UI):
2+
3+
```markdown
14
# Markless-GPT
25

3-
A Chromium extension and online tool that filters out hidden watermark markers from ChatGPT (and other LLM) outputs, ensuring you copy clean, human-readable text.
6+
A lightweight Chromium extension that cleans out hidden watermark markers (zero-width and similar) from any text you copy—whether via Ctrl +C/⌘ +C, programmatic “Copy” buttons, or cut events—so you always get plain, human-readable content.
47

5-
**Try the online tool:** [https://bytemastermind.github.io/Markless-GPT/](https://bytemastermind.github.io/Markless-GPT/)
8+
> **Online tool available:**
9+
> https://bytemastermind.github.io/Markless-GPT/
610

711
---
812

913
## 🚀 Features
1014

1115
- **Automatic Filtering**
12-
Intercepts both manual copy (Ctrl+C/⌘+C) and programmatic clipboard writes (e.g. “Copy” buttons), funneling every snippet through a customizable text‑processing pipeline.
13-
16+
Intercepts every copy- or cut-event on the page and runs it through a simple `filterText()` pipeline.
1417
- **Watermark Removal**
15-
Detect and remove special characters or invisible markers that some models inject to tag AI‑generated text—leaving you with clean, human‑readable content.
16-
17-
- **Zero Permissions Overhead**
18-
No extra `clipboardWrite` permission required—Markless‑GPT hooks into the page’s native copy/cut events and the modern `navigator.clipboard.writeText` API.
19-
20-
- **Domain‑Aware Toggle**
21-
Easily enable or disable filtering on a per‑site basis via the extension’s popup UI.
22-
23-
- **Extensible Filter Function**
24-
Replace the built‑in `filterText()` routine with your own logic (regex, profanity filters, token redaction, etc.).
18+
Strips zero-width spaces, non-breaking spaces, and other invisible markers often injected by AI models.
19+
- **Button-Click Fallback**
20+
Detects “Copy” buttons, lets the page write first, then cleans up what lands on the clipboard.
21+
- **Inline Toast & Logging**
22+
Brief “Text safely copied!” toast for feedback plus console logs of raw vs. cleaned text.
23+
- **No Extra Permissions**
24+
Works without requesting any special `"clipboardWrite"` or host permissions—hooks into existing copy/cut handlers and the standard Clipboard API.
2525

2626
---
2727

2828
## 📦 Installation
2929

30-
1. Clone this repository
30+
1. **Clone** the repo
3131
```bash
3232
git clone https://github.com/ByteMastermind/Markless-GPT.git
3333
```
34+
2. **Load** into your browser
35+
- Navigate to `chrome://extensions/` (or `edge://extensions/`, etc.)
36+
- Enable **Developer mode**
37+
- Click **Load unpacked** and select the `markless-gpt/` folder
3438

35-
2. Load into your Chromium‑based browser
36-
- Go to `chrome://extensions/` (or `edge://extensions/`, etc.)
37-
- Enable “Developer mode”
38-
- Click **Load unpacked** and select `markless-gpt` directory
39-
40-
3. Enjoy watermark‑free copying!
39+
That’s it - no restart needed.
4140

4241
---
4342

4443
## ⚙️ Usage
4544

46-
1. Click the **Markless-GPT** toolbar icon to toggle filtering on or off for the current domain.
47-
2. Copy text as you normally would—either by selecting and hitting Ctrl+C (⌘+C) or by clicking any “Copy” buttons on the page.
48-
3. Paste: you’ll get the same text, minus any hidden watermark markers. (Verify [here](https://bytemastermind.github.io/Markless-GPT/))
45+
1. Copy or cut anything on any page in your Chromium-based browser:
46+
- **Keyboard** → Ctrl +C / Ctrl + X (⌘ +C / ⌘ + X on macOS)
47+
- **Buttons** → a traditional copy buttons on the page
48+
2. Paste anywhere - you’ll get the exact same text minus hidden watermark characters.
4949

5050
---
5151

5252
## 🛠️ Customizing the Filter
5353

54-
Open `content-script.js` and edit:
54+
Open `content-script.js` and tweak the `filterText` function:
55+
5556
```js
56-
function filterText(input) {
57-
// Default: strip out all non‑printable (zero‑width) characters
58-
return input.replace(/[\u200B-\u200D\uFEFF]/g, '');
59-
}
57+
// Default removes common zero-width / invisible chars:
58+
const filterText = input =>
59+
input
60+
.replace(/\u00A0/g, ' ')
61+
.replace(/\u202F/g, ' ')
62+
.replace(/[\u200B-\u200D\uFEFF]/g, '');
6063
```
61-
You can swap in your own regex, call out to a background script for heavy processing, or integrate third‑party libraries.
64+
65+
Feel free to extend it with your own regex rules, profanity filters, token redaction, or remote processing via a background script.
6266

6367
---
6468

6569
## 💡 Why Markless-GPT?
6670

67-
LLMs sometimes embed invisible tokens or special characters to “mark” AIgenerated text. MarklessGPT ensures that anything you copy and paste is free of these behind‑the‑scenes markers, making your workflows cleaner and more reliable.
71+
LLMs and other pipelines sometimes slip in invisible markers to tag AI-generated text. Markless-GPT makes sure anything you copy is free of these hidden artifacts—no permissions, no popups, just clean text.
6872

6973
---
7074

7175
## 📄 License
7276

73-
MIT © [bytemastermind](https://github.com/ByteMastermind)
74-
77+
MIT © [ByteMastermind](https://github.com/ByteMastermind)

0 commit comments

Comments
 (0)