Skip to content

Add functionality that changes all text on an HTML page #37

@strdr4605

Description

@strdr4605

Would be nice to use this package as a 1st of April Joke. By using this package in any frontend library/framework build with npm.

A possible solution is to check if it is a frontend app and has HTML, them finding every text on the page and convert it to mockingcase!

Welcome for discussions on this topic! 😊

TO DO:

  • Pick a good name for the function
  • Implement the functionality that will change all text (after each DOM update)
  • Comment the function using jsdoc
  • Add unit test for the function
  • Add declaration of the function for Typescript, Declaration Files
  • Add usage and describe the function in README

Update:

Found a solution to select all nodes with text from a page.
https://stackoverflow.com/questions/2579666/getelementsbytagname-equivalent-for-textnodes#2579869

Update2:

related topic: https://stackoverflow.com/questions/3219758/detect-changes-in-the-dom

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions