Skip to content

Instantly share code, notes, and snippets.

@P233
Last active December 18, 2015 19:49
Show Gist options
  • Save P233/5835561 to your computer and use it in GitHub Desktop.
Save P233/5835561 to your computer and use it in GitHub Desktop.
Symphony CMS debug bookmarklet
javascript:(function() {
var link = location.toString();
if (link.slice(-6) != "?debug") {
location.href = link + "?debug";
} else {
location.href = link.substring(0,link.length-6);
}
})();
// minified
javascript:(function(){var%20e=location.toString();if(e.slice(-6)!="?debug"){location.href=e+"?debug"}else{location.href=e.substring(0,e.length-6)}})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment