Forum:How do i add js

From The Sims Wiki, a collaborative database for The Sims series
This is an old revision of this page, as edited by imported>Lost Labyrinth at 23:12, 31 August 2013. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Jump to navigation Jump to search
Forums: IndexHelp deskHow do i add js | Post


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 :(

Dealt with this on Chat. Lost Labyrinth (c)(b) 23:12, August 31, 2013 (UTC)