Dev utility for toggling the current browser tab between CRXDE-lite (focused on the page's jcr:content) and the page in author mode.
- http://localhost:4502/content/sitename/newspages.html?wcmmode=disabled(&.*)
- http://localhost:4502/crx/de/index.jsp#/content/sitename/newspages/jcr%3Acontent(.*)
javascript:var jcrContent = escape("/jcr:content"), dloc = document.location.toString(), jcrPos = dloc.indexOf(jcrContent); document.location = (dloc.search(/\/crx\/de/) < 0 ? document.location.origin + "/crx/de/index.jsp#" + document.location.pathname.replace(".html", "") + jcrContent : (jcrPos < 0 ? dloc : dloc.substring(0, jcrPos)).replace("/crx/de/index.jsp#", "") + ".html?wcmmode=disabled")