This allows you to send message from your server via headers to the dhtmlconsole developer panel

Latest Version

Version
0.4
Update
January 19, 2016
Size
357KiB
Developer
www.africoders.com
Category
Users
240
Rating
4 ★
Manifest Version
2
Web Store Status
Languages Support
English
See more
Permissions
Tabs
Http://*/*
Https://*/*
See more

DHTMLConsole Extension

This plugin allows you to send a message from your web server (directly by running a server script or making an ajax call) to your browser by using an HTTP Header.

The only rule is that you need to send custom HTTP headers from your server with the name of the header starting with X-DHTML-CONSOLE.

To send a message from a PHP script to the browser, this implementation will suffice:

header('X-DHTML-CONSOLE-MSG: Hello World');
?>

As of version 0.3, you can now do javaScript alerts
header('X-DHTML-CONSOLE-MSG: alert:Hello World');
?>


As of version 0.3, you can clear the console from server by:
header('X-DHTML-CONSOLE-MSG: -clear-');
?>


To send multiple messages in PHP:

function dhtmlconsole($msg='') {
static $pos=0;
$pos++;
header('X-DHTML-CONSOLE-MSG'.$pos.': '.$msg);
}

//implementation
dhtmlconsole(\"Hello\");
dhtmlconsole(\"World\");
?>
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "DHTMLConsole", "version": "0.4", "description": "This allows you to send message from your server via headers to the dhtmlconsole developer panel", "devtools_page": "devtools.html", "manifest_version": 2, "icons": { "16": "icon16.png", "48": "icon48.png", "128": "icon128.png" }, "background": { "scripts": ["background.js"] }, "browser_action": { "default_icon": "icon16.png", "default_title": "DHTMLConsole" }, "permissions": ["tabs", "http://*/*", "https://*/*" ], "content_security_policy": "script-src 'self' https://ssl.google-analytics.com; object-src 'self'"}
Read more

Similar Extensions

icon

Lavaca Developer Tools Extension · Developer Tools 240 0 ★ 10.42MiB

icon

Atma.js DevTool Extension · Developer Tools 240 0 ★ 201KiB

icon

console.sparkline Extension · Developer Tools 240 1 ★ 4.7KiB

icon

captureCalls Extension · Developer Tools 240 1 ★ 9.63KiB

icon

HTML5 Debugger Extension · Developer Tools 240 1 ★ 9.01KiB

icon

Github Annotator Extension · Developer Tools 240 2 ★ 81.68KiB

icon

PHP shell Extension · Developer Tools 240 19 ★ 12.46KiB

icon

PHP Write Run Extension · Developer Tools 240 9 ★ 218KiB

icon

github-php-function-jumper Extension · Developer Tools 240 2 ★ 11.38MiB

icon

LiveScriptConsole Extension · Developer Tools 240 2 ★ 388KiB

icon

DevTools Classes & Atributes panel Extension · Developer Tools 240 4 ★ 12.75KiB

icon

Ohana Developer Console Extension · Developer Tools 240 2 ★ 174KiB

icon

Developer URL bar Extension · Developer Tools 240 2 ★ 41.03KiB

icon

rawkit Extension · Developer Tools 240 0 ★ 88.13KiB

icon

GitHub submodule links Extension · Developer Tools 240 2 ★ 17.49KiB

icon

Check for .git directory existence Extension · Developer Tools 240 0 ★ 49.98KiB

icon

OctoPermalinker Extension · Developer Tools 240 1 ★ 373KiB

icon

Console Injector Extension · Developer Tools 240 12 ★ 20.4KiB

icon

PHP Error Alert Extension · Developer Tools 240 11 ★ 57.31KiB

icon

DOM-JSON Tree Matcher Extension · Developer Tools 240 0 ★ 18.58KiB

icon

Scripter debugger extension Extension · Developer Tools 240 2 ★ 1.04MiB

icon

DOM to JSON Selector Extension · Developer Tools 240 0 ★ 48.55KiB

icon

Developer pages Extension · Developer Tools 240 5 ★ 7.09KiB

icon

Not my department Extension · Developer Tools 240 1 ★ 1.44MiB

User reviews

icon

Роман (ID: 0000003be1a4e834) Voted 1 ★ - Updated 01/22/2023 it doesn't work anymore. console tab not showing up

icon

Magno Alberto (ID: 0000005b163280f6) Voted 5 ★ - Updated 12/18/2020 Exactly what I was looking for. Thanks!!!!

icon

Jose Cruz (ID: 0000000c3a8630c7) Voted 5 ★ - Updated 01/10/2018 Exactly what I was looking for. The ability to send php messages to the console like with javascript for testing. Thanks!

icon

Anthony ogundipe (ID: 000000d290a4eeb2) Voted 5 ★ - Updated 01/20/2016 Works fine on my pc