We remove ads in Opera Mobile
Good day, habrauser!
I want to talk about how to get rid of annoying advertising, if you often have to use a smartphone with Symbian or a device with Windows Mobile on board. The solution is quite trivial, I won’t be surprised if many people know this method, but no one wrote about it on Habrahabr. If interested - details under the cut.
Introduction
Users of the desktop version of Opera have been using UserCSS and Urlfilter since ancient times to combat advertising . This method, which has many advantages and very few drawbacks, as it turned out, works for itself in the mobile versions of Opera, besides OperaMini. Performance was tested using Opera Mobile 10 and the Nokia 5530 phone, however, it seems to me that Opera Mobile versions for other platforms will not be an exception.
How it works
Urlfilter
Urlfilter - the filter of unwanted content built into the opera, works by the mask, which is located in the urlfilter.ini file. The file has the following structure: Filter values are written to the [exclude] section. An example urlfilter.ini file can be viewed here or here . I note that with a large number of entries, the browser may slow down. I’ll also say that it’s better to make the rules yourself, adapted to the most visited sites. In order for urlfilter.ini to work, you need to save it to your phone. For example, for Symbian, the path to the file will be like this:!: / System / Data / OperaMobile / urlfilter.ini Or, as an option, save it to any place in the phone’s browser go to opera: config and in the Network section - URL Filter File specify the path to the file.
Opera Preferences version 2.1
; Do not edit this file while Opera is running
; This file is stored in UTF-8 encoding
[prefs]
prioritize excludelist=1
[include]
*
[exclude]
Usercss
However, I personally prefer the second way, using UserCss. An example can be seen here . Discussion and developers here . For Symbian, put the file in!: / System / Apps / OperaMobile / styles / adblock.css
Or, at opera: config in the User Prefs - Local CSS File section, specify the path to it. And do not forget to scroll down and press the "Save" button (separate for each section).
Conclusion
Separately, I want to note that not only images are filtered, but also scripts if desired. And this reduces the number of connections and, as a result, increases the speed of work. Filtered content - does not load, and this significantly saves traffic.
And once again, the article is exclusively for those hub users who, by accidental misunderstanding, do not know anything about these not obvious features of Opera Mobile. I would be glad to make practical comments.
UPD1 transferred to the blog Opera, thanks for the karma.
UPD2 corrected the article. Thanks microKot habrayuzer for clarification.