Forum:How do i add js
This page is being kept for archival purposes. Please do not edit the contents of this page.
i see js some place and i want to add it but i dont know how
here is js i want to add
$.getJSON('/index.php?action=ajax&rs=ChatAjax&method=getListOfBlockedPrivate', function(response) { $('head').append('<style type="text/css" id="ignoredUsers">li[data-user="'+response.blockedChatUsers.join('"], li[data-user="')+'"] {display:none;} #Rail li[data-user] {display:list-item !important;}</style>'); })
NodeChatController.prototype.blockAllowPrivateAjax = function (name, dir, callback) { $.ajax({ type: 'POST', url: wgScript + '?action=ajax&rs=ChatAjax&method=blockOrBanChat', data: { userToBan : name, dir: dir }, success: function(data, textStatus, jqXHR) { if(typeof callback == 'function') {callback(data, textStatus, jqXHR);} $.getJSON('/index.php?action=ajax&rs=ChatAjax&method=getListOfBlockedPrivate', function(response) { $('#ignoredUsers').html('li[data-user="'+response.blockedChatUsers.join('"], li[data-user="')+'"] {display:none;} #Rail li[data-user] {display:list-item !important;}'); }) } }); }
i ask in chat but nobody choose to help me :(