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)

marmistrz 2012-09-09 13:59

[Announce] User Agent Tool - change Maemo Browser's user agent
 
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.

dumpystig 2012-09-09 14:48

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

Sounds more than good to me :)

nicholes 2012-09-09 15:09

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
glade to hear announce for maemo(still rocks)

thanks!

marmistrz 2012-09-09 15:17

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
I've just uploaded a small bugfix update

imo 2012-09-09 15:37

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
thanks buddy , always needed something like that .

Tiran 2012-09-09 15:40

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
marmistrz, Many thanks for the program! Please load into the first message pair of screenshots.

STVN 2012-09-09 15:51

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Black screen here. What could be that?

marmistrz 2012-09-09 16:02

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

Originally Posted by STVN (Post 1263719)
Black screen here. What could be that?

Can you post the log?

sifo 2012-09-09 16:10

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Thanks marmistrz :)
one question : this tool works with all browsers or just microB ?

./sifo

marmistrz 2012-09-09 16:11

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

Originally Posted by sifo (Post 1263726)
Thanks marmistrz :)
one question : this tool works with all browsers or just microB ?

./sifo

microB only

Tiran 2012-09-09 16:12

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

Originally Posted by STVN (Post 1263719)
Black screen here. What could be that?

Excuse, I do not see here a black screenshot.

B-RUNO 2012-09-09 16:39

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Thanks marmistrz very nice gui works great, I was trying to see iplayer but no luck keep asking to upgrade flash, does anyone knows how to get iplayer on the N900 none of the old tricks work anymore.

trlopes1974 2012-09-10 09:43

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Nice tool.
It wood be nicer if we could just pick the UserAgent name from a drop-down box. We could populate some .ini file with the desired useragents.

harry_e20000 2012-09-10 10:05

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
nice app and the ui is nice too buh a quick observation..on choosing any of the useragents,i seem to get input error/output error...what am I doing wrong?tnx once again

HtheB 2012-09-10 11:04

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Could this be done for the Harmattan browser aswell?

ziggadebo 2012-09-10 11:06

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Could you tell me if it contains a setting so that the website thinks it's a pc trying to access? Fed up getting mobile sites where I used to get the full site.

Thanks

wook_sf 2012-09-10 11:08

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
grob contains UA string in binary, not in some file, so, harmattan version is not possible at the moment, maybe if grob would be recompiled....it would be possible...

MFaroTusino 2012-09-10 11:22

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

Originally Posted by wook_sf (Post 1264165)
grob contains UA string in binary, not in some file, so, harmattan version is not possible at the moment, maybe if grob would be recompiled....it would be possible...

This is some what correct, however, there was an applet in settings (Pre-Beta 1 FW) which allowed you to alter the UA.

wook_sf 2012-09-10 11:26

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

Originally Posted by MFaroTusino (Post 1264171)
This is some what correct, however, there was an applet in settings (Pre-Beta 1 FW) which allowed you to alter the UA.

yes, i remember that, but, i am not sure how was grob compiled back then, i think it probably was like microb or something (with UA string in textual form) or even in gconf...idk..i assume grob is not opensource...otherwise we can edit that thing and recompile...though

thedead1440 2012-09-10 11:39

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
AFAIK grob is closed source hence we had to edit the binary directly to change the UA string...


Edit: If we can get the applet from pre-beta1 fw as well as the grob of that time we might be able to do some comparisons and see what can be done...IIRC grob is changed every update in fw but the binary has been closed source since day one...


Edit2: I had yesterday sent the grob files and refhashlist to marmistrz for pr1.3 and he is looking thru them to see if he can do any similar implementation...Just thought to let your'll know...

MFaroTusino 2012-09-10 11:47

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

Originally Posted by thedead1440 (Post 1264181)
Edit: If we can get the applet from pre-beta1 fw as well as the grob of that time we might be able to do some comparisons and see what can be done...IIRC grob is changed every update in fw but the binary has been closed source since day one...

There are people who have it currently, but they are being selfish

thedead1440 2012-09-10 11:50

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

Originally Posted by MFaroTusino (Post 1264184)
There are people who have it currently, but they are being selfish

Well that is nothing new then...Sadly the more numbers of people i see with n950s the less i see genuine developers who have or are developing something for harmattan...Its like we harmattan users are the b**tards of Nokia and hence first Nokia abandoned us then those very people who could be trusted to continue the community abandoned the ship too...

The development section of TMO is one very good indication; when somebody asks for help usually the OP ends up solving his own issue...I saw wook ask for something the other day and till date nobody helped even though many "n950 devs" know the solution...juiceme was doing something for dual-booting and choosing os using a tap on the screen instead of volume buttons and when he initially asked for help nobody helped him till he already had some basic ideas...Luckily, coderus and wook saw it and were there too but otherwise the cupboard is quite bare :(

That's why I am very thankful to the developers on here who have stayed on and continue to churn update after update as well as developing new apps...

wook_sf 2012-09-10 11:58

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

Originally Posted by MFaroTusino (Post 1264184)
There are people who have it currently, but they are being selfish

if there's way...then, there is way...:D lol
we just need to find it ;)

zerox 2012-09-10 13:41

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

Originally Posted by marmistrz (Post 1263724)
Can you post the log?

I encountered the black screen also. I started UserAgentTool from the command line and the following messages were reported:

file:///opt/userAgentTool/qml/main.qml:1:1: module "QtQuick" is not installed
import QtQuick 1.1

A search of talk.maemo.org turned up the following post:
http://talk.maemo.org/showpost.php?p...8&postcount=72
from which I understand that UserAgentTool may have a dependency on a version of QtQuick which is only available in the CSSU.

