Git Product home page Git Product logo

div-highlighter's Introduction

Website div highlighter

Highlight every div on your website in a unique color. ๐Ÿ“•๐Ÿ“™๐Ÿ“’๐Ÿ“—๐Ÿ“˜

This was created in an effort to simplify web development, by highlighting every div. ๐Ÿ’ป

โ“ How to implement it?

For Google Chrome:

  1. Download the chrome-plugin.zip
  2. Open chrome://extensions/
  3. Enable 'Developer Mode'.
  4. Drag and drop chrome-plugin.zip to chrome://extensions/
  5. Open your website. eg. this example
  6. Click on the extension to highlight divs! Highlight elements
  7. Click on the extension again to restore div colours. Restore elements

For other browsers:

  1. Open your website. eg. this example
  2. Copy, paste and run the code in your browser javascript scratchpad.
main(); // To run the plugin

or

main(false); // To restore elements

๐Ÿ”ผ Features in development.

  • Prototype code to add color to every div. โœ”๏ธ
  • Function to revert div colors. โœ”๏ธ
  • Google Chrome browser extension as .zip. โœ”๏ธ
  • Add user interface indicating when extension is active or inactive. โœ”๏ธ
  • Add feature: Restore div elements to their original colours instead of clearing.
  • Add feature: Keyboard shortcuts to toggle extension for Windows and MacOS.
  • Public listing of Google Chrome browser extension.
  • Custom features to Google Chrome browser extension.

โ“ What is a javascript scratchpad?

Good question,

A clearer example of how to implement this in Google Chrome:

  1. Open your website. eg. this example

  2. View page source: Right click anywhere > Inspect

  3. In the Inspect menu, go to: 'Sources' tab > 'Snippets' tab > + New snippet >

  4. Paste the .js code into the snippet.

  5. Save the snippet: eg. On Windows: CTRL + S. On macOS: Command + S.

  6. Run the code: eg. On Windows: Ctrl + Enter. On macOS: Command + Enter.

Every div on the website will change to a transparent color with a clear border. ๐ŸŒˆ

In development as of 14th December, 2022.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.