maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] User Agent Tool - change Maemo Browser's user agent (https://talk.maemo.org/showthread.php?t=86714)

vetsin 2012-12-11 17:12

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
hi!
got this during installation:
/home/user # apt-get install useragenttool
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
useragenttool
0 upgraded, 1 newly installed, 0 to remove and 45 not upgraded.
Need to get 35.3kB of archives.
After this operation, 168kB of additional disk space will be used.
Get:1 http://repository.maemo.org fremantle/free useragenttool 1.1.0 [35.3kB]
Fetched 35.3kB in 1s (20.5kB/s)
Selecting previously deselected package useragenttool.
(Reading database ... 52656 files and directories currently installed.)
Unpacking useragenttool (from .../useragenttool_1.1.0_armel.deb) ...
Setting up useragenttool (1.1.0) ...
chown: invalid option -- f
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso31+0cssu0) multi-call binary

Usage: chown [-RhLHP]... OWNER[<.|:>[GROUP]] FILE...

dpkg: error processing useragenttool (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
useragenttool
E: Sub-process /usr/bin/dpkg returned an error code (1)
/home/user #

the tool itself seems to launch fine but i haven't tested running the browser from the tool (time for bed again. hehe)
it also starts slower than before and the X button for closing the tool window's missing. thanks!

marmistrz 2012-12-11 17:24

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by vetsin (Post 1303551)
hi!
got this during installation:
/home/user # apt-get install useragenttool
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
useragenttool
0 upgraded, 1 newly installed, 0 to remove and 45 not upgraded.
Need to get 35.3kB of archives.
After this operation, 168kB of additional disk space will be used.
Get:1 http://repository.maemo.org fremantle/free useragenttool 1.1.0 [35.3kB]
Fetched 35.3kB in 1s (20.5kB/s)
Selecting previously deselected package useragenttool.
(Reading database ... 52656 files and directories currently installed.)
Unpacking useragenttool (from .../useragenttool_1.1.0_armel.deb) ...
Setting up useragenttool (1.1.0) ...
chown: invalid option -- f
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso31+0cssu0) multi-call binary

Usage: chown [-RhLHP]... OWNER[<.|:>[GROUP]] FILE...

dpkg: error processing useragenttool (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
useragenttool
E: Sub-process /usr/bin/dpkg returned an error code (1)
/home/user #

the tool itself seems to launch fine but i haven't tested running the browser from the tool (time for bed again. hehe)
it also starts slower than before and the X button for closing the tool window's missing. thanks!

It's pagestackwindow app, so there's no x. tap left & right corner to minimize & quit. It's qt components so it launches a while. And there's no animation with settings applet...

I'll fix it 2moro

demolition 2012-12-12 14:30

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Pretty much a repeat of Vetsin's comment but I did "dpkg --purge", to remove it completely first.
Code:

/home/user # dpkg -l | grep useragent
/home/user # dpkg -i useragenttool_1.1.0_armel.deb
Selecting previously deselected package useragenttool.
(Reading database ... 60183 files and directories currently installed.)
Unpacking useragenttool (from useragenttool_1.1.0_armel.deb) ...
Setting up useragenttool (1.1.0) ...
chown: invalid option -- f
BusyBox v1.20.2 (Debian 1.20.2power5) multi-call binary.

Usage: chown [-RhLHP]... OWNER[<.|:>[GROUP]] FILE...

Change the owner and/or group of each FILE to OWNER and/or GROUP

        -R        Recurse
        -h        Affect symlinks instead of symlink targets
        -L        Traverse all symlinks to directories
        -H        Traverse symlinks on command line only
        -P        Don't traverse symlinks (default)

dpkg: error processing useragenttool (--install):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 useragenttool
/home/user #

Why does user agent tool need to use chown, when other programmes don't?

marmistrz 2012-12-12 15:08

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by demolition (Post 1303817)
Pretty much a repeat of Vetsin's comment but I did "dpkg --purge", to remove it completely first.
Code:

/home/user # dpkg -l | grep useragent
/home/user # dpkg -i useragenttool_1.1.0_armel.deb
Selecting previously deselected package useragenttool.
(Reading database ... 60183 files and directories currently installed.)
Unpacking useragenttool (from useragenttool_1.1.0_armel.deb) ...
Setting up useragenttool (1.1.0) ...
chown: invalid option -- f
BusyBox v1.20.2 (Debian 1.20.2power5) multi-call binary.

Usage: chown [-RhLHP]... OWNER[<.|:>[GROUP]] FILE...

Change the owner and/or group of each FILE to OWNER and/or GROUP

        -R        Recurse
        -h        Affect symlinks instead of symlink targets
        -L        Traverse all symlinks to directories
        -H        Traverse symlinks on command line only
        -P        Don't traverse symlinks (default)

dpkg: error processing useragenttool (--install):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 useragenttool
/home/user #

Why does user agent tool need to use chown, when other programmes don't?

To make sure that the file can be edited by the user. I've just uploaded the fix. And if there are problems upgrading: just remove the -f from postinst

xcentric 2013-01-07 09:14

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by marmistrz (Post 1263673)
Hi,

I'd like to announce my brand new app, User Agent Tool.

Why is it better than Hide User Agent? Because it has a lot of presets. You can pretend to be an iPhone, a Galaxy S3 or Nokia Lumia 800. Some browser agents are included too!

What is an user agent? It's a string which tells the website which kind of device/browser are you. And this way you can easily fool the server!

Would you like to have an user agent included? Just let me know about it! Any feedback is appreciated!

Download: User Agent Tool in an application manager or
Code:

# apt-get install useragenttool
Source: https://gitorious.org/user-agent-tool/user-agent-tool

Special thanks:
  • sifo - for creating the icon

If you want to support this project, you can DONATE
If you can't donate but you want to support this project, please contact me.



when i type # apt-get install useragenttool in terminal it says cudnt find package useragenttool

please help, more detailed explantion will be appreciated
thanks

Tiran 2013-01-07 09:32

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by xcentric (Post 1311809)
when i type # apt-get install useragenttool in terminal it says cudnt find package useragenttool

please help, more detailed explantion will be appreciated
thanks

@xcentric, download in MyDocs useragenttool_1.1.0-1_armel.deb and then in the terminal:
Code:

sudo gainroot
dpkg -i /home/user/MyDocs/useragenttool_1.1.0-1_armel.deb

dpkg -i /home/user/MyDocs/useragenttool_1.1.0-1_armel.deb command in one line, here has warped tag [CODE]. ;)

