FANDOM


Whenever a change in emoticons triggers or emoticons file URLs in MediaWiki:Emoticons is done, you need to refresh chat for viewing its updated version. AjaxEmoticons allows you to get an updated version for the emoticons without refreshing chat.

Installation

Customize Emoticons Request Frequency

By default, your browser would request an updated version of MediaWiki:Emoticons every 30 seconds. In order to use another custom time, add the following line before the importScriptPage:

window.ajaxEmoticonsInterval = someNumber;

And instead of someNumber, insert a number that represents the time gap between each request (in milliseconds. e.g. 1000 equals 1 second).
On this example, the script is imported and the time gap between each update is 45 seconds:

window.ajaxEmoticonsInterval = 45000;
importArticles({
    type: 'script',
    articles: [
        'u:dev:MediaWiki:AjaxEmoticons/code.js',
    ]
});

Special thanks

Sources


Text above can be found here (edit)
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+