Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Sep 13th, 2012  |  syntax: None  |  size: 0.99 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.   <script type="javascript">
  2. /****** HACK *******
  3. overwrite Deki.Plugin.Publish to go to developer-new edit for Editor.load                                                              
  4. */                                                                                                                                      
  5.  
  6.   var DPP = Deki.Plugin.Publish;
  7.   Deki.Plugin.Publish = function(param) {                                                                                              
  8.     if (param == 'Editor.load') {
  9.       var slug = window.location.pathname;
  10.       window.location = 'https://developer-new.mozilla.org/' + slug + '?action=edit';                                                  
  11.     } else {
  12.       DPP(param);                                                                                                                      
  13.     }                                                                                                                                  
  14.   };
  15.   </script>