diff --git a/README.md b/README.md new file mode 100644 index 0000000..0ba6ec3 --- /dev/null +++ b/README.md @@ -0,0 +1,245 @@ +--- +>- + 1. [Features](#features) 2. [Installation](#installation) 3. [Usage](#usage) + 4. [Example](#example) 5. [Options](#options) 6. [How It Works](#how-it-works) + 7. [Changelog](#changelog) 8. [To-Do List](#to-do-list) 9. + [Contributing](#contributing) 10. [License](#license) 11. [Author](#author) +--- + +# StopEdit - A Lightweight JavaScript Library to Protect Your Page 🛡️ + +StopEdit is a simple JavaScript library designed to keep your webpage safe from unwanted changes. It actively monitors your page for edits and resets everything back to its original state. Whether it's someone tampering with "Inspect Element" or trying to edit your content directly, StopEdit has you covered. + +## ✨ Features + +- **Customizable Protection**: Guard your entire page or just specific elements (default: `
`). +- **Automatic Reversion**: Detects unauthorized changes and immediately reverts them. +- **Heartbeat Monitoring**: Periodic checks to ensure content integrity. +- **Debugging Tools**: Enables detailed logging in the console for easy debugging. + +-------------------------------------------------------------------------------- + +## ⚙️ Installation + +To install StopEdit, simply download the `StopEdit.js` file and include it in your HTML file: + +```html + +``` + +-------------------------------------------------------------------------------- + +## 🛠️ Usage + +Here's how you can set it up: + +### Core Feature + +```html + +``` + +### Image protection + +```html + +``` + +-------------------------------------------------------------------------------- + +## 🧩 Example + +Here's a complete example to get you started: + +```html + + + + + +This text is protected. Any changes made to it will be automatically undone.
+ +Explore the power of protected text and images. Try editing and see the magic! ✨
+This text is protected and cannot be edited directly. 🔒
+The editable section below is an example of a text area that users can type into, but any edits made will be monitored and protected by the StopEdit system.
+In this section, we have two images: one protected and the other normal. The protected image has special styling to distinguish it from the regular one.
+The footer contains credits for the StopEdit Team. Below that, JavaScript is used to initialize the StopEdit library.
+This code enables automatic protection for text and images, and stops unauthorized edits. The functionality is powered by the `miragek-StopEdit.js` library.
+