marmistrz 2013-01-07 10:02

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by xcentric (Post 1311809)
when i type # apt-get install useragenttool in terminal it says cudnt find package useragenttool

please help, more detailed explantion will be appreciated
thanks

Dont download the deb, just enable extras-devel

panjgoori 2013-06-11 04:51

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
1 Attachment(s)
after latest CSSU-T 8.1 update you app is no longer working. when applying a useragent it gives error. "Error: Permission denied"

screenshot attached.

marmistrz 2013-06-11 17:45

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by panjgoori (Post 1351027)
after latest CSSU-T 8.1 update you app is no longer working. when applying a useragent it gives error. "Error: Permission denied"

screenshot attached.

Thanks you for reporting...
Please try reinstalling. This should do the trick.

marmistrz 2013-06-11 17:47

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Pushed an update which will fix the red square as in panjgoori's screenshot

Raimu 2013-06-13 19:04

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Apparenty, the update's stuck in the gears of the repo system? :|

Anyway, I like this program a lot. The only problem is, I sometimes need to imitate the useragents of different Chrome versions, and different Firefox versions. The presets aren't of much use for my usecase, since I don't have a use for different phones' useragent strings.

Also, some sites are starting to pull the plug on Firefox 3 support and even though some of them would still work fine on microb, the pages give out "unsupported browser" prompts that I bypass by just incrementing the version number by one or two. :)

These usecases would warrant the usefulness of having a user-customizable useragent list, IMHO. Anyway, thank you for your application. I'll try to donate a bit.

marmistrz 2013-06-15 18:18

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by Raimu (Post 1351823)
Apparenty, the update's stuck in the gears of the repo system? :|

Anyway, I like this program a lot. The only problem is, I sometimes need to imitate the useragents of different Chrome versions, and different Firefox versions. The presets aren't of much use for my usecase, since I don't have a use for different phones' useragent strings.

Also, some sites are starting to pull the plug on Firefox 3 support and even though some of them would still work fine on microb, the pages give out "unsupported browser" prompts that I bypass by just incrementing the version number by one or two. :)

These usecases would warrant the usefulness of having a user-customizable useragent list, IMHO. Anyway, thank you for your application. I'll try to donate a bit.

Hi,

The update has been already built. I'll look into the preset list next week, when I'm less busy.

macey 2013-09-25 18:04

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Question:- Does your application modify general.useragent.vendor or general.useragent.override?
I am playing around trying to find a more up to date agent setting that will work on facebook. I have discovered that they only work if put in general.useragent.vendor. This is, of course, reset back to original on browser restart.
If you define the agent in general.useragent.override, facebook starts to load but does not complete.

