-1

It's a JQuery code that I'm using for GreaseMonkey. This is my script:

// ==UserScript==
// @name        Delete test
// @namespace   nope
// @description hi der
// @include     *.*
// @version     1
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @grant       none

// JQUERY 
[insert jquery.min.js here]
// JQUERY 

var item = $(':contains(ANCHORFREE_VERSION=)');
$item.empty();
// ==/UserScript==

I have no idea why it's not working.

EDIT: I'm trying to remove all scripts that contain that text.

Aarone2004
  • 13
  • 2

1 Answers1

0

You are referring to wrong variable:

var item = $(':contains(ANCHORFREE_VERSION=)');
item.empty(); // <----should be item instead of $item.
Jai
  • 74,255
  • 12
  • 74
  • 103