Browser Add-on

A browser add-on for chrome/IE/ff (installable download formats required, along with source code) that runs a regex on the current page (url and sourcemcode), looking for specific pasterns (regex patterns are to be loaded from a remote url periodically), when it matches any of these patterns, it displays a notification icon that matches are found (in the header to the left/right of the address bar would be fine, if no matches found display a different icon).

Should the user then click the button (whether the regex matches or not), a new window will open to a specified url (also loaded remotely along with the regex definitions) with the contents of the matching page’s source code and URL submitted in POST.

Background: It will be a tool for our in-house developers to easily detect and submit pages to a server-side tool that parses the page. This way they can be logged in to a forum, for example, and when a phrase is matched, they can simply click the button and have that entire page sent to the server for analysis, not just the URL.

here is an example:

User browses to www.myforum.com/showthread.php?t=199488 while logged in (private forum, for this example).
Plugin looks for a regex definition file, if expired or missing, loads a new one from api.developmentsite.com/regexlist.xml (containing an expiry date, url to submit to, and data pairs of [regex_syntax, regex_target] which describe what to look for and where to looks [url or sourcecode])
Now that it has definitions, it applies the regex to the source code of the page or url.
If matches are found, it changes the notification button to something active (color, animation, etc).
If the user clicks on the icon, it will copy the source code of the page and it’s URL/location into POST variables and submit this to the URL specified in the xml (example, api.developmentsite.com/fetch.php) in a new window.
If no matches are found, the button should still perform the same operation.

Leave a Reply

Your email address will not be published. Required fields are marked *