Why do I want to change it? To stop that annoying "update you browser" message that facebook comes out with from time to time..

marmistrz 2013-09-25 18:08

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by macey (Post 1376739)
Question:- Does you application modify general.useragent.vendor or general.useragent.user?
I am playing around trying to find a more up to date agent setting that will work on facebook. I have discovered that they only work if put in general.useragent.vendor. This is, of course, reset back to original on browser restart.
If you define the agent in general.useragent.user, facebook starts to load but does not complete.

Why do I want to change it? To stop that annoying "update you browser" message that facebook comes out with from time to time..

Nope. It modifies some config file (I don't remember which, it's hardcoded somewhere in the helper cpp). Just like hideuseragent but smarter :)

marmistrz 2013-09-25 18:09

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by marmistrz (Post 1352254)
Hi,

The update has been already built. I'll look into the preset list next week, when I'm less busy.

Just a quick note: I didn't forget about the update. I'll push it back when I resurrect my N900's port

Raimu 2013-09-25 19:43

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
I thought it puts a request to modify general.useragent.override in ~/.mozilla/microb/user.jss .

macey 2013-09-25 20:04

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by Raimu (Post 1376784)
I thought it puts a request to modify general.useragent.override in ~/.mozilla/microb/user.jss .

Well, if that's the case, I would like to know how it handles www.facebook.com because, when I create a general.useragent.override (via hideuseragent) it fails, see:-
http://talk.maemo.org/showpost.php?p...9&postcount=53
I have tried loads of agent definitions, they all cause facebook to just partially load. Definitions with only general.useragent.vendor work and of course, they get reset on browser restart.
I would like to know if anyone else sees this.

marmistrz 2013-09-26 08:20

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by macey (Post 1376787)
Well, if that's the case, I would like to know how it handles www.facebook.com because, when I create a general.useragent.override (via hideuseragent) it fails, see:-
http://talk.maemo.org/showpost.php?p...9&postcount=53
I have tried loads of agent definitions, they all cause facebook to just partially load. Definitions with only general.useragent.vendor work and of course, they get reset on browser restart.
I would like to know if anyone else sees this.

It's general.useragent.override
indeed.
Just
Code:

sed -i 's/override/vendor/g' /home/user/.mozilla/microb/user.js
And try whether it works. I might implement an option to use vendor when I finish the sql stuff

macey 2013-09-26 08:30

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by marmistrz (Post 1376871)
I might implement an option to use vendor when I finish the sql stuff

That would be great, would be interested to know how you make it permanent. I haven't been able to find out how prefs* get reloaded/reset on browser reset. I want to make general.hostagent.vendor permanently set to my option.

macey 2013-09-26 08:44

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by marmistrz (Post 1376871)
Code:

sed -i 's/override/vendor/g' /home/user/.mozilla/microb/user.js
And try whether it works.................

What Is this supposed to do?
I understand sed but can't understand what this is supposed to do... Anyway, tried it & facebook still fails....

edit, got you, changed 'user' to 'vendor' still fails though... when look in
about:config, my user agent is listed in the general.useragent.override
entry, it would be, as can have only one 'vendor' entry, that loaded from 'prefs*'

marmistrz 2013-09-26 08:45

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by macey (Post 1376874)
What Is this supposed to do?
I understand sed but can't understand what this is supposed to do... Anyway, tried it & facebook still fails....

It'd set the general.useragent.vendor instead of general.useragent.override

Just edits the file

macey 2013-09-26 08:57

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by marmistrz (Post 1376875)
Just edits the file
[/FONT][/COLOR]

See prev post, please. sorry......

taixzo 2013-09-26 09:58

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Would it be possible to do this for Harmattan?

peterleinchen 2013-09-26 11:41

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by taixzo (Post 1376894)
Would it be possible to do this for Harmattan?

iirc there is already such possibility, but only with MeeFox.
So I'd like to have this also (in general).

marmistrz 2013-09-26 14:55

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by macey (Post 1376879)
Sere prev post, please. sorry......

Just look at this: http://kb.mozillazine.org/User.js_file
And try to tune it to your needs. When you find something that works great, let me know, and I'll add it to uat.

macey 2013-09-26 16:56

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by marmistrz (Post 1376965)
just look at this: http://kb.mozillazine.org/user.js_file
and try to tune it to your needs. When you find something that works great, let me know, and i'll add it to uat.

very interesting!

macey 2013-09-26 17:45

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by marmistrz (Post 1376965)
Just look at this: http://kb.mozillazine.org/User.js_file
And try to tune it to your needs. When you find something that works great, let me know, and I'll add it to uat.

