Forum:How do i add js

From The Sims Wiki, a collaborative database for The Sims series
This is the current revision of this page, as edited by imported>LiRBot at 17:37, 13 June 2019 (→‎top: Archiving help desk thread). The present address (URL) is a permanent link to this version.
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The Help Desk has moved
The Help Desk forum has been closed, and a new Help Desk has been opened at The Sims Wiki:Help desk. Please refer all questions and requests for assistance to that page instead of the Help Desk forum.
This page is being kept for archival purposes. Please do not edit the contents of this page.
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)