Ai text detector

Check if the selected text is written with an AI using the zerogpt API

लेखक
Juan P
दैनिक इंस्टॉल
0
एकूण इंस्टॉल
333
रेटिंग
1 0 0
आवृत्ती
1
बनवली
2023-10-18
अपडेट केली
2023-10-18
आकार
3.83 KB
License
GPLv3
यांवर लागू होते:
सर्व संकेतस्थळे

Ai Text Detector UserScript

This GreasyFork UserScript is designed to detect whether selected text is generated by an AI using the ZeroGPT API. When you select text on a web page, this UserScript sends the selected text to the ZeroGPT API, and if the text is detected as AI-generated, it provides a notification with the AI probability score.

How It Works

  1. The UserScript is triggered when you select text on a web page.

  2. It captures the selected text using the getSelectionText function.

  3. It then sends a POST request to the ZeroGPT API with the selected text. (I have bypassed the paywall to the API using a useragent, as they allow all requests if they have a useragent

Notification

The UserScript displays a notification with the following characteristics:

  • Positioned in the top right corner of the screen.
  • Dark background and light text color (following the Gruvbox palette).
  • Rounded corners and a slight shadow for a stylish appearance.
  • The notification includes the AI probability score and a message.

The notification will automatically fade out after 3 seconds, and it will be removed from the page after the fade-out animation completes.