MediaWiki:Gadget-Less.js

From Zeah RSPS - Wiki
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
window.lessOpts = window.lessOpts || [];

window.lessOpts.push( {
    target: 'MediaWiki:Common.css',
    source: 'MediaWiki:Common.less',
    load: [
        'MediaWiki:Common.css',
        'MediaWiki:Common.less'
    ]
},
{
    target: 'MediaWiki:Vector.css',
    source: 'MediaWiki:Vector.less',
    load: [
        'MediaWiki:Vector.css',
        'MediaWiki:Vector.less'
    ],
},
{
    target: 'MediaWiki:Gadget-toplinksDropdown.css',
    source: 'MediaWiki:Gadget-toplinksDropdown.less',
    load: [
        'MediaWiki:Gadget-toplinksDropdown.css',
        'MediaWiki:Gadget-toplinksDropdown.less'
    ],
},
{
    target: 'MediaWiki:Minerva.css',
    source: 'MediaWiki:Minerva.less',
    load: [
        'MediaWiki:Minerva.css',
        'MediaWiki:Minerva.less'
    ]
},
{
    target: 'MediaWiki:Test.css',
    source: 'MediaWiki:Test.less',
    load: [
        'MediaWiki:Test.css',
        'MediaWiki:Test.less'
    ]
},
{
    target: 'MediaWiki:Vector-darkmode.css',
    source: 'MediaWiki:Vector-darkmode.less',
    load: [
        'MediaWiki:Vector-darkmode.css',
        'MediaWiki:Vector-darkmode.less'
    ]
});

mw.loader.load( '//meta.weirdgloop.org/w/MediaWiki:Gadget-Less-core.js?action=raw&ctype=text/javascript' );