Moving element on sadistic.pl

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
Roninnin
Posts: 98
Joined: Thu Apr 09, 2015 11:14 am

Moving element on sadistic.pl

Post 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:
Roninnin
Posts: 98
Joined: Thu Apr 09, 2015 11:14 am

Re: Moving element on sadistic.pl

Post by Roninnin »

Is it possible to create such filter?
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Moving element on sadistic.pl

Post by mapx »

you mean it's some issue with the current filters ? explain better, upload some pics eventually
Roninnin
Posts: 98
Joined: Thu Apr 09, 2015 11:14 am

Re: Moving element on sadistic.pl

Post 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
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Moving element on sadistic.pl

Post by mapx »

you can't use || for the hiding filters
en/filters
Roninnin
Posts: 98
Joined: Thu Apr 09, 2015 11:14 am

Re: Moving element on sadistic.pl

Post by Roninnin »

I want to just move it by 800 pixels from the left. Is such CSS inject even possible with Adblock rules?
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Moving element on sadistic.pl

Post by mapx »

no, you need some css extension / addon (stylish, or userscript)
Roninnin
Posts: 98
Joined: Thu Apr 09, 2015 11:14 am

Re: Moving element on sadistic.pl

Post by Roninnin »

that's what I've been afraid of :( thanks for replies
Where can I read about functions syntax?
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Moving element on sadistic.pl

Post by mapx »

Roninnin wrote:Where can I read about functions syntax?
what do you mean ?
Roninnin
Posts: 98
Joined: Thu Apr 09, 2015 11:14 am

Re: Moving element on sadistic.pl

Post by Roninnin »

how to write functions to make them work with in adblock extensions. some examples
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Moving element on sadistic.pl

Post 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.
Roninnin
Posts: 98
Joined: Thu Apr 09, 2015 11:14 am

Re: Moving element on sadistic.pl

Post by Roninnin »

Ah, so adblock does not support functions too. Ok, thanks
Locked