Skip to content

Visual Tagger is a JavaScript tool that visually highlights HTML elements for AIs, aiding in identifying interactive components on web pages.

Notifications You must be signed in to change notification settings

calmstate/VisualTagger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Visual Tagger Logo

Visual Tagger for AI Interaction

Description

The Visual Tagger is a JavaScript script designed to provide visual guidance for artificial intelligences capable of image recognition. This code allows AIs to quickly identify which elements to interact with on a web page, facilitating the generation of JavaScript code to perform actions.

Functionality

The script applies visual tagging to HTML elements that have defined colors, providing a clear visual representation. Each tagged element is highlighted with a colored border, and a corresponding label is inserted above it, displaying its tag name, ID, and classes. This allows AIs to understand the page structure and interact with the elements effectively.

Chrome Extension

We now offer a Chrome Extension version of the Visual Tagger! This extension makes it even easier to inject the Visual Tagger into web pages with just one click.

Loading the Extension in Chrome

To load the Visual Tagger Chrome extension:

  1. Clone or download the repository to your local machine.
  2. Go to chrome://extensions in your Chrome browser.
  3. Enable Developer mode (toggle found in the upper-right corner).
  4. Click "Load unpacked" and select the folder containing the extension files.
  5. The Visual Tagger icon will appear in your extensions bar, ready to inject the visual tagging.

Now, simply click the icon to toggle the Visual Tagger on any page!

How to Use Without Extension

To use the Visual Tagger script directly:

  1. Open the web page where you want to run the Visual Tagger.

  2. Open the browser console (usually by pressing F12 or Ctrl + Shift + I).

  3. Paste the Visual Tagger code directly into the console and press Enter.

    • Make sure the code is accessible for copying and pasting.
  4. The Visual Tagger will execute, and the visual tagging will appear on the relevant elements of the page.

Note

This code is still experimental and may miss some elements. Contributions are welcome! If you have any ideas or improvements for the Visual Tagger, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.

About

Visual Tagger is a JavaScript tool that visually highlights HTML elements for AIs, aiding in identifying interactive components on web pages.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published