[AdHunter] Rules & Syntax


R3gi

Recommended Posts

Hi,

I need your help with the AdHunter rules.

I've read this post about rules for AdHunter,

but I can't find out all options / rules syntax.

For example:

!

###Advertisement

##a

~renren.com##

http://techcrunch.com/advertise/*

*/ad/*

*.bbelements.com/*

....etc

What is the meaning of all these symbols (*;##;###;~;^;@@|;@@@|;...) and what about their usage?

For example,

I need to build rule for the background image on http://www.alza.cz/.

The whole string is

id="pagebl" style="background-image: url(http://img.alza.cz/Foto/ImgGalery/bannery/1079_2507_1.png); background-position: -150px 0px;">Also, some rules stopped working on some pages - even here, on Maxthon forum (these share icons over my post), gmail,... -eg rule ##div here here even if at the source page is this tag presented as a proper tag of the element (- social links at the left side of the page).

Thanks for any help,!

Link to comment
Share on other sites

##div works for me on the site mentioned. Make sure it's written exactly. Adhunter rules work like the basic Adblock Plus rules. Tutorial found here: https://adblockplus.org/en/filters#basic. Some of the more complicated rules don't work in Maxthon (and for whatever reason Maxthon refuses to cooperate to get an extension made) but the basics are the same. As for the background ad/image on the page mentioned, some sites make sure their garbage is deeply woven into the html, forcing you to get creative. This rule: ##div,div{height:1px;margin-top:-12px} will get rid of that background image, and you can style the next div to your liking. BTW two hash-tags (##) just tell the browser to render it first, overriding any other css.

Link to comment
Share on other sites

I took a second look at it and came up with another (I think better) solution. ##html{zoom:1.328;overflow-x:hidden} (if you use Maxthon sidebar). ##html{zoom:1.378;overflow-x:hidden} (if you don't use Maxthon sidebar). This will simply make the actual content fill the page and hide the ads on either side.

Link to comment
Share on other sites

Thanks for the reply and thanks for the guide! It seems that my AdHunter is broken - it blocks only some elements (but rules are OK - they work on other PCs). So I have to reinstall Maxthon, I hope it will help.

I have one more question - is there some option, which can show me what elements are blocked on current page? There is AdHunter Log, but it doesn't display all elements, which are blocked.

Link to comment
Share on other sites

Unfortunatelly, clean upgrade to v4.4.1.600 doesn't solved the problem.

Here is my adhunter list of global rules:

##.reklama_square

##.reklama_square div

##.reklama_square table

##a

##a

##a

##a

##a

##a

##a

##a

##a

##a

##a

##a

##a

##a

##a

##a

##a

##a

##a

##article

##aside

##aside

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

http://hraotruny.eu/*##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##embed

##footer

##h3

##html

##iframe

##iframe

##iframe

##iframe

##iframe

##iframe

##inframe

##inframe

##inframe

##inframe

##inframe

##inframe

##ins

##ins

##li

##li

##li

##li

##li

##li

##li

##li

##li

##p

##p

##p

##p

##p

##script

##script

##section

##section

##section

##small

##span

##span

##span

##span

##span

##span

##span

##span

##span

##span

##span

##span

##span

##span

##span

##table

##table

##table

##table

##table

##table

##table

##td

##td

##td

##td

##td

##tr

##tr

##ul

##ul

##ul

##ul

##ul

##ul

##ul

##ul

##ul

##ul

##ul

##ul

*.adnxs.com/*

*.adocean.pl/*

*.advantage.as/*

*.bbelements.com/*

*/ad/*

*/ads/*

*/advert.js/*

*/advert/*

*/banner/*

*/bannery/*

*/reklama/*

*/reklamy/*

JenNekde##header

ads2.czc.cz/*

http://ads2.opensubtitles.org/*

http://affiliates.everymatrix.com/processing/*

http://banners.onebit.cz/?bid=*

http://c.imedia.cz/*

http://cz.static.planet49.com/*

http://ds.serving-sys.com/*

background-bw.jpg

http://googleads.g.doubleclick.net/pagead/*

http://img.alza.cz/Foto/ImgGalery/bannery/.

http://img5.uloz.to/ul3/images/*.jpg

http://kampane.svetandroida.cz/www/images/*.jpg

http://mfad1.advantage.as/*

http://openads.aira.cz/www/images/*

http://pagead2.googlesyndication.com/pagead/*

http://raketa.cz/idnesbanner?type=970&kategoria=2

http://s0.2mdn.net/*

http://s1.adform.net/banners/scripts/unload/*

http://s3.buysellads.com/*

http://static.opensubtitles.org/gfx/banners_campaigns/*

http://system.adoptio.cz/www/images/*

http://techcrunch.com/advertise/*

http://toplist.cz/*

utiskare.png

http://vydelek-emailem.cz/*.gif

http://www.elity.net/videoad/*

http://www.facebook.com/plugins/*

http://www.opensubtitles.org/gfx/banners/*.gif

http://www.sponsorads.de/*

http://www.usemax.de/*

http://www.worldometers.info/L300L.html

http://www.worldometers.info/L300R.html

shop-banner.gif

*googlesyndication* https://r14---sn-p5qlsne7.googlevideo.com/videoplayback?* *.2mdn.net *&ad_preroll=1* *rmktPingThreshold=0* https://s.ytimg.com/yts/swfbin/*/iv_module.swf *.*doubleclick.net/* *watch_as3.swf*$domain=youtube.com https://*.*.fwmrm.net/ad/* https://s.ytimg.com/yts/jsbin/www-feather-ads-*.js

div{height:1px;margin-top:-12px}

~jenpromuze.cz@@|div

*.alza.cz/*##html{zoom:1.378;overflow-x:hidden}You can test it here (share icons should be hidden) an also, as you can see, the rule ##div, which should work here, doesn't work...

QI0Gn.png

I don't know why...Maybe it's a bug.

Link to comment
Share on other sites

Just checked the 'node-social' rule above and it worked fine. So there does seem to be some issue with your install.

Does your AdHunter log show that elements are being blocked? If not, then something has caused it to stop working.

Maybe some other rule is overruling that one?

Link to comment
Share on other sites

Line 140 is incorrect syntax which causes the browser to stop reading the list at that point. I'm fairly sure line 322 is incorrect or at the very least unnecessary. Rules for a specific domain can be placed in that domain's particular adhunter section (every website can have it's own rules). If you wanted to do it the other way just specify the domain: hraotruny.eu##div . I don't think wildcards (*) are allowed (in url's) or are necessary in those particular types of rules. Rule 589 looks broken to me. If it's site specific it should have a .com, .net , .org or something. 590 looks like it's missing a beginning or a wildcard. I don't think 597, 613, 622 are correct (and) before and after shouldn't be necessary and will probably break the rest of the list. I don't see how 623 or 625 could possibly be correct. Replacing ~jenpromuze.cz@@|div with ~jenpromuze.cz##div will block that element everywhere but jenpromuze.cz if that's what you're looking to do, jenpromuze.cz##div will do the opposite (I can't tell what's going on with 623). For the rule I gave you: go to alza.cz, click on adhunter rules, select alza.cz and paste this rule: ##html{zoom:1.378;overflow-x:hidden}. Check the list again for anything I missed. Any missing bracket or quote or incorrect rule breaks the list. FYI really broad rules like ##div or

##div will break a lot of features on sites that have nothing to do with ads or social-media. Have you tried using a hosts file for ads? I have one that works like a charm. If you're interested, let me know.

Link to comment
Share on other sites

Oh, you are right, the list was broken because of that bugs! Thank you very much, 30299131 :-) And also thanks 7twenty for the comment :-)

I didn't know, that the browser will skip a possibly broken line - my fault. Now, when I know more about how it's working, it will be much easier :-D

When talking about adblocking through hosts file - I am using it only on my Android device (it works fine) - I have to confess that I've never tried it on Windows PC...I thought that it blocks only ads servers, not a single elements? I have to find out some more info about it - I suppose it can speed up the browsing, especially if I could use these rules directly on my router, am I right? ;-) Maybe someone would like to test it too, could you please link the file here?

Link to comment
Share on other sites

Sure! :-) I've made some changes...!this rule will resize the page. alza.cz##html{zoom:1.378;overflow-x:hidden}

##.reklama_square

##.reklama_square div

##.reklama_square table

##a

##a

##a

##a

##a

##a

##a

##a

##a

##a

##a

##a

##a

##a

##a

##a

##a

##a

##article

##aside

##aside

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##div

##embed

##footer

##h3

##iframe

##iframe

##iframe

##iframe

##iframe

##iframe

##inframe

##inframe

##inframe

##inframe

##inframe

##inframe

##ins

##ins

##li

##li

##li

##li

##li

##li

##li

##li

##li

##p

##p

##p

##p

##p

##script

##script

##section

##section

##section

##section

##small

##span

##span

##span

##span

##span

##span

##span

##span

##span

##span

##span

##span

##span

##span

##span

##table

##table

##table

##table

##table

##table

##table

##td

##td

##td

##td

##td

##td

##tr

##tr

##ul

##ul

##ul

##ul

##ul

##ul

##ul

##ul

##ul

##ul

##ul

##ul

##{background-image: url(*.adocean.pl/*) !important;}

*.adnxs.com/*

*.advantage.as/*

*.bbelements.com/*

*/ad/*

*/ads.js

