Skip to content

Instantly share code, notes, and snippets.

@jdorrance
Created November 15, 2013 21:31
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 jdorrance/7491982 to your computer and use it in GitHub Desktop.
Save jdorrance/7491982 to your computer and use it in GitHub Desktop.
CQ5 bookmarklets
javascript:(function() { window.location.href = (window.location.protocol +"//" + window.location.host + "/crx/de/index.jsp"); })()
javascript:(function() {var DISABLED="wcmmode=disabled";var CONTENT_FINDER="/cf";var hash="";hash=window.location.hash;var createURL=function(e,t,n){var r=e;if(t.length!=0&&!(t.length==1&&t[0]=="")){r+="?"+t.join("&")}r+=n;return r};var parameters=[];if(window.location.search.substring(1)!=""){parameters=window.location.search.substring(1).split("&")}var path="";if(window.location.pathname=="/cf"){path=hash.substring(1,hash.length);if(path.split("?").length>0){path=path.split("?")[0];hash=""}}else{path=window.location.pathname}if(parameters.indexOf(DISABLED)==-1){parameters.push(DISABLED)}else{parameters.pop(DISABLED)}var url=createURL(path,parameters,hash);window.location=url})()
javascript:(function() { window.location.href = (window.location.protocol +"//" + window.location.host + "/system/console/configMgr"); })()
javascript:(function() { window.location.href = (window.location.protocol +"//" + window.location.host + "/crx/packmgr"); })()
javascript:(function() { var newPath = ""; if(window.location.pathname.indexOf("/cf") > -1){ newPath = window.location.hash.replace("#/content","/content"); }else{ newPath = window.location.pathname + window.location.hash; } newPath.replace(".html",""); window.location.href = (window.location.protocol +"//" + window.location.host + "/siteadmin#" + newPath); })()
javascript:(function() { var newPath = ""; if(window.location.pathname.indexOf("/cf") > -1){ newPath = window.location.hash.replace("#/content","/content"); }else{ newPath = window.location.pathname + window.location.hash; } newPath = newPath.replace(".html",""); window.location.href = (window.location.protocol +"//" + window.location.host + "/crx/de/index.jsp#/crx.default/jcr%3aroot" + newPath); })()
javascript:(function() { window.location.href = (window.location.protocol +"//" + window.location.host + "/siteadmin"); })()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment