Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Nerf removal!
- // @namespace
- // @version 0.1
- // @description QQ moar!
- // @match http://us.battle.net/hearthstone/en/forum/*
- // ==/UserScript==
- function addJQuery(callback) {
- var script = document.createElement("script");
- script.setAttribute("src", "//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js");
- script.addEventListener('load', function() {
- var script = document.createElement("script");
- script.textContent = "window.jQ=jQuery.noConflict(true);(" + callback.toString() + ")();";
- document.body.appendChild(script);
- }, false);
- document.body.appendChild(script);
- }
- function main(){
- jQuery.expr[":"].containsi = jQuery.expr.createPseudo(function(arg) {
- return function( elem ) {
- return jQuery(elem).text().toUpperCase().indexOf(arg.toUpperCase()) >= 0;
- };
- });
- $(document).ready(function() {
- $('span[itemprop="headline"]:containsi("nerf")').each(function() {
- $(this).parent().parent().parent().remove();
- });
- });
- }
- // load jQuery and execute the main function
- addJQuery(main);
RAW Paste Data