Skip to content

Instantly share code, notes, and snippets.

@jonom
Created October 14, 2016 18:39
Show Gist options
  • Save jonom/c38ebc5d7159914101765babe3adab86 to your computer and use it in GitHub Desktop.
Save jonom/c38ebc5d7159914101765babe3adab86 to your computer and use it in GitHub Desktop.
SilverStripe developer bookmarklets
<h3>Drag these links in to a folder on your bookmarks bar for easy access</h3>
<p>
<a href="javascript:void(function(){popDestination = (baseTag = document.getElementsByTagName('base')[0]) ? baseTag.getAttribute('href') + 'dev/' : window.location.protocol + '//' + window.location.host + '/dev/'; window.open(popDestination);})();">
SS:Dev</a><br />
<a href="javascript:void(function(){popDestination = (baseTag = document.getElementsByTagName('base')[0]) ? baseTag.getAttribute('href') + 'dev/build/?flush=all' : window.location.protocol + '//' + window.location.host + '/dev/build/?flush=all'; window.open(popDestination);})();">
SS:Build</a><br />
<a href="javascript:void(function(){popDestination = (baseTag = document.getElementsByTagName('base')[0]) ? baseTag.getAttribute('href') + 'admin/' : window.location.protocol + '//' + window.location.host + '/admin/'; window.open(popDestination);})();">
SS:CMS</a><br />
<a href="javascript:window.location.search = 'flush=all'">
SS:Flush</a><br />
<a href="javascript:window.location.search = 'isDev=1'">
SS:Dev Mode</a><br />
<a href="javascript:void(function(){var str = window.location.href; window.location.href = str.replace(/_resampled\/.*\//, '');})();">
SS:Get original image</a>
</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment