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)

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:11.

vBulletin® Version 3.8.8