I have had a play around with this....
As stated earlier, no matter what you enter in general.useragent.vendor, it gets overriden back to Firefox/3.5 Maemo Browser 1.7.48 RX-51 N900 on browser start.
I have created s user.js script, with:-
Code:

user_pref("general.useragent.vendor", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:21.0) Gecko/20100101 Firefox/21.0");
and killed browserui.

about:config
shows general.useragent.vendor unchanged @ Firefox/3.5.....

Changing user.js to:-
Code:

user_pref("general.useragent.override", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:21.0) Gecko/20100101 Firefox/21.0");
Gets implemented as an override ok, leaving vendor as Firefox/3.5....

Back to the drawing board...:

marmistrz 2013-09-26 17:47

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by macey (Post 1377006)
I have had a play around with this....
As stated earlier, no matter what you enter in general.useragent.vendor, it gets overriden back to Firefox/3.5 Maemo Browser 1.7.48 RX-51 N900 on browser start.
I have created s user.js script, with:-
Code:

user_pref("general.useragent.vendor", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:21.0) Gecko/20100101 Firefox/21.0");
and killed browserui.

about:config
shows general.useragent.vendor unchanged @ Firefox/3.5.....

Changing user.js to:-
Code:

user_pref("general.useragent.override", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:21.0) Gecko/20100101 Firefox/21.0");
Gets implemented as an override ok, leaving vendor as Firefox/3.5....

Back to the drawing board...:

grep for vendor in the same directory as user.js

macey 2013-09-26 18:05

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by marmistrz (Post 1377007)
grep for vendor in the same directory as user.js

Loads of them, all in the various versions of prefs.js pref-n.js etc...
You are getting up to speed now;);)
Yesterday, I went through ALL of the pref*.js files I could find....
Manually editing all of the vendor entres to my desired value. Only
to see they had changed back miraculously to Firefox/3/5.......
:confused::confused:

marmistrz 2013-12-04 14:05

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Version 1.2.0 is in extras-devel!

The news: you can create your presets as you wish ;)

Raimu 2013-12-04 18:11

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Thank you!!

marmistrz 2013-12-04 18:34

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Well, a small notice: I don't plan developing it further. But if you motivate me properly :) I may port the UI to qt-components-hildon, to give it a status bar and a fremantle look-and-feel ;) [or add something else]

/edit: hildon components aren't currently stable, so won't touch 'em

nick_stokes 2014-01-07 01:21

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
It's don't work... ID browser not changed... Can you fix it?

marmistrz 2014-01-07 15:24

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by nick_stokes (Post 1404414)
It's don't work... ID browser not changed... Can you fix it?

Please provide more info.
Code:

cat ~/.mozilla/microbe/user.js
Any log for the app?
Did you restart the browser app (fully)? I always need to close all instances, including the bookmarks window

nick_stokes 2014-01-08 11:04

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Okay, I try to explain the sequence.
Choose any version Well-known user agent. Do a Restart BrowserUI. Does try to launh browser from the program. Do reboot device. Nothing helps.
Maybe it's due to the fact that it put? Link

LOG:

Code:


BusyBox v1.21.1 (Debian 1.21.1power1+thumb0) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $
~ $ sudo gainroot
Root shell enabled


BusyBox v1.21.1 (Debian 1.21.1power1+thumb0) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # cat ~/.mozilla/microb/user.js
# Mozilla User Preferences

/* Do not edit this file.
*
* If you make changes to this file while the application is running,
* the changes will be overwritten when the application exits.
*
* To make a manual change to preferences, you can visit the URL about:config
* For more information, see http://www.mozilla.org/unix/customizing.html#prefs
*/


user_pref("accessibility.tabfocus", 1);
user_pref("browser.bookmarks.restore_default_bookmarks", false);
user_pref("block-zoom.block-zoom-enabled", false);
user_pref("browser.cache.memory.capacity", 4096);
user_pref("browser.cache.disk.capacity", 40960);
user_pref("browser.cache.disk.enable", true);
user_pref("browser.cache.offline.capacity", 40960);
user_pref("browser.display.jsfocus_for_visible_area", true);
user_pref("browser.sessionhistory.max_viewers", 0);
user_pref("browser.urlbar.clickSelectsAll", true);
user_pref("browser.shistory.preservezoom", true);
user_pref("browser.startup.homepage", "file://localhost/usr/share/browser/home_page/index.html");
user_pref("browser.startup.use_default_homepage", true);
user_pref("browser.turbo.enabled", false);
user_pref("browser.xul.error_pages.enabled", true);
user_pref("content.notify.ontimer", true);
user_pref("content.notify.interval", 1000);
user_pref("browser.fixup.alternate.enabled", false);
user_pref("browser.migration.version", 7);
user_pref("browser.pagethumbnails.storage_version", 2);
user_pref("browser.places.smartBookmarksVersion", 4);
user_pref("browser.rights.3.shown", true);
user_pref("browser.startup.homepage_override.mstone", "17.0.1");
user_pref("browser.syncPromoViewsLeft", 0);
user_pref("browser.tabs.onTop", false);
user_pref("extensions.enabledItems", "{ce402fde-cb5f-4d5f-a645-8b16b86d6004}:1.2.7,{e8738a3a-0e00-4bae-abf5-464f2f3d3e30}:1.1.5");
user_pref("extensions.getAddons.showPane", false);
user_pref("extensions.lastAppVersion", "3.5");
user_pref("extensions.update.notifyUser", false);
user_pref("googlepreview.insertads", true);
user_pref("googlepreview.insertimages", true);
user_pref("gtkmozembed.mscroll.step", 5);
user_pref("gtkmozembed.no_destroy_on_last_window", true);
user_pref("idle.lastDailyNotification", 1355415069);
user_pref("image.mem.min_discard_timeout_ms", 2500);
user_pref("layout.css.dpi", 96);
user_pref("layout.full.true.zoom.mode", true);
user_pref("layout.full.zoom.mode.fast", false);
user_pref("microb.download_images", true);
user_pref("microb.expand_frames", true);
user_pref("microb.hide_fixed_frames", true);
user_pref("microb.suspend_images", true);
user_pref("microb.suspend_javascript", 1);
user_pref("microb.suspend_plugins", true);
user_pref("mozilla.gfx.force.image.offscreen", true);
user_pref("mozilla.widget.allow_native_theme", true);
user_pref("mozilla.widget.force-24bpp", true);
user_pref("mozilla.widget.not-active", true);
user_pref("mozilla.widget.not-realized", true);
user_pref("network.cookie.prefsMigrated", true);
user_pref("network.cookie.warnAboutCookies", false);
user_pref("network.http.pipelining", true);
user_pref("network.gnomevfs.supported-protocols", "smb:,obex:,upnpav:");
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 24);
user_pref("network.http.max-persistent-connections-per-proxy", 12);
user_pref("network.http.max-persistent-connections-per-server", 24);
user_pref("network.http.pipelining.maxrequests", 40);
user_pref("network.http.pipelining.ssl", true);
user_pref("network.http.proxy.pipelining", true);
user_pref("network.online", false);
user_pref("network.proxy.http", "127.0.0.1");
user_pref("network.proxy.http_port", 8118);
user_pref("network.proxy.ssl", "127.0.0.1");
user_pref("network.proxy.ssl_port", 8118);
user_pref("network.proxy.type", 0);
user_pref("privacy.cpd.extensions-dta", true);
user_pref("privacy.cpd.sessions", false);
user_pref("privacy.sanitize.migrateFx3Prefs", true);
user_pref("privacy.sanitize.timeSpan", 2);
user_pref("plugin.default_plugin_disable", false);
user_pref("plugins.enableSuspending", false);
user_pref("plugins.flashhack", false);
user_pref("plugins.force.wmode", "opaque");
user_pref("privacy.popups.policy", 1);
user_pref("security.enable_java", true);
user_pref("security.warn_entering_secure", false);
user_pref("security.warn_leaving_secure", false);
user_pref("security.warn_submit_insecure", false);
user_pref("security.warn_viewing_mixed", false);
user_pref("services.sync.lastversion", "1.10.0");
user_pref("signon.forceAutocompletion", true);
user_pref("signon.rememberPasswords", true);
user_pref("snav.block", "http://www.google.com/reader http://docs.google.com");
user_pref("snav.disableJS", false);
user_pref("snav.enabled", false);
user_pref("snav.ignoreTextFields", false);
user_pref("social.cached.notificationIcons", "{\"provider\":\"https://www.facebook.com\",\"data\":{\"friends-jewel\":{\"name\":\"friends-jewel\",\"iconURL\":\"https://fbstatic-a.akamaihd.net/rsrc.php/v2/yK/r/KctZPWvpeXB.png\",\"counter\":0,\"contentPanel\":\"https://www.facebook.com/desktop/client/socialfox/contentpanel.php?socialfox=true&access_token=AAAD7ryIZCqu0BAEOcWstBjkAs0X45PkPtxKGwbGZCFylzyJzcJt8gkCakaBLZCpxqpOqcvScGYYW9jyhan2DMAdhjsizsFkZBiZBbiXuUvGK8ArfV86RMcnNYZBNTmSVMZD&jewelName=friends-jewel\",\"label\":\"Vedi tutte le richieste di amicizia\",\"menuURL\":\"http://www.facebook.com/friends/edit/?sk=requests\"},\"messages-jewel\":{\"name\":\"messages-jewel\",\"iconURL\":\"https://fbstatic-a.akamaihd.net/rsrc.php/v2/yj/r/2BR6iq9W_gT.png\",\"counter\":0,\"contentPanel\":\"https://www.facebook.com/desktop/client/socialfox/contentpanel.php?socialfox=true&access_token=AAAD7ryIZCqu0BAEOcWstBjkAs0X45PkPtxKGwbGZCFylzyJzcJt8gkCakaBLZCpxqpOqcvScGYYW9jyhan2DMAdhjsizsFkZBiZBbiXuUvGK8ArfV86RMcnNYZBNTmSVMZD&jewelName=messages-jewel\",\"label\":\"Vedi tutti i messaggi\",\"menuURL\":\"http://www.facebook.com/messages/?ref=mb\"},\"notifications-jewel\":{\"name\":\"notifications-jewel\",\"iconURL\":\"https://fbstatic-a.akamaihd.net/rsrc.php/v2/yN/r/Jm947_4nd4H.png\",\"counter\":0,\"contentPanel\":\"https://www.facebook.com/desktop/client/socialfox/contentpanel.php?socialfox=true&access_token=AAAD7ryIZCqu0BAEOcWstBjkAs0X45PkPtxKGwbGZCFylzyJzcJt8gkCakaBLZCpxqpOqcvScGYYW9jyhan2DMAdhjsizsFkZBiZBbiXuUvGK8ArfV86RMcnNYZBNTmSVMZD&jewelName=notifications-jewel\",\"label\":\"Vedi tutte le notifiche\",\"menuURL\":\"http://www.facebook.com/notifications\"}}}");
user_pref("social.enabled", false);
user_pref("social.sidebar.open", false);
user_pref("spellchecker.dictionary", "it_IT");
user_pref("toolkit.startup.last_success", 1355439585);
user_pref("toolkit.telemetry.prompted", 2);
user_pref("urlclassifier.keyupdatetime.https://sb-ssl.google.com/safebrowsing/newkey", 1357068506);
user_pref("xpinstall.whitelist.add", "");
user_pref("xpinstall.whitelist.add.36", "");
user_pref("webaddon.widgetutils.block", "http://maps.google.com/");
user_pref("webaddon.widgetutils.enabled", false);
/home/user #


