The DnD Sanctuary

Pings => Otter Browser Forum => Topic started by: djgl on 2014-08-13, 16:56:20

Title: Adblock for Otter
Post by: djgl on 2014-08-13, 16:56:20
Is there an AdBlocker for Otter. In Opera 12 I am using Adblock. Is this compatible with Otter, or is there some other available. I don't want to get into writing scripts.
Title: Re: Adblock for Otter
Post by: Frenzie on 2014-08-13, 17:59:09
There are Adblock Plus compatible filters under the tools menu, but I haven't really tried it myself. :)

NB I believe this is just the very first implementation.
Title: Re: Adblock for Otter
Post by: djgl on 2014-08-13, 18:33:07
I did have a look under Tools menu and there is Content Blocking but it list various languages so thought that was not it. There is an edit option but that is greyed out.

I am using version 0.9.03 notified today.

Windows 8.1/64
Title: Re: Adblock for Otter
Post by: Frenzie on 2014-08-13, 19:20:26
Edit hasn't been implemented yet, but there might be an actual file for it somewhere. The language thing is just how Adblock Plus works: https://adblockplus.org/en/getting_started

I assume it's so your browser doesn't have to waste CPU by looking out for ads in 20 different languages you don't even speak. :)
Title: Re: Adblock for Otter
Post by: Emdek on 2014-08-23, 09:38:26
@Frenzie, exactly, AFAIK there is simply one common list plus you can enable lists specific to your country / language.
We only ship headers, actual lists are downloaded after enabling them.
Title: Re: Adblock for Otter
Post by: djgl on 2014-08-30, 09:23:27
Is there any update as to when an adblock can be installed.

I do use Otter occasionally but the ads that proliferate make me switch back to Opera 12.

Title: Re: Adblock for Otter
Post by: Emdek on 2014-09-01, 19:01:20
@djgl, there is no need for separate installation, support for Adblock Plus filters is built-in, not perfect yet, but should be good enough to eliminate most of unwanted ads.
Title: Re: Adblock for Otter
Post by: djgl on 2014-09-02, 17:49:30
Thanks, but I don't see anyway of adding Adblock. In Opera you would go to Extensions and add it that way.

It seems that you are implying that Otter does not work this way. The options under the Tools menu for content blocking are all greyed out so it is not possible to effect the blocking. It seems I am misunderstanding you somehow.

I am using Windows 8.1/64.

Title: Re: Adblock for Otter
Post by: beastie on 2014-09-03, 16:09:02

Thanks, but I don't see anyway of adding Adblock. In Opera you would go to Extensions and add it that way.

AdBlock is implemented within Otter's codebase. What version of Otter are you using? In any newer version you should be able to use it through Tools > Content Blocking... by enabling some filter such as EasyList which contains everything except country-specific websites. Once you enable a list, Otter should download and activate it.

If this doesn't work as expected, then consider reporting it on GitHub (https://github.com/Emdek/otter/issues?q=is%3Aopen).
Title: Re: Adblock for Otter
Post by: zundapp on 2014-09-03, 22:14:57
With Easylist ON I can't play youtube videos that have ads on it. If I disable the adblock it will play the video just fine.

I'm on windows and with this weekly build.
Title: Re: Adblock for Otter
Post by: djgl on 2014-09-04, 09:24:22


Thanks, but I don't see anyway of adding Adblock. In Opera you would go to Extensions and add it that way.

AdBlock is implemented within Otter's codebase. What version of Otter are you using? In any newer version you should be able to use it through Tools > Content Blocking... by enabling some filter such as EasyList which contains everything except country-specific websites. Once you enable a list, Otter should download and activate it.

If this doesn't work as expected, then consider reporting it on GitHub (https://github.com/Emdek/otter/issues?q=is%3Aopen).


Thanks - that's fine now. It wasn't working the way I expected it too.
Title: Re: Adblock for Otter
Post by: Emdek on 2014-09-07, 16:44:17
@zundapp, it's possible that one of rules is blocking important resource, it could be a good idea to add feature to log which rules were used to debug console, another useful feature would be to set exceptions (as part of site specific preferences).
Title: Re: Adblock for Otter
Post by: ultraviolet on 2015-02-03, 20:15:14
selecting and clicking on 'easylist' seems to crash my browser, weirdness
Title: Re: Adblock for Otter
Post by: Emdek on 2015-02-03, 21:02:15
@ultraviolet, is there any backtrace?
BTW, we are going to rewrite UI of that feature so it would be best to wait for next weekly and try it again (it shoyld be merged-in by then).
Title: Re: Adblock for Otter
Post by: ultraviolet on 2015-02-03, 21:15:03

@ultraviolet, is there any backtrace?
BTW, we are going to rewrite UI of that feature so it would be best to wait for next weekly and try it again (it shoyld be merged-in by then).


sorry i don't know what you mean by "is there any backtrace?"
Title: Re: Adblock for Otter
Post by: Emdek on 2015-02-04, 10:38:13
@ultraviolet, this isn't the best entry point, but better than nothing:
http://en.wikipedia.org/wiki/Stack_trace

