Page 1 of 1

Moving element on sadistic.pl

Posted: Thu Nov 05, 2015 10:43 am
by Roninnin
Hello,

I'm new to adblock. On sadistic.pl I would like to move the "Ukryj komentarze ↑" href to the right by setting the style to [style="position: absolute; left: 800px;"]. The "Ukryj komentarze ↑" shows up instead of "Zobacz komentarze" when you click on it to show comments.

Example code
<div class="images_footer" id="lr385865">
<a href="#" onclick="return review(385865,14)">Zobacz komentarze (14) &darr;</a></div></div>

lr385865 - lr^ OR lr* because lr number changes
Zobacz komentarze (*) - number of comments

Please help :mrgreen:

Re: Moving element on sadistic.pl

Posted: Sat Nov 07, 2015 10:38 am
by Roninnin
Is it possible to create such filter?

Re: Moving element on sadistic.pl

Posted: Mon Nov 09, 2015 9:40 am
by mapx
you mean it's some issue with the current filters ? explain better, upload some pics eventually

Re: Moving element on sadistic.pl

Posted: Mon Nov 09, 2015 10:28 am
by Roninnin
No, I want to create custom filter. The website gets buggy because I have higher default font size.

Code: Select all

||sdstc.pl,sadistic.pl#$#div.images_footer { position: absolute; left: 800px; }
does not work

Image

Re: Moving element on sadistic.pl

Posted: Mon Nov 09, 2015 10:39 am
by mapx
you can't use || for the hiding filters
en/filters

Re: Moving element on sadistic.pl

Posted: Mon Nov 09, 2015 10:42 am
by Roninnin
I want to just move it by 800 pixels from the left. Is such CSS inject even possible with Adblock rules?

Re: Moving element on sadistic.pl

Posted: Mon Nov 09, 2015 10:43 am
by mapx
no, you need some css extension / addon (stylish, or userscript)

Re: Moving element on sadistic.pl

Posted: Mon Nov 09, 2015 10:45 am
by Roninnin
that's what I've been afraid of :( thanks for replies
Where can I read about functions syntax?

Re: Moving element on sadistic.pl

Posted: Mon Nov 09, 2015 11:05 am
by mapx
Roninnin wrote:Where can I read about functions syntax?
what do you mean ?

Re: Moving element on sadistic.pl

Posted: Mon Nov 09, 2015 11:19 am
by Roninnin
how to write functions to make them work with in adblock extensions. some examples

Re: Moving element on sadistic.pl

Posted: Mon Nov 09, 2015 11:21 am
by mapx
in the page linked above you can see how to write filters to work in ABP. For the functions in stylish / userscripts you have to know some javascript / css.

Re: Moving element on sadistic.pl

Posted: Mon Nov 09, 2015 11:34 am
by Roninnin
Ah, so adblock does not support functions too. Ok, thanks