On 2015-01-27 17:12, 'Ben Stover' via greasemonkey-users wrote:
An online news magazine uses the online print service "printfriendly.com" to 
let users print their news articles (into pdf).

Therefore they pass the articles to them and the user can print them out.

Unfortunately a big, fat, useless pictures is nearly always placed in the 
article.
I want to get rid of it including the caption text below the picture and the 
frame around it.

See attached snapshot as an example.

How do I code the approriate statement in an GM script?

I tried so far but without success:

GM_addStyle("div.wp-caption div.alignleft div.pf-caption { display: none !important; 
}");

GM_addStyle(".wp-caption .alignleft .pf-caption { display: none !important; }");

BTW: "Remove Images" option removes only image without caption and without 
frame. So its crap and I need GM.
// ==UserScript==
...
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js
// ==/UserScript==

jQuery("div.entry-content > div.wp-caption").empty();

PS. A clickable URL would be helpful when you post a sample. Fortunately this one was easy enough to find from the screenshot :)

--
Klaus Johannes Rusch
[email protected]
http://klausrusch.atmedia.net/

--
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/d/optout.

Reply via email to