marmistrz 2014-01-08 18:29

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by nick_stokes (Post 1404755)
Okay, I try to explain the sequence.
Choose any version Well-known user agent. Do a Restart BrowserUI. Does try to launh browser from the program. Do reboot device. Nothing helps.
Maybe it's due to the fact that it put? Link

LOG:

Code:


BusyBox v1.21.1 (Debian 1.21.1power1+thumb0) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $
~ $ sudo gainroot
Root shell enabled


BusyBox v1.21.1 (Debian 1.21.1power1+thumb0) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # cat ~/.mozilla/microb/user.js
# Mozilla User Preferences

/* Do not edit this file.
*
* If you make changes to this file while the application is running,
* the changes will be overwritten when the application exits.
*
* To make a manual change to preferences, you can visit the URL about:config
* For more information, see http://www.mozilla.org/unix/customizing.html#prefs
*/


user_pref("accessibility.tabfocus", 1);
user_pref("browser.bookmarks.restore_default_bookmarks", false);
user_pref("block-zoom.block-zoom-enabled", false);
user_pref("browser.cache.memory.capacity", 4096);
user_pref("browser.cache.disk.capacity", 40960);
user_pref("browser.cache.disk.enable", true);
user_pref("browser.cache.offline.capacity", 40960);
user_pref("browser.display.jsfocus_for_visible_area", true);
user_pref("browser.sessionhistory.max_viewers", 0);
user_pref("browser.urlbar.clickSelectsAll", true);
user_pref("browser.shistory.preservezoom", true);
user_pref("browser.startup.homepage", "file://localhost/usr/share/browser/home_page/index.html");
user_pref("browser.startup.use_default_homepage", true);
user_pref("browser.turbo.enabled", false);
user_pref("browser.xul.error_pages.enabled", true);
user_pref("content.notify.ontimer", true);
user_pref("content.notify.interval", 1000);
user_pref("browser.fixup.alternate.enabled", false);
user_pref("browser.migration.version", 7);
user_pref("browser.pagethumbnails.storage_version", 2);
user_pref("browser.places.smartBookmarksVersion", 4);
user_pref("browser.rights.3.shown", true);
user_pref("browser.startup.homepage_override.mstone", "17.0.1");
user_pref("browser.syncPromoViewsLeft", 0);
user_pref("browser.tabs.onTop", false);
user_pref("extensions.enabledItems", "{ce402fde-cb5f-4d5f-a645-8b16b86d6004}:1.2.7,{e8738a3a-0e00-4bae-abf5-464f2f3d3e30}:1.1.5");
user_pref("extensions.getAddons.showPane", false);
user_pref("extensions.lastAppVersion", "3.5");
user_pref("extensions.update.notifyUser", false);
user_pref("googlepreview.insertads", true);
user_pref("googlepreview.insertimages", true);
user_pref("gtkmozembed.mscroll.step", 5);
user_pref("gtkmozembed.no_destroy_on_last_window", true);
user_pref("idle.lastDailyNotification", 1355415069);
user_pref("image.mem.min_discard_timeout_ms", 2500);
user_pref("layout.css.dpi", 96);
user_pref("layout.full.true.zoom.mode", true);
user_pref("layout.full.zoom.mode.fast", false);
user_pref("microb.download_images", true);
user_pref("microb.expand_frames", true);
user_pref("microb.hide_fixed_frames", true);
user_pref("microb.suspend_images", true);
user_pref("microb.suspend_javascript", 1);
user_pref("microb.suspend_plugins", true);
user_pref("mozilla.gfx.force.image.offscreen", true);
user_pref("mozilla.widget.allow_native_theme", true);
user_pref("mozilla.widget.force-24bpp", true);
user_pref("mozilla.widget.not-active", true);
user_pref("mozilla.widget.not-realized", true);
user_pref("network.cookie.prefsMigrated", true);
user_pref("network.cookie.warnAboutCookies", false);
user_pref("network.http.pipelining", true);
user_pref("network.gnomevfs.supported-protocols", "smb:,obex:,upnpav:");
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 24);
user_pref("network.http.max-persistent-connections-per-proxy", 12);
user_pref("network.http.max-persistent-connections-per-server", 24);
user_pref("network.http.pipelining.maxrequests", 40);
user_pref("network.http.pipelining.ssl", true);
user_pref("network.http.proxy.pipelining", true);
user_pref("network.online", false);
user_pref("network.proxy.http", "127.0.0.1");
user_pref("network.proxy.http_port", 8118);
user_pref("network.proxy.ssl", "127.0.0.1");
user_pref("network.proxy.ssl_port", 8118);
user_pref("network.proxy.type", 0);
user_pref("privacy.cpd.extensions-dta", true);
user_pref("privacy.cpd.sessions", false);
user_pref("privacy.sanitize.migrateFx3Prefs", true);
user_pref("privacy.sanitize.timeSpan", 2);
user_pref("plugin.default_plugin_disable", false);
user_pref("plugins.enableSuspending", false);
user_pref("plugins.flashhack", false);
user_pref("plugins.force.wmode", "opaque");
user_pref("privacy.popups.policy", 1);
user_pref("security.enable_java", true);
user_pref("security.warn_entering_secure", false);
user_pref("security.warn_leaving_secure", false);
user_pref("security.warn_submit_insecure", false);
user_pref("security.warn_viewing_mixed", false);
user_pref("services.sync.lastversion", "1.10.0");
user_pref("signon.forceAutocompletion", true);
user_pref("signon.rememberPasswords", true);
user_pref("snav.block", "http://www.google.com/reader http://docs.google.com");
user_pref("snav.disableJS", false);
user_pref("snav.enabled", false);
user_pref("snav.ignoreTextFields", false);
user_pref("social.cached.notificationIcons", "{\"provider\":\"https://www.facebook.com\",\"data\":{\"friends-jewel\":{\"name\":\"friends-jewel\",\"iconURL\":\"https://fbstatic-a.akamaihd.net/rsrc.php/v2/yK/r/KctZPWvpeXB.png\",\"counter\":0,\"contentPanel\":\"https://www.facebook.com/desktop/client/socialfox/contentpanel.php?socialfox=true&access_token=AAAD7ryIZCqu0BAEOcWstBjkAs0X45PkPtxKGwbGZCFylzyJzcJt8gkCakaBLZCpxqpOqcvScGYYW9jyhan2DMAdhjsizsFkZBiZBbiXuUvGK8ArfV86RMcnNYZBNTmSVMZD&jewelName=friends-jewel\",\"label\":\"Vedi tutte le richieste di amicizia\",\"menuURL\":\"http://www.facebook.com/friends/edit/?sk=requests\"},\"messages-jewel\":{\"name\":\"messages-jewel\",\"iconURL\":\"https://fbstatic-a.akamaihd.net/rsrc.php/v2/yj/r/2BR6iq9W_gT.png\",\"counter\":0,\"contentPanel\":\"https://www.facebook.com/desktop/client/socialfox/contentpanel.php?socialfox=true&access_token=AAAD7ryIZCqu0BAEOcWstBjkAs0X45PkPtxKGwbGZCFylzyJzcJt8gkCakaBLZCpxqpOqcvScGYYW9jyhan2DMAdhjsizsFkZBiZBbiXuUvGK8ArfV86RMcnNYZBNTmSVMZD&jewelName=messages-jewel\",\"label\":\"Vedi tutti i messaggi\",\"menuURL\":\"http://www.facebook.com/messages/?ref=mb\"},\"notifications-jewel\":{\"name\":\"notifications-jewel\",\"iconURL\":\"https://fbstatic-a.akamaihd.net/rsrc.php/v2/yN/r/Jm947_4nd4H.png\",\"counter\":0,\"contentPanel\":\"https://www.facebook.com/desktop/client/socialfox/contentpanel.php?socialfox=true&access_token=AAAD7ryIZCqu0BAEOcWstBjkAs0X45PkPtxKGwbGZCFylzyJzcJt8gkCakaBLZCpxqpOqcvScGYYW9jyhan2DMAdhjsizsFkZBiZBbiXuUvGK8ArfV86RMcnNYZBNTmSVMZD&jewelName=notifications-jewel\",\"label\":\"Vedi tutte le notifiche\",\"menuURL\":\"http://www.facebook.com/notifications\"}}}");
user_pref("social.enabled", false);
user_pref("social.sidebar.open", false);
user_pref("spellchecker.dictionary", "it_IT");
user_pref("toolkit.startup.last_success", 1355439585);
user_pref("toolkit.telemetry.prompted", 2);
user_pref("urlclassifier.keyupdatetime.https://sb-ssl.google.com/safebrowsing/newkey", 1357068506);
user_pref("xpinstall.whitelist.add", "");
user_pref("xpinstall.whitelist.add.36", "");
user_pref("webaddon.widgetutils.block", "http://maps.google.com/");
user_pref("webaddon.widgetutils.enabled", false);
/home/user #


