Skip to content

Instantly share code, notes, and snippets.

@Doff3n
Created April 27, 2015 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Doff3n/5fb8d09bdc2d6869e5af to your computer and use it in GitHub Desktop.
Save Doff3n/5fb8d09bdc2d6869e5af to your computer and use it in GitHub Desktop.
WCMMode bookmarklet toggle for AEM 6.0
javascript:(function() { document.location = (document.location.href.search(/[?&]wcmmode=disabled/) < 0 ? document.location.href + (document.location.href.indexOf('?') < 0 ? '?' : (document.location.href.search(/\?./) < 0 ? '' : '&')) + 'wcmmode=disabled' : document.location.toString().replace(/wcmmode=disabled&?/, '')).replace(/[?&]$/, '');if(window.location.href.indexOf("cf#") > -1){location.reload();}})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment