librelist archives

« back to archive

uBlock extension?

uBlock extension?

From:
Benjamin Slade
Date:
2015-01-30 @ 16:30
Has anyone got the uBlock extension (lighter weight alternative to
AdBlockPlus) to work?

[ https://github.com/gorhill/uBlock ]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dr Benjamin Slade
pgp fingerprint: 21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{sent by mu4e on Emacs running under GNU/Linux}
(Choose Linux, Choose Freedom)

Re: [conkeror] uBlock extension?

From:
Scott Jaderholm
Date:
2015-01-30 @ 17:27
I tried it a week or so ago and the tab to add subscriptions wouldn't load.

Perhaps subscriptions could be added under Firefox and transfered to a
Conkeror profile.

I didn't try manually adding any rules.

Scott

On Fri, Jan 30, 2015 at 8:30 AM, Benjamin Slade <slade@jnanam.net> wrote:

> Has anyone got the uBlock extension (lighter weight alternative to
> AdBlockPlus) to work?
>
> [ https://github.com/gorhill/uBlock ]
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Dr Benjamin Slade
> pgp fingerprint: 21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> {sent by mu4e on Emacs running under GNU/Linux}
> (Choose Linux, Choose Freedom)
>

Re: [conkeror] uBlock extension?

From:
Benjamin Slade
Date:
2015-01-30 @ 17:53
Thanks, I had tried to add it and couldn't get it to work.

I found that instead of adding

<!-- Conkeror -->
<em:targetApplication>
  <Description>
    <em:id>{a79fe89b-6662-4ff4-8e88-09950ad4dfde}</em:id>
    <em:minVersion>0.1</em:minVersion>
    <em:maxVersion>9.9</em:maxVersion>
  </Description>
</em:targetApplication>

to install.rdf

I had to add:

        <!-- Conkeror -->
	<targetApplication>
	  <r:Description>
	    <id>{a79fe89b-6662-4ff4-8e88-09950ad4dfde}</id>
	    <minVersion>0.1</minVersion>
	    <maxVersion>9.9</maxVersion>
	    </r:Description>
	  </targetApplication>

Does anyone know where the subscriptions are stored?  (In order to
transfer or link from Firefox to Conkeror)



Scott Jaderholm <jaderholm@gmail.com> writes:

> I tried it a week or so ago and the tab to add subscriptions wouldn't load.
>
> Perhaps subscriptions could be added under Firefox and transfered to a
> Conkeror profile.
>
> I didn't try manually adding any rules.
>
> Scott
>
> On Fri, Jan 30, 2015 at 8:30 AM, Benjamin Slade <slade@jnanam.net> wrote:
>
>> Has anyone got the uBlock extension (lighter weight alternative to
>> AdBlockPlus) to work?
>>
>> [ https://github.com/gorhill/uBlock ]
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Dr Benjamin Slade
>> pgp fingerprint: 21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> {sent by mu4e on Emacs running under GNU/Linux}
>> (Choose Linux, Choose Freedom)
>>

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dr Benjamin Slade
pgp fingerprint: 21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{sent by mu4e on Emacs running under GNU/Linux}
(Choose Linux, Choose Freedom)

Re: uBlock extension?

From:
Ivy Foster
Date:
2015-03-21 @ 01:36
Sorry in advance for broken threading; I'm copying from the
archive due to being newly returned.

Benjamin Slade wrote:
> Does anyone know where the subscriptions are stored? (In
> order to transfer or link from Firefox to Conkeror)

It looks like they're in


${HOME}/.conkeror.mozdev.org/conkeror/$profile/extensions/$ublock_random_numbers.xpi/assets

and that there are several lists included by default. I
tried enabling many of them directly in
.../assets/ublock/filter-lists.json, but that didn't seem to
work. 

I also looked at the settings in
.../conkeror/$profile/extension-data/ublock.sqlite, but it
doesn't look like there's anything interesting there.

Finally, I tried taking a cue from
conkeror/modules/extensions/adblockplus.js and firing up
chrome://ublock/options.xul directly, again to no avail.

So the bad news is that it's not for lack of lists or
anything in ublock.sqlite.

I'll bet that ublock is calling some firefox-specific stuff
under the hood, rather than just for interface stuff. It
sounds like a great extension, so I'd love to see it come to
conkeror. Sounds like for that to happen, though, we're
probably gonna have to go upstream and look at ublock
itself.

iff

Re: [conkeror] Re: uBlock extension?

From:
Benjamin Slade
Date:
2015-03-21 @ 16:49
thanks for looking into this.  I tried playing with it for a while a few
weeks ago, and didn't have any luck.

Ivy Foster <ivy.foster@gmail.com> writes:

> Sorry in advance for broken threading; I'm copying from the
> archive due to being newly returned.
>
> Benjamin Slade wrote:
>> Does anyone know where the subscriptions are stored? (In
>> order to transfer or link from Firefox to Conkeror)
>
> It looks like they're in
>
> 
${HOME}/.conkeror.mozdev.org/conkeror/$profile/extensions/$ublock_random_numbers.xpi/assets
>
> and that there are several lists included by default. I
> tried enabling many of them directly in
> .../assets/ublock/filter-lists.json, but that didn't seem to
> work. 
>
> I also looked at the settings in
> .../conkeror/$profile/extension-data/ublock.sqlite, but it
> doesn't look like there's anything interesting there.
>
> Finally, I tried taking a cue from
> conkeror/modules/extensions/adblockplus.js and firing up
> chrome://ublock/options.xul directly, again to no avail.
>
> So the bad news is that it's not for lack of lists or
> anything in ublock.sqlite.
>
> I'll bet that ublock is calling some firefox-specific stuff
> under the hood, rather than just for interface stuff. It
> sounds like a great extension, so I'd love to see it come to
> conkeror. Sounds like for that to happen, though, we're
> probably gonna have to go upstream and look at ublock
> itself.
>
> iff

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dr Benjamin Slade
pgp fingerprint: 21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{sent by mu4e on Emacs running under GNU/Linux}
(Choose Linux, Choose Freedom)

Re: [conkeror] Re: uBlock extension?

From:
Scott Jaderholm
Date:
2015-03-21 @ 20:52
Details of what I found a few weeks ago but no solution:

I created an issue here
https://github.com/gorhill/uBlock/issues/827

There appear to be at least two problems at this point. First, for whatever
reason the uBlock extension is not able to access a message manager of this
type:


https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIContentFrameMessageManager

This message manager does appear to be available in Conkeror, but perhaps
something needs to be written to make it accessible where uBlock expects it.

get_recent_conkeror_window().getBrowser().messageManager

The next issue is something called gBrowser is needed, at least the way
uBlock is currently written. I believe gBrowser is a
https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/tabbrowser.

I'm not sure if gBrowser or tabbrowser are available in Conkeror. I suspect
not. get_recent_conkeror_window().getBrowser().getTabBrowser() returns null.

Scott

On Sat, Mar 21, 2015 at 9:49 AM, Benjamin Slade <slade@jnanam.net> wrote:

> thanks for looking into this.  I tried playing with it for a while a few
> weeks ago, and didn't have any luck.
>
> Ivy Foster <ivy.foster@gmail.com> writes:
>
> > Sorry in advance for broken threading; I'm copying from the
> > archive due to being newly returned.
> >
> > Benjamin Slade wrote:
> >> Does anyone know where the subscriptions are stored? (In
> >> order to transfer or link from Firefox to Conkeror)
> >
> > It looks like they're in
> >
> > ${HOME}/.
> 
conkeror.mozdev.org/conkeror/$profile/extensions/$ublock_random_numbers.xpi/assets
> >
> > and that there are several lists included by default. I
> > tried enabling many of them directly in
> > .../assets/ublock/filter-lists.json, but that didn't seem to
> > work.
> >
> > I also looked at the settings in
> > .../conkeror/$profile/extension-data/ublock.sqlite, but it
> > doesn't look like there's anything interesting there.
> >
> > Finally, I tried taking a cue from
> > conkeror/modules/extensions/adblockplus.js and firing up
> > chrome://ublock/options.xul directly, again to no avail.
> >
> > So the bad news is that it's not for lack of lists or
> > anything in ublock.sqlite.
> >
> > I'll bet that ublock is calling some firefox-specific stuff
> > under the hood, rather than just for interface stuff. It
> > sounds like a great extension, so I'd love to see it come to
> > conkeror. Sounds like for that to happen, though, we're
> > probably gonna have to go upstream and look at ublock
> > itself.
> >
> > iff
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Dr Benjamin Slade
> pgp fingerprint: 21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> {sent by mu4e on Emacs running under GNU/Linux}
> (Choose Linux, Choose Freedom)
>