Maybe... I don't see the user agent preference here... Try removing it and please report.

/edit: My reply was ambiguous. Please remove the patch and try without it.

sixwheeledbeast 2014-05-16 19:07

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
On the off chance I noticed I issue with this package.
I was searching for a package in HAM and accidentally typed "qp"
the only hit was a package that clearly has a broken control file.

The uuencoded icon text is displayed as the description for the package, making HAM display a wall of characters.

Oddly it doesn't appear to have the same effect on the package page

Can this pleased be fixed

marmistrz 2014-05-19 16:14

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by sixwheeledbeast (Post 1425673)
On the off chance I noticed I issue with this package.
I was searching for a package in HAM and accidentally typed "qp"
the only hit was a package that clearly has a broken control file.

The uuencoded icon text is displayed as the description for the package, making HAM display a wall of characters.

Oddly it doesn't appear to have the same effect on the package page

Can this pleased be fixed

Thanks, fixed.

bla1 2014-06-11 18:56

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by marmistrz (Post 1392626)
Well, a small notice: I don't plan developing it further. But if you motivate me properly :) I may port the UI to qt-components-hildon, to give it a status bar and a fremantle look-and-feel ;) [or add something else]

Well, maybe this will motivate you:

Code:

~ $ /opt/UserAgentTool/bin/UserAgentTool
file:///opt/UserAgentTool/qml/main.qml:2:1: module "com.nokia.meego" is not installed
    import com.nokia.meego 1.0
    ^
~$

It seems that package doesn't pull all required dependencies, due to the whole mumbo-jumbo with meego elements. BTW, I don't want to sound ungrateful or anything, but meego things for an user-agent switching tool, sitting in Maemo's configuration panel? Really?

marmistrz 2014-06-11 19:06

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
First of all, hildon components are currently so unstable that I decided not to use it at all. Don't you have some qt-components installed? Please show the output of

Code:

ls /usr/lib/qt4/imports


All times are GMT. The time now is 08:13.

vBulletin® Version 3.8.8