Skip to content

Instantly share code, notes, and snippets.

@groovecoder
Created July 8, 2012 00:57
Show Gist options
  • Save groovecoder/3068828 to your computer and use it in GitHub Desktop.
Save groovecoder/3068828 to your computer and use it in GitHub Desktop.
edit-to-developer-new.js
<script type="javascript">
/****** HACK *******
overwrite Deki.Plugin.Publish to go to developer-new edit for Editor.load
*/
var DPP = Deki.Plugin.Publish;
Deki.Plugin.Publish = function(param) {
if (param == 'Editor.load') {
var slug = window.location.pathname;
window.location = 'https://developer-new.mozilla.org/' + slug + '?action=edit';
} else {
DPP(param);
}
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment