https://bugzilla.wikimedia.org/show_bug.cgi?id=68933

--- Comment #6 from Helder <he7...@gmail.com> ---
To help in the brainstorm: what about replacing the existing global.js pages by
something like this?
------------------------------------------------------------------
mw.loader.using( 'mediawiki.notify' )
.done( function(){
  mw.notify(
    $( '<p>' ).append(
      $( '<a>' ).attr( 'href', '//www.mediawiki.org/wiki/Extension:GlobalCssJs'
)
        .text( 'GlobalCssJs' ),
      ' will be deployed to WMF wikis in a few days, and your ',
      $( '<a>' ).attr( 'href',
'//meta.wikimedia.org/wiki/Special:MyPage/global.js' )
        .text( 'global.js' ),
      ' and ',
      $( '<a>' ).attr( 'href',
'//meta.wikimedia.org/wiki/Special:MyPage/global.css' )
        .text( 'global.css' ),
      ' pages will be loaded automatically from Meta-Wiki.'
    ),
    { autoHide: false, title: 'Update your scripts!' }
  );
} );

// Prevent scripts from being executed twice
if( ! window.loadedGlobalScript ){
  window.loadedGlobalScript = true;
  /* Existing user code */
}
------------------------------------------------------------------

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to