Hypothetical Hurricanes Wiki

Welcome to the wiki! Learn more about it here.

Disclaimer: The content on this wiki is fictional and NOT a resource for real tropical cyclones. NONE of this wiki's content should be taken as a real indication of inclement weather.

READ MORE

Hypothetical Hurricanes Wiki
Advertisement
Hypothetical Hurricanes Wiki

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.
/** <pre>
 * This file loads for every user the wiki chat.
 * For skin specific variants see [[MediaWiki:Chat.css]]
 * for oasis respectively
 *
 * Please test any changes made to this file.
 * Jshint <http://www.jshint.com> can catch syntax errors to help testing.
 * Alternatively, Wikia's code editor has jshint embedded to make life extra simple.
 *
 */

window.chatags = { images: true, videos: true };

window.chatAnnouncementsAll = true;
window.chatAnnouncementsAnonymous = true;

importArticles({
    type: 'script',
    articles: [
        // ...
        'MediaWiki:Chat.js/inline.js',
        'MediaWiki:Chat.js/multiPM.js',
        'MediaWiki:Chat.js/multiKick.js',        
        'u:dev:MediaWiki:ChatAnnouncements/code.js',
        'u:dev:MediaWiki:ChatHacks.js',
        'u:dev:MediaWiki:ChatOptions/code.js',
        'u:dev:MediaWiki:ChatTags.js',
        'u:dev:MediaWiki:IsTyping/code.js',
        'u:shining-armor:MediaWiki:ChatTags/code.js',
        // ...
    ]
}, {
    type: 'style',
    article: 'MediaWiki:ChatResizeEmoticons.css'
});
/*
	auto refresh emoticons and css
	all credit goes to Penguin-Pal
*/
$(function() {
    var gap = 30,
        css = $('<style style="text/css" />');
    $(css).appendTo('head');

    function request() {
        $.getJSON('/api.php?action=query&format=json&prop=revisions&titles=MediaWiki:Emoticons|MediaWiki:ChatResizeEmoticons.css&rvprop=content&cb=' + new Date().getTime(), function(data) {
            var a = data.query.pages;
            for (var pageid in a) {
                if (a[pageid].title === 'MediaWiki:ChatResizeEmoticons.css') {
                    $(css).text(a[pageid].revisions[0]['*']);
                } else if (a[pageid].title === 'MediaWiki:Emoticons') {
                    updateEmoticons(a[pageid].revisions[0]['*']);
                }
            }
        });
    }

	function updateEmoticons(newEmoticons) {
		mw.config.set('wgChatEmoticons', newEmoticons);
		ChatView.prototype.emoticonMapping = new EmoticonMapping();
		ChatView.prototype.emoticonMapping.loadFromWikiText(newEmoticons);
	}
	// make first request when joining the room
	request();
	// request again every every 'gap' seconds
	setInterval(request, gap * 1000);
});

/* Start Custom Chat Stars */

$('#ChatHeader .User').attr('data-user', wgUserName.replace(' ', '_').replace(/["']/g, ''));
var userBadges = function() {
        'use strict';
        $('.User').each(function() {
            $(this).removeClass('chatmoderator');
            if ($(this).attr('data-user').match(/(Farm River|Hypercane|Money Hurricane|StrawberryMaster)/)) {
                $(this).addClass('bureaucrat');
            }
            if ($(this).attr('data-user').match(/(Cooper7579|Roy25|TropicalStormChapsteck)/)) {
                 $(this).addClass('admin');
            }
            if ($(this).attr('data-user').match(/(KingLucarius|WeatherWill)/)) {
                $(this).addClass('junioradmin');
            }
            if ($(this).attr('data-user').match(/(GiedriusforCat5)/)) {
                $(this).addClass('rollback');
            }
            if ($(this).attr('data-user').match(/(Funnycomixking 2019|Sandy156|Sassmaster15)/)) {
                $(this).addClass('moderator');
            }
            if ($(this).attr('data-user').match(/Sjmaven1993/)) {
                $(this).addClass('founder');
            }
            /*if ($(this).attr('data-user').match(/Example/)) {
                $(this).addClass('codeeditor');
            }*/
            if ($(this).attr('data-user').match(/(CycloneMC|GloriouslyBlonde|HurricaneLucas4064|LckyTUBA|MasterGarf)/)) {
                $(this).addClass('autopatrol');
            }
            if ($(this).attr('data-user').match(/(Baron Kobe|ChapDurianBot|Hypercane Bot|Money Bot|PassionFruitMaster)/)) {
                $(this).addClass('bot');
            }
        });
    },
    wikiList = $('#PrivateChatList')[0],
    privateList = $('#WikiChatList')[0],
    userBadgesMO = new MutationObserver(userBadges);
window.onload = userBadges();
userBadgesMO.observe(wikiList, {childList: true});
userBadgesMO.observe(privateList, {childList: true});

/* End Custom Chat Stars */
Advertisement