/* BeejBløg */

Nov 10, 2015 - 1 minute read - Comments -

Chrome User Script – Whack page elements based on jQuery selectors

// ==UserScript==
// @name VipLeague.se AdBlock Hack
// @match https://www.vipleague.se/*
// ==/UserScript==

function addJQuery(callback) {
  var script = document.createElement("script");
  script.setAttribute("src", "https://code.jquery.com/jquery-2.1.4.min.js");
  script.addEventListener('load', function() {
    var script = document.createElement("script");
    script.textContent = "(" + callback.toString() + ")();";
    document.body.appendChild(script);
  }, false);
  document.body.appendChild(script);
}

function main() {
  $("span:contains('Adblock is enabled')").remove();
}

// load jQuery and execute the main function
addJQuery(main);

![enter image description here][2]

![enter image description here][3]

[2]: https://www.BeejBlog.com/wp-content/uploads/2015/11/Snap2.png “” [3]: https://www.BeejBlog.com/wp-content/uploads/2015/11/Snap4-1.png “”