Basically it's the best way to report reproducible bugs to programmers, as they usually show workflow of API calls that lead to the crash. :-)
Title: Re: Adblock for Otter
Post by: ultraviolet on 2015-02-04, 18:49:03
just tried again and its not the adblock function, happens randomly while trying to load pages, just happen while loading www.html5test.com.

not been able to use the browser yet properly because of this, may be its a linux mint thing
Title: Re: Adblock for Otter
Post by: Emdek on 2015-02-04, 18:55:00
@ultraviolet, which Qt version are you using (check in Help menu, About Qt)?
Title: Re: Adblock for Otter
Post by: rincewind on 2015-02-05, 07:45:33
Otter is still connecting to ablock on every start.
Title: Re: Adblock for Otter
Post by: ultraviolet on 2015-02-05, 08:06:43

@ultraviolet, which Qt version are you using (check in Help menu, About Qt)?


5.2.1
Title: Re: Adblock for Otter
Post by: Emdek on 2015-02-05, 14:40:59
@rincewind, I'm working on that update time settings now, although current master shouldn't connect at all (after that refactoring).

@ultraviolet, time to update, that was the most buggy release of QtWebKit (numerous HarfBuzz related crashes etc.).
Best way would be to find some packages repository with at least Qt 5.3, using SDK binaries form upstream (see INSTALL) as fallback (but that could be more complicated...).
Title: Re: Adblock for Otter
Post by: ultraviolet on 2015-02-05, 16:51:32

@rincewind, I'm working on that update time settings now, although current master shouldn't connect at all (after that refactoring).

@ultraviolet, time to update, that was the most buggy release of QtWebKit (numerous HarfBuzz related crashes etc.).
Best way would be to find some packages repository with at least Qt 5.3, using SDK binaries form upstream (see INSTALL) as fallback (but that could be more complicated...).


i'm sorry, that reply went mostly over my head :-)

i take it that qtwebkit is not just one program i can find in the synaptic package manager to download the lastest version?

before i go ahead and download the .deb files in this link, are they the right ones?:

https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/landing-005/+build/6711546
Title: Re: Adblock for Otter
Post by: Emdek on 2015-02-05, 18:15:05
@ultraviolet, nope, installing them package by package is the best way to break system. ;-)

Well, I guess that going for entire SDK from upstream will be the fastest path:
http://www.qt.io/download-open-source/

1. Download installer.
2. Install it to some directory (something in ~/ is fine too).
3. Fetch Otter sources (sf.ney or github).
4. Open QtCreator from SDK (should be in subtree of install directory, something like 5.4/gcc_64/bin/).
5. Select Open Project and navigate to otter.pro in source directory of Otter and open it.
6. It will ask you to configure project, defaults should be good enough, just continue.
7. Click green triangle icon on the left to build project.

When it will be built correctly then you will have otter-browser binary somewhere in build directory, you can create launcher and use it from now on.

Dependencies, must have: clang (gcc is fine, but clang is faster), gstreamer -dev packages (fetching them for plugins good should fetch others, failing to install them will generate errors mentioning gst), libxml2-dev.
These are the most common.

In case of issues it would be best to ask on our IRC channel (I'll be mostly unavailable until Sunday).
Title: Re: Adblock for Otter
Post by: ultraviolet on 2015-02-06, 05:01:37
i think i'll leave that for the time being, thanks for the help, but, i'll wait till the browser goes stable and is available through normal means
Title: Re: Adblock for Otter
Post by: Emdek on 2015-02-06, 06:54:42
@ultraviolet, I guess that we will try to create variant where newest Qt libraries are shipped with binary, that should work on most of Linux systems out of the box (assuming that basic stuff like gstreamer, libxml2 or curl are installed, curl used to turn out as missing sometimes when using SDK binaries).
Then you will just had to download one bigger archive and do not care about compiling, which isn't that scary anyway (we have just few external dependencies, and only Qt itself is the only direct one). ;-)
Title: Re: Adblock for Otter
Post by: ultraviolet on 2015-02-06, 10:54:58

@ultraviolet, I guess that we will try to create variant where newest Qt libraries are shipped with binary, that should work on most of Linux systems out of the box (assuming that basic stuff like gstreamer, libxml2 or curl are installed, curl used to turn out as missing sometimes when using SDK binaries).
Then you will just had to download one bigger archive and do not care about compiling, which isn't that scary anyway (we have just few external dependencies, and only Qt itself is the only direct one). ;-)


That would be great in the future. I realise Vivaldi is a far bigger 'company' but all i had to do to try their very nice browser which is still in early stages was download one file.
To get your product out to more people to try and give feed-back to, the easyer the process the better surely.

Im a lazy linux user who doesnt much like tinkering around :-)
Title: Re: Adblock for Otter
Post by: py-thon on 2015-04-06, 18:04:53
For those of you who - like me - have updated from beta4 to beta5 and missed part of the adblocking functionality: ~/.config/otter/adblock is no longer considered. The new folder to substitute it is called ~/.config/otter/blocking.
If you manually made changes to ~/.config/otter/adblock.ini and added lists to folder .../adblock just move the lists to .../blocking. You can then delete folder .../adblock. File adblock.ini can remain unchanged. After restarting Otter you will have access to the additional lists again.