GleasonK / HtmlAnalyzer

Lightweight chrome extension to alert when HTML of a visited site contains interesting comments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HtmlAnalyzer

Lightweight chrome extension to alert when HTML of a visited site contains interesting comments

Many websites hide interesting text in HTML comments or dev console logs, see NYT article on White House "A call for coders".

Instead of wondering how do people find this stuff I decided to make something to find this stuff.

I'm only just getting started, but I can promise one thing - the UI won't be pretty.

Samples

A call to dev's is hidden in the White House's HTML comments

White House website example Ref: WhiteHouse.gov

Medium hides a job link in their dev console logs

Medium job link in dev console Ref: Medium.com

Reddit also hides a job link in their dev console logs

Reddit job link in dev console Ref: Reddit.com

My personal page has a prize for 10x devs

KevinGleason.me dev console reward Ref: KevinGleason.me

Brainstorm:

  • (Done) Scan for HTML comments and try to write some rules to filter out interesting ones
  • (Done) redirect console.log to capture log output and find interesting console output
    • Todo: In order to get access to dev log, needs to inject code into DOM and overwrite the console.log function. Should be able to opt out of this. Use chrome.storage APIs.
  • Todo: Any way to notify on hidden forms or links on the page? Might be overkill, can imagine a lot of hidden items.

About

Lightweight chrome extension to alert when HTML of a visited site contains interesting comments

License:MIT License


Languages

Language:JavaScript 78.3%Language:HTML 21.7%