*/ads/*

*/ads2.czc.cz/*

*/advert.js/*

*/advert/*

*/banner/*

*/bannery/*

*/reklama/*

*/reklamy/*

alza.cz##div{background-image: url(http://img.alza.cz/Foto/ImgGalery/bannery/*) !important;}

hraotruny.eu##div

http://ads2.opensubtitles.org/*

http://affiliates.everymatrix.com/processing/*

http://banners.onebit.cz/?bid=*

http://c.imedia.cz/*

http://cz.static.planet49.com/*

http://ds.serving-sys.com/*

http://gidnes.cz/o/bonusweb_n4/background-bw.jpg

http://googleads.g.doubleclick.net/pagead/*

http://img5.uloz.to/ul3/images/*.jpg

http://kampane.svetandroida.cz/www/images/*.jpg

http://mfad1.advantage.as/*

http://openads.aira.cz/www/images/*

http://pagead2.googlesyndication.com/pagead/*

http://raketa.cz/idnesbanner?type=970&kategoria=2

http://s0.2mdn.net/*

http://s1.adform.net/banners/scripts/unload/*

http://s3.buysellads.com/*

http://static.opensubtitles.org/gfx/banners_campaigns/*

http://system.adoptio.cz/www/images/*

http://techcrunch.com/advertise/*

http://toplist.cz/*

http://utiskare.cz/soubory/utiskare.png

http://vydelek-emailem.cz/*.gif

http://www.elity.net/videoad/*

http://www.facebook.com/plugins/*

http://www.opensubtitles.org/gfx/banners/*.gif

http://www.sponsorads.de/*

http://www.usemax.de/*

http://www.worldometers.info/L300L.html

http://www.worldometers.info/L300R.html

http://www.worldometers.info/img/shop-banner.gif

~facebook.com##a

~facebook.com##div

~facebook.com##div

~facebook.com##html

~jenpromuze.cz##div

~jenpromuze.cz*.adocean.pl/*

~mall.cz##headerMainly it's for czech sites, but it may work also on some international sites. Just be carefull to copy it withouttags (this forum system is adding them automatically).

From time to time, I am updating it here.

Link to comment
Share on other sites

Windows usually won't let you edit the hosts file until you replace it. Go to C:\Windows\System32\drivers\etc , right click the hosts file, copy, then paste a copy on your desktop. Open the new hosts file with notepad, copy and paste the text I left on Pastebin http://pastebin.com/KveUhKpm and save. Then just drag and drop it in C:\Windows\System32\drivers\etc and when prompted select replace. I combine a couple of the more useful lists, remove the duplicates, and add a few of my own. Afterwards try copying your adhunter list to a text file, then delete it from Maxthon and turn off "subscribe to global rules". Go to some ad heavy sites and see how well the hosts file does on it's own. In my experience it eliminates about 95% of ads, but I'm not sure how well it works on foreign sites. It also reduces pop-ups by about 50%, and most of the rest of the pop-ups will be blank pages because it won't connect to their shady ad-servers. I have a pretty good pop-up blocker userscript that blocks most of the leftovers if you want that too. BTW if you have your browser open when you replace the hosts file, you have to restart it for changes to take effect.-enjoy

Link to comment
Share on other sites

The rule you created for alza.cz was better than anything I could come up with. Never seen that syntax. Well done. I'll give you a quick tutorial I wish someone had showed me. When using html tags to block (classes, id's, src's) rules like 264 don't work ##div, it won't break the list but it's useless. You can't use wildcards inside the quotes. ^ means "starts with", $ means "ends with", * means "contains". (in url's * means any string of characters and ? means any one character)

Rules like:

##div

##div (you have 20)

can all be accomplished with one rule:

##div

You also don't have to specify a particular element for a tag.

For elements you know could be nothing but garbage:

##

will block any element (div, iframe, span, etc) with an id containing "Advertisement".

* wildcards are a chainsaw, not a scalpel, so use carefully. Remember "ad" can be the end of a lot of other words.

You can also combine them to be broad yet specific:

##div and

##div

could both be blocked with:

##div or

##div

Even a good hosts file can't block the empty placeholders ads leave behind which can be annoying. Hopefully this saves some aggravation.

Link to comment
Share on other sites

Yeah, great explanations. Will be keeping this thread as a reference.

I picked up most of that reading the adblock info previously.Although I wasn't aware about combining rules or that you don't need to specify an element, even though i'm sure I have a few rules like that.

There really should be sticky thread about AdHunter explaining syntax, rules etc. Between this thread and the couple that imanerd posted previously, there is some excellent information that requires too much effort to find.

Link to comment
Share on other sites

I have one more question :-D

On this page I would like to block the background image. It's address is:http://gidnes.cz/o/bonusweb_n4/background-bw.jpgThe'>http://gidnes.cz/o/bonusweb_n4/background-bw.jpgThe problem is, that the web's layout is organized by some CSS script. I don't want to block the whole script, I only want to "rewrite" it's parts, so I could change or block the backgroud image.body{background: url("http://gidnes.cz/o/bonusweb_n4/background-bw.jpg") !important}And of course, I need to limit the rule for only this page, for only this script and only for this part of that script. Unfortunatelly I can't find out how to do it...

Any idea? :-)

Link to comment
Share on other sites

##body{background:#000 !important}

or

##body {background:url("http://i947.photobucket.com/albums/ad312/anagrammarlogos/mediumgraybackground_zps0dff826f.jpg") !important}

Just change the background color or url to your liking. Url's are a little trickier if its not a solid color you need to specify any or all: "background-size", "repeat" or "no-repeat", "position", "height", "width". You were probably leaving out the "!important" declaration.

On a side note, if you use Maxthon Homepage, that hosts file has an entry that blocks the weather app from functioning (because it needs to "track" you to display local weather). If you want it to work, delete the entry: "0.0.0.0 j.maxmind.com".

Link to comment
Share on other sites

Thanks again. I am not sure why my rules didn't worked. I think MX v4.4.1.600 has a problem with disabling and enabling ADHunter...

Now it looks much better:cestiny.idnes.cz##body {background:url("http://jpeg.cz/images/2014/05/25/s9rfA.jpg") top center fixed !important;}

cestiny.idnes.cz##.col-a {margin:auto !important; padding-left: 80px !important;}cHYap.th.png

I am using this alternative SpeedDial instead of Maxthon's in-build (or homepage) :-)

Link to comment
Share on other sites

You seem to have the hang of it. You do get that you can make every individual site have it's own list, right? I'm guessing you're choosing to do it the hard way so that the list is easier to share. Anyway, here's a dark style for Maxthon Forum/Homepage if you wanna try it out.

###news-slider-title { background: -webkit-linear-gradient(top,#000,#000) !important; opacity: .9 !important; }

###nv { border-bottom: 1px solid #444 !important; }

###qmenu { text-shadow: none !important; }

##* { background-color: transparent !important; border-color: #444 !important; color: #ddd !important; }

##.button:hover,.favor-list li:hover,#nv li.a a,#nv li a:hover,#nv li.a,.pn:hover,.pg strong,.card .o a:hover { background: -webkit-linear-gradient(top,#141414,#141414) !important; }

##.favor-list li.add a:hover { box-shadow: none !important; }

##.ftid a { -webkit-text-fill-color: hsl(230,99%,75%) !important; background: #000 url(../../static/image/common/newarow.gif) no-repeat 100% -1.5px !important; }

##.ftid a:hover,.pl .blockcode em:hover,.xg1 a:hover { -webkit-text-fill-color: lavender !important; text-shadow: 0 0 5px rgba(255,255,200,0.9) !important; }

##.news-summary a,#nv li a,font,.pg a:hover, .pgb a:hover { -webkit-text-fill-color: #ddd !important; }

##.nvhm { background: url(../../static/image/common/search.png) no-repeat -8px -120px !important; }

##.pg a:hover, .pgb a:hover,.weather-more .btn-collapse:hover { background-color: #141414 !important; }

##.pl .blockcode em,.xg1 a { -webkit-text-fill-color: hsl(230,99%,75%) !important; }

##.pti { margin-top: -12px !important; }

##.scbar_icon_td { -webkit-filter: grayscale(100%) invert(100%) !important; width: 44px !important; }

##.search-engine-btn { background: url(Maxthonsearch_zps0a7c5eed.png) no-repeat !important; }

##.search-settings-btn:hover { background: url(/lang/images/ui-icon.png) right -227px no-repeat !important; }

##.text { box-shadow: none !important; }

##.tl th a:visited,.news-title a:visited { color: #777 !important; }

##:focus { outline: none !important; }

##a, a * { color: hsl(230,99%,75%) !important; text-decoration: none !important; }

##a:hover, a:hover *, a:visited:hover, a:visited:hover *,.tl th a:visited:hover *,.news-title a:visited:hover { color: lavender !important; text-shadow: 0 0 5px rgba(255,255,200,0.9) !important; }

##html,body { background: #000 !important; }

##img,img,#news-slider-btn-prev, #news-slider-btn-next,.weather-more .btn-setting:hover,.pls .o .pm2 { -webkit-filter: grayscale(100%) !important; }

##img { -webkit-filter: hue-rotate(28deg) brightness(86%) !important; }

##ul,.button,.p_pop, .p_pof, .sllt,#scbar,.scbar_txt_td, .scbar_type_td,.fl .bm_h,#nv,.m_c,.pn,.scbar_btn_td,#qmenu,.px, .pt, .ps, select,div,.ct2_a, .ct3_a,.pl .blockcode,.ct2_a .appl,div,.psth,.card .o a { background: -webkit-linear-gradient(top,#000,#000) !important; }

Just copy and paste it to the adhunter list for maxthon.com (you'll also have to add it to amazonaws.com since they link forum pages through them sometimes).

Link to comment
Share on other sites

  • 3 weeks later...

@30299131 Hi, I am building new skin for Maxthon's page and I have two problems, which I can't solve - please can you help me? I think it would be some small stupid thing, but currently I can't see it :-)

1. On maxthon.com I would like to change the top navigation bar to be dark. The rule would be like this:## #top {-webkit-filter: brightness(90%) !important;}It works, but it will also broke hovering over items and ability to choose them in submenu "Community".

2. On forum.maxthon.com, I would like to remove the background for search bar and replace it with simple background color. I tried this simple rule:## #scbar, .scbar_icon_td {background-color: #232A31 !important; background: transparent !important; border: none !important;}which doesn't work as I expected...

Any idea? :-D

PS: I am sorry for "spamming" this thread, but I don't have permission for sending PMs yet.

Link to comment
Share on other sites

Hey, Zugi. I'm not familiar with the rules. I would have figured if you had a question you could send me a message. Anyway, if you haven't already figured something out, as best I can tell you are going about both in the opposite way that you should. The filters are fun to play with, but they're meant for images. They'll work on other elements, but the results can be glitchy. For #top you're better off specifying the background color you want and changing the rest of it to correspond. The search bar on the forum is not typical. It does use an image as a background (so do a lot of elements around it). In this case filters are appropriate. I already did the search bar and the surrounding images in the style I shared. Take that piece of the style and butcher it to your liking. Since you want a lighter shade of grey, lessen the % of invert.

Link to comment
Share on other sites

  • 3 weeks later...

I am sorry, but I still don't have permission to send PMs (so stupid). This message is for 7twenty. Sorry!

See this thread - there's my script which you can use as an example - definitelly I changed some background images when writing this custom skin.

Btw. Please, can you change my user profile permission so I could send PMs? Currently I am not able to contact any user or moderator/admin...thx

Link to comment
Share on other sites

  • 2 weeks later...

@7twenty, you sent me a pm that for some ridiculous reason I can't respond to so I'll respond here: Hey, sorry I haven't checked in on the forum in a while. I'm guessing you probably worked something out by now, but if you haven't I'd be happy to help. For future reference, if you have a question about CSS you can find me here: (https://userstyles.org/styles/101622/google-youtube-and-gmail-inverted-chrome-only) . That's one of my styles that I update frequently. Replacing images ranges from really easy to quite difficult depending on how the CSS is written. An example of the standard being: whatever img {background:url(http://i947.photobucket.com/albums/ad312/anagrammarlogos/mediumgraybackground_zps0dff826f.jpg) !important}

Since Maxthon is webkit, an example of a sometimes more effective alternative is: whatever img {content:url(http://i947.photobucket.com/albums/ad312/anagrammarlogos/mediumgraybackground_zps0dff826f.jpg) !important}

Usually if those aren't working it's because it's deeply woven into the HTML, but I've got some tricks for that too.

Next time leave me a url and the name and location of the element.

Link to comment
Share on other sites

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.