Created
April 27, 2015 14:32
-
-
Save Doff3n/5fb8d09bdc2d6869e5af to your computer and use it in GitHub Desktop.
WCMMode bookmarklet toggle for AEM 6.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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