Skip to content

Instantly share code, notes, and snippets.

@bueltge
Last active May 17, 2018 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bueltge/1a5013d392c4fd864886ccddac5280dd to your computer and use it in GitHub Desktop.
Save bueltge/1a5013d392c4fd864886ccddac5280dd to your computer and use it in GitHub Desktop.
Tampermonkey script to restyle xDebug Output
// ==UserScript==
// @name xDebug Restyling
// @namespace localhost
// @version 0.1
// @description Restyling Xdebug output
// @author Frank Bueltge
// @match http://*localhost/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
// The styling rules, pure css.
// Example design is here: https://stackoverflow.com/questions/19405735/how-to-change-the-colors-of-xdebug-output
var style = '.xdebug-error{ color: #333; }';
var css = document.createElement("style");
css.type = "text/css";
css.innerHTML = style;
document.body.appendChild( css );
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment