maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Cookie management in microb - CookieCuller Mod (https://talk.maemo.org/showthread.php?t=89544)

DA5 2013-03-21 14:00

Cookie management in microb - CookieCuller Mod
 
4 Attachment(s)
I'm posting this in case anyone else would find simple cookie management in microb useful. It probably works with Fennec as well, but I haven't tried it yet.

I was disappointed that no cookie management was included with the default N900 browser so I tried installing the CookieCuller extension and found the list only showed two cookies at a time making it a pain to use.

Attachment 31384

I modified the CookieCuller.xul file (inside cookieculler.jar) to make better use of the N900 screen space. After the modification more cookies are visible and it's now usuable (could still use a search function though :D).

Attachment 31385

To install:

Go to https://addons.mozilla.org/en-US/fir.../cookieculler/ with microb, and install the add-on.

Download the attached cookieculler.jar.tar.gz to your N900, extract it, and overwrite the original cookieculler.jar located in /home/user/microb/extensions/{99B98C2C-7274-45a3-A640-D9DF1A1C8460}/chrome/.

Code:

cp ./cookieculler.jar /home/user/microb/extensions/\{99B98C2C-7274-45a3-A640-D9DF1A1C8460\}/chrome/
Create a bookmark to chrome://cookieculler/content/CookierCuller.xul, this is where you'll access your cookies.

Restart microb then load the bookmark and now you can manage your cookies in microb (and also have the extra features of CookieCuller).

Note: I have no affiliation with the author of CookieCuller (Dan Yamaoka)-this is just a simple mod to it. The other attached file is a diff of the original and the modified CookierCuller.xul.

DA5 2013-03-23 13:53

Re: Cookie management in microb - CookieCuller Mod
 
3 Attachment(s)
I've now tried it on Fennec. The modification isn't as necessary on there, but it still helps as the scrollbar doesn't show up. The problem is the install.rdf file needs to be modified so it will install on Fennec in the first place. Here's how I installed it if any Fennec users might find it useful.

Attachment 31421

The following can be added to install.rdf inside the .xpi to make it installable (borrowed&modified from noscript's install.rdf).

Code:

    <!-- Fennec -->
    <em:targetApplication>
      <Description>
        <em:id>{a23983c0-fd0e-11dc-95ff-0800200c9a66}</em:id>
        <em:minVersion>1.0</em:minVersion>
        <em:maxVersion>20.0a1pre</em:maxVersion>
      </Description>
    </em:targetApplication>

Afer updating the install.rdf inside the xpi it can be installed by loading a local html file containing a link to the xpi file. For me it was:

Code:

<a href="file:///home/user/MyDocs/Documents/addon-82-latest.xpi">install cookieculler</a>
Once installed it's obvious it doesn't work as smoothly on Fennec but at least it works. The option to delete unprotected cookies automatically can't be set through prefs (adding the boolean extensions.cookieculler_options.delUnprotAtStartup , true in about config works) and every other cookie in the list as blacked out unless it's highlighted.

Attachment 31422

As for adding the mod-that's a bit more tricky, now the jar must be updated inside the {99B98C2C-7274-45a3-A640-D9DF1A1C8460}.xpi file in the Fennec extensions directory. Here's how the modded version looks:

Attachment 31423

It doesn't look pretty but it does still manage cookies and the extra cookieculler functionality works.


All times are GMT. The time now is 23:58.

vBulletin® Version 3.8.8