|
|
2011-12-12
, 08:33
|
|
Posts: 1,048 |
Thanked: 979 times |
Joined on Mar 2008
@ SF Bay Area
|
#2
|
| The Following User Says Thank You to uvatbc For This Useful Post: | ||
|
|
2011-12-12
, 19:14
|
|
|
Posts: 543 |
Thanked: 802 times |
Joined on Apr 2010
@ Germany
|
#3
|


|
|
2011-12-12
, 19:25
|
|
|
Posts: 4,707 |
Thanked: 4,643 times |
Joined on Oct 2007
@ Bulgaria
|
#4
|
window.navigator.__defineGetter__("userAgent", function () { return "new UA" });
|
|
2011-12-13
, 22:42
|
|
|
Posts: 543 |
Thanked: 802 times |
Joined on Apr 2010
@ Germany
|
#5
|
If you manage to run it before the Twitter scripts, you can change the userAgent directly in the page by using __defineGetter__

![]() |
| Tags |
| qtwebkit, twitter |
| Thread Tools | |
|
twitter has updated their mobile website "app" for Android and iOS. We are able to use this "app" at our N9/50, too. We simply have to load the mobile twitter page at the build in webbrowser. Have a look at the second screenshot below.
Sadly the screen is not very well used and I would prefer to hide the adress and the status bar on top of the page.
So I thought I could create simly my own browser using Qt and qml:
import QtQuick 1.1 import com.nokia.meego 1.0 import QtWebKit 1.0 Page { Flickable { id: flickable width: parent.width height: parent.height contentWidth: Math.max(parent.width,webView.width) contentHeight: Math.max(parent.height,webView.height) WebView { url: "http://mobile.twitter.com" id: webView preferredWidth: flickable.width preferredHeight: flickable.height settings.javaEnabled: true settings.javascriptCanAccessClipboard: true settings.javascriptCanOpenWindows: true settings.javascriptEnabled: true settings.pluginsEnabled: true settings.localStorageDatabaseEnabled: true settings.localContentCanAccessRemoteUrls: true settings.offlineStorageDatabaseEnabled: true settings.offlineWebApplicationCacheEnabled: true } } }Has anyone a idea?
Am I able to use the engine of the build in browser instead of QtWebKit?
Please DONATE if you like my work!