Don't Starve вики
Advertisement
Don't Starve вики
2144
страницы

Замечание: Возможно, после публикации вам придётся очистить кэш своего браузера, чтобы увидеть изменения.

  • Firefox / Safari: Удерживая клавишу Shift, нажмите на панели инструментов Обновить либо нажмите Ctrl+F5 или Ctrl+R (⌘+R на Mac)
  • Google Chrome: Нажмите Ctrl+Shift+R (⌘+Shift+R на Mac)
  • Internet Explorer / Edge: Удерживая Ctrl, нажмите Обновить либо нажмите Ctrl+F5
  • Opera: Нажмите Ctrl+F5.
$(function(){
	$('.wds-tabber > * > .wds-tabs > .wds-tabs__tab').each(function(){
		$(this).click(function() {
			hash = $(this).text().trim();
			$('.wds-tabber').each(function(){
    			currentTab = $('> .wds-tabs__wrapper > .wds-tabs > .wds-tabs__tab:contains('+hash+')', $(this));
				if(currentTab.length){
    				indexOfTab = $(currentTab).parent().children('.wds-tabs__tab').toArray().indexOf(currentTab.toArray()[0]);
        			$('> .wds-tabs__wrapper > .wds-tabs > .wds-tabs__tab', this).each(function(){
        				$(this).removeClass('wds-is-current');
        			});
        			$(this).children('.wds-tab__content').each(function(){
            			$(this).removeClass('wds-is-current');
        			});
        			$($('> .wds-tabs__wrapper > .wds-tabs > .wds-tabs__tab', this)[indexOfTab]).addClass('wds-is-current');
        			$($(this).children('.wds-tab__content')[indexOfTab]).addClass('wds-is-current');
    			}
			});
		});
	});
});

var intervalCPH = setInterval(customph, 500)
function customph() {
    if ($(".CommentList_comment-list__SA8FA").length) {
        clearInterval(intervalCPH)
        commentSection = document.getElementsByClassName('CommentList_comment-list__SA8FA')
        commentSection[0].onclick = function(event) {
            if (event.target.classList.contains('FormEntryPoint_form-entry-point__E4Elr')) {
                var intervalCPH2 = setInterval(customph2, 200)

                function customph2() {

                    if ($(".rich-text-editor__content.is-desktop.is-empty").length) {
                        clearInterval(intervalCPH2)
                        $('.rich-text-editor__content.is-desktop.is-empty').attr('data-placeholder', 'Поделитесь своим мнением, но старайтесь не отвечать на сообщения старше 6 месяцев!')
                    }
                }
            }
        }
    }
}
Advertisement