Would it be possible for you to build UserAgentTool to use the stock Maemo PR1.3 version of QtQuick?

Many thanks for your work on what is surely a very useful application.

zerox 2012-09-10 21:52

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

Originally Posted by zerox (Post 1264251)
I encountered the black screen also. I started UserAgentTool from the command line and the following messages were reported:

file:///opt/userAgentTool/qml/main.qml:1:1: module "QtQuick" is not installed
import QtQuick 1.1

A search of talk.maemo.org turned up the following post:
http://talk.maemo.org/showpost.php?p...8&postcount=72
from which I understand that UserAgentTool may have a dependency on a version of QtQuick which is only available in the CSSU.

Would it be possible for you to build UserAgentTool to use the stock Maemo PR1.3 version of QtQuick?

Many thanks for your work on what is surely a very useful application.

I solved my problem by installing the package "QtQuick 1.0 Compatibility Plugin" from Extras.

After using UserAgentTool to set my browser identification to Google Chrome, I was able for the first time to load the full-function version of m.youtube.com. As a result, I can now use my N900 to control the Google TV app in my Panasonic Blue-Ray player, from the comfort of my armchair.

Again, many thanks for your work.

marmistrz 2012-09-11 14:33

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

Originally Posted by harry_e20000 (Post 1264134)
nice app and the ui is nice too buh a quick observation..on choosing any of the useragents,i seem to get input error/output error...what am I doing wrong?tnx once again

I uploaded an update which shows exactly what the error is. Please provide more details after updating. And please show

Code:

ls -l /home/user/.mozilla/microb/user.js

Quote:

Originally Posted by trlopes1974 (Post 1264130)
Nice tool.
It wood be nicer if we could just pick the UserAgent name from a drop-down box. We could populate some .ini file with the desired useragents.

You mean a selection dialog?
About ini: what would be the benefit for an average user?

marmistrz 2012-09-12 16:00

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

Originally Posted by harry_e20000 (Post 1264134)
nice app and the ui is nice too buh a quick observation..on choosing any of the useragents,i seem to get input error/output error...what am I doing wrong?tnx once again

I uploaded an update which should fix it. It was probably a permission issue. Please tell whether the update fixed it.

imo 2012-09-14 16:33

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
it works great here but other than that ,can you add a link for microB window in the app menu so that right after choosing an agent we can launch the browser from the app menu,only if it is possible ?

marmistrz 2012-09-14 16:45

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

Originally Posted by imo (Post 1266407)
it works great here but other than that ,can you add a link for microB window in the app menu so that right after choosing an agent we can launch the browser from the app menu,only if it is possible ?

Launching browser from inside the app? Of course :)

marmistrz 2012-09-14 17:34

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
New update is available:
Changelog:
Code:

useragenttool (1.0.1-1) fremantle; urgency=low
  * Added browser launching
  * Fixed resetting fields in Custom user agent sheet
  - Cosmetical fix of the header
 -- Marcin Mielniczuk <hidden>  Fri, 14 Sep 2012 19:16:15 +0200


DJJonosound 2012-09-24 23:41

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Getting the iphone 5 one would be nice - it would look the same on the n9 because of having the almost the same size screen. :D

marmistrz 2012-11-06 16:53

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
I've pushed a new update that adds an icon!
Special thanks to sifo for doing it!

marmistrz 2012-11-06 16:57

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
I've pushed a new update that adds an icon!
Special thanks to sifo for doing it!

@all: Do you want UserAgentTool to be moved to the control panel (aka settings) instead of being in the menu?

nkirk 2012-11-07 15:05

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Yes, an entry under settings is much preferred.;)

//nkirk

vetsin 2012-12-10 15:48

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Hi marmitz,
I tried to install User Agent Tool but got this error. Any tips? Thanks!

/home/user # apt-get install useragenttool
Reading package lists... Done
Building dependency tree
Reading state information... Done
useragenttool is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 45 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up useragenttool (1.0.1-2) ...
chown: /home/user/.mozilla/microb/user.js: No such file or directory
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)

marmistrz 2012-12-10 17:03

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

Originally Posted by vetsin (Post 1303141)
Hi marmitz,
I tried to install User Agent Tool but got this error. Any tips? Thanks!

/home/user # apt-get install useragenttool
Reading package lists... Done
Building dependency tree
Reading state information... Done
useragenttool is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 45 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up useragenttool (1.0.1-2) ...
chown: /home/user/.mozilla/microb/user.js: No such file or directory
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)

Hi, it's a bug. I'll do a quick&dirty fix soon, but please report me one thing: please open the file
Code:

/var/lib/dpkg/info/useragenttool.postinst
with your favorite text editor and change
Code:

chown user:users
to
Code:

chown -f user:users
leaving the rest alone. And tell me whether this fixes the thing. If it works, I'll push the update straight away. If not, you'll have to wait a couple of days. It'll include the settings applet stuff

vetsin 2012-12-10 17:23

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
oopss... sorry I already removed the package. Will give it a shot tomorrow, need to go to bed now. Thanks!

adunanzav3x 2012-12-10 23:53

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Thanks! Great Tool! :D

vetsin 2012-12-11 09:59

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
hi marmistrz!
your fix works... i think. hehe i'm not really sure which website to check so don't really know what would be the difference. :) i'll browse a bit more.
thanks!

marmistrz 2012-12-11 15:10

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Update pushed: Changelog:
* Moved the shortcut to the Settings app
* Fixed the post-installation script: Fixes http://talk.maemo.org/showpost.php?p...1&postcount=35


All times are GMT. The time now is 04:01.

vBulletin® Version 3.8.8