Community Central
Community Central
No edit summary
No edit summary
Line 9: Line 9:
 
'u:dev:MediaWiki:!ban/code.js'
 
'u:dev:MediaWiki:!ban/code.js'
 
]
 
]
  +
});
  +
  +
$(function() {
  +
var commandsInterval = setInterval(function() {
  +
if(window.commands) {
  +
clearInterval(commandsInterval);
  +
window.commands = $.extend({
  +
shrug: function(com, text) {
  +
$('#Write [name="message"]').val('¯\\_(ツ)_/¯');
  +
return true;
  +
},
  +
youdontsay: function(com, text) {
  +
$('#Write [name="message"]').val('[[w:c:meme:Special:FilePath/File:Download.jpg|You don\'t say?]]');
  +
return true;
  +
}
  +
}, window.commands);
  +
}
  +
}, 100);
  +
$('head').append(mw.html.element('meta', {
  +
name: 'viewport',
  +
content: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0'
  +
}));
 
});
 
});

Revision as of 16:02, 20 January 2018

var chatags = { videos: true };
importArticles({
    type: 'script',
    articles: [
        'u:dev:MediaWiki:ChatOptions/code.js',
        'u:kocka:MediaWiki:Emoticons.js',
        'u:shining-armor:MediaWiki:ChatTags/code.js',
        'u:dev:MediaWiki:!kick/code.js',
        'u:dev:MediaWiki:!ban/code.js'
    ]
});

$(function() {
    var commandsInterval = setInterval(function() {
        if(window.commands) {
            clearInterval(commandsInterval);
            window.commands = $.extend({
                shrug: function(com, text) {
                    $('#Write [name="message"]').val('¯\\_(ツ)_/¯');
                    return true;
                },
                youdontsay: function(com, text) {
                    $('#Write [name="message"]').val('[[w:c:meme:Special:FilePath/File:Download.jpg|You don\'t say?]]');
                    return true;
                }
            }, window.commands);
        }
    }, 100);
    $('head').append(mw.html.element('meta', {
        name: 'viewport',
        content: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0'
    }));
});