Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// ==UserScript==
// @name iRacing adblock
// @namespace
// @version 1.0
// @description Disable advertising in the background on the iRacing member site.
// @match*
// @require
// @grant none
// ==/UserScript==
(function($) {
'use strict';
function removeAds($) {
// dont run on pop-ups i.e. results window
if ($('#main_popup').length == 0) {
// remove the ads from the background
$('body').attr("style", "background: black");
// removes the things that you can click on
// run now
// run again when page is ready
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment