Block Paragraph ?
Block Paragraph ?
Hello,
I have a the following html source:
<p>Text which should be readable. </p>
<p>Adsite: <a href="https://www.adsite.com/index.php/TheBook/">“The Book”</a> – Buy this book .</p>
Opening it in the Browser following appears:
Text which should be readable.
Adsite: “The Book” – Buy this book .
Now I would like to filter out the second line. The rule should be: If finding a paragraph containing the Word "Adsite", dont show the paragraph containing this word.
How could one realize this ?
Regards,
Peter
I have a the following html source:
<p>Text which should be readable. </p>
<p>Adsite: <a href="https://www.adsite.com/index.php/TheBook/">“The Book”</a> – Buy this book .</p>
Opening it in the Browser following appears:
Text which should be readable.
Adsite: “The Book” – Buy this book .
Now I would like to filter out the second line. The rule should be: If finding a paragraph containing the Word "Adsite", dont show the paragraph containing this word.
How could one realize this ?
Regards,
Peter
Re: Block Paragraph ?
try
based on site name
Code: Select all
##a[href*="adsite"]
Re: Block Paragraph ?
Unfortunately I didnt click on "Do not automatically parse URLs", so the source was not entirely visibile.
This is how it should look like:
Anyway, ##a[href*="adsite"] did not work.
Do You have another idea ?
Regards,
Peter
This is how it should look like:
Code: Select all
<p>Text which should be readable. </p>
<p>Adsite: <a href="https://www.ewrtw.com/index.php/TheBook/">“The Book”</a> – Buy this book .</p>
Do You have another idea ?
Regards,
Peter
Re: Block Paragraph ?
well, I already said, it's based on the ...name of the site (you can not use the text adsite)
use
or
use
Code: Select all
##a[href*="ewrtw.com"]
Code: Select all
##a[href*="/TheBook"]
Re: Block Paragraph ?
Thanks, but now only the Link disappears, I wanted to disappear the whole paragraph in which the link is embedded.
This is how it looks now:
Text which should be readable.
Adsite: – Buy this book .
So the last line shouldnt appear.
Regards,
Peter
ps: so one cannot filter by some text, only by links ?
This is how it looks now:
Text which should be readable.
Adsite: – Buy this book .
So the last line shouldnt appear.
Regards,
Peter
ps: so one cannot filter by some text, only by links ?
Re: Block Paragraph ?
you can filter using the css elements names (div, class, href, ..)
en/filters#elemhide
which is the website / page ?
en/filters#elemhide
which is the website / page ?
Re: Block Paragraph ?
Oh, it is a german site: http://www.lawblog.de/
If You search for the word "Werbeeinblendung" You find the line I want to disappear:
"Werbeeinblendung: “Alles, was Unrecht ist” – das Buch zum Blog. Jetzt im Buchladen oder als E-Book.
Bye,
Peter
If You search for the word "Werbeeinblendung" You find the line I want to disappear:
"Werbeeinblendung: “Alles, was Unrecht ist” – das Buch zum Blog. Jetzt im Buchladen oder als E-Book.
Bye,
Peter
Re: Block Paragraph ?
nothing to do using ABP
however is possible using/writing some userscript (inside greasemonkey or scriptish)
however is possible using/writing some userscript (inside greasemonkey or scriptish)
- Gingerbread Man
- Posts: 1339
- Joined: Fri Aug 12, 2011 5:28 am
Re: Block Paragraph ?
Is that line unique? I don't see it turning up more than once on the page. If it is indeed unique, you can hide it with this filter. Otherwise, please post links to pages where it shows up again.ptosch wrote:the line I want to disappear:
"Werbeeinblendung: “Alles, was Unrecht ist” – das Buch zum Blog. Jetzt im Buchladen oder als E-Book.
Code: Select all
lawblog.de###post-27589 p:nth-last-child(-n+2):not(:last-of-type)
https://developer.mozilla.org/en-US/doc ... /Selectors