Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alajfit/javascript-console-control
JavaScript Console Log Control by Query String
https://github.com/alajfit/javascript-console-control
Last synced: about 1 month ago
JSON representation
JavaScript Console Log Control by Query String
- Host: GitHub
- URL: https://github.com/alajfit/javascript-console-control
- Owner: alajfit
- Created: 2014-09-05T17:01:11.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-07T15:45:53.000Z (over 10 years ago)
- Last Synced: 2024-03-18T18:10:43.652Z (10 months ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
JavaScript Console Log control by Query String
================A JavaScript Snippet to be added just after the opening head tag.
## Aim
The aim of this project is to allow the hiding of console logs by entering a JS snippet to all pages of an App or Website.
This allows developers to add proper console log output witout worrying about users seeing the outout of errors.## Code
The JS is built in modular form and needs to be deployed just after the opening head tag of a page.
It is in modular form and can be deployed anywhere on the page but won't catch any logs shown before the code is deployed and this is the reasoning behind the code placement.## Outcome
I'm very happy with the outcome and as you can see the Tag Name can be anything the main reason was to keep the code tight and to allow the Tag name to be anything and the real controller is the tag Value. The tag value is set in the initial variable.
- Example Website URL
- http://www.test.com/home?a=cLCKind Regards
Alan J Fitzpatrick
Catch up with me at http://www.theartofhacks.com