Am 18.06.2013 18:42, schrieb Todd Guill:
Hi -
I am trying to write a script to remove two child divs of a labeled div.
The children have iFrame content within them and I would just like to
remove the entire first two divs and all their content.
Full output on one of the pages. I've pasted it to pastebin.
http://pastebin.com/s50tM8iU
Lines 401-464 are what I'm trying to remove and only leave line 465.
Thanks!
Here is what I have started with
// ==UserScript==
// @name Remove Annoying Divs
// @namespace http://perludus.com/
// @description Remove Annoying Divs - remove the giant banner row that is the
same on every page.
// @include http://www.therpf.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
// @grant none
// ==/UserScript==
$('.body_wrapper div:nth-child(1)').remove();
Hi,
as you are obviously removing the same element on every page, an ad
blocker like AdBlock Plus (ABP) is probably the better choice here.
Together with "Element Hiding Helper" you should be able to generate the
rule to hide anything you want to.
Chris
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/groups/opt_out.