Coder Social home page Coder Social logo

garbletext's Introduction

GarbleText

JavaScript script to replace all alphanumeric text on a webpage with parallel garbled text

Required:
L> Web browser
L> Access to the webpage that you want to garble

Garbling text
(1) Navigate to the webpage that you want to garble the text of.
(2) Open your browser's JavaScript Console for that page.
(3) Paste in the text from garble.js and run it.

[see the JavaScript Console Help section of https://github.com/sliceofcake/TechnicalHelp]

Use case
I want to give a presentation in which I will be showing a screen capture of a webpage. I want to talk about the layout of the page, but the page has some potentially confidential text on it that I don't want my audience to see. I don't mind that they'll still be able to see letter-count for words or positioning of digits, I feel that it's good enough that the text is garbled while still retaining its general appearance. I'll run this script on the webpage that I want to show, then I'll take screencaps of the garbled webpage to include in my presentation.

Security Note
This script intentionally keeps the general structure of the text. For most cases, this is safe, and for most cases, this is what you want. However, you're more-or-less playing a game of Wheel of Fortune with your audience, as the pattern "A'a Aaaaa" could be reasonably back-converted to "I'm Ready", since there aren't that many combinations that could fit that description. If you had the result of a Yes/No vote on the webpage, it would be fairly obvious that the pattern "Aaa" was "Yes" and the pattern "Aa" was "No". For critically confidential text, you need to take more serious measures to protect the original text, at the cost of appearances.

Completeness Note
There are many ways of putting text on a webpage. You can include text through dynamically-generated images, the CSS "content" property, the HTML input "placeholder" property, and other ways. This script will address standard cases, and may not cover every case, for complexity reasons. Please always review the result of the garbling before using the garbled page further.

garbletext's People

Contributors

sliceofcake avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

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.