A simple console overlay for your browser.
Usefull when you want to see the logs in a mobile browser while you are developping.
Or if you don't want to open the full-fledged console to display rare occurence of logs.
- Display console Log, Error, Warn, Debug, Info messages
- Display Fetch and XMLHttpRequest request
- Display upload progress for XMLHttpRequest
- Customization
- Position
- Size
- Auto-clear of old message
- Show stack-trace on error
- More infos on web-request
Just insert this in your html, and it's done !
<script src="https://sylrelo.github.io/js-console-overlay/dist/js-console-overlay.min.js"></script>
(You can also manually download js-console-overlay.min.js and serve it yourself, obviously)
You can set some options :
<script>
// Those are the default value, you can set only the one you're interested with.
overlayConsole.setOptions({
// Max displayed messages
maxMessage: 100,
// Auto-hide delay in seconds
autohideDelay: 10,
// Position of the container
// Possible values : BOTTOM-LEFT, BOTTOM-RIGHT, TOP-LEFT, TOP-RIGHT
position: "BOTTOM-LEFT",
// Left/Right margin in px
offsetX: 20,
// Top/Bottom margin in px
offsetY: 40,
// Max container height in px
maxHeight: 200,
// Max container width in px
// 0 is equal to (100vw - offsetX)
maxWidth: 0,
// Opacity of messages (0.0 - 1.0)
opacity: 0.8
})
</script>
A bookmarklet and userscript version will be made available.