Active Topics

 



Notices


Reply
Thread Tools
Posts: 16 | Thanked: 1 time | Joined on Aug 2005
#1
Opera usually use pretty much the same setup on all platforms, so i was hoping i could add a urlfilter.ini file in order to remove all ads when browsing.

I've got xterm installed on my N800, and found opera.ini, but can't view it... I could copy it to user directory, but i don't have any application that will view it. I also tried to copy it to SD, but it's not possible to write files to SD? (just getting write errors - write protection is off)

Any suggestions?

Also: I created some folders on the SD-card. Two of them shows up normal - the others shows up as files, with date 01.01.1970!? Not possible to open... What is that supposed to mean? Works fine on windows...

Last edited by GeeZuZz; 2007-02-28 at 03:35.
 
Posts: 92 | Thanked: 2 times | Joined on Feb 2007 @ Toulouse, France
#2
Originally Posted by GeeZuZz View Post
I've got xterm installed on my N800, and found opera.ini, but can't view it... I could copy it to user directory, but i don't have any application that will view it. I also tried to copy it to SD, but it's not possible to write files to SD? (just getting write errors - write protection is off)

Any suggestions?
1. Open opera.ini in vi (which comes free with xterm). Assuming that you're in the /home/user directory, enter
vi ./.opera/opera.ini
at the command prompt. If you just want to view it without editing, use more:
more ./.opera/opera.ini

2. If you find vi a bit daunting (that would make at least 2 of us), copy opera.ini to the "Documents" directory (which is visible from the file manager). If you give the copy a .txt extension, you'll be able to open and edit it in Notes:
cp ./.opera/opera.ini ./MyDocs/.documents/operaini.txt

When you've made the changes you want, make sure that Opera is closed and copy the results back:

cp -f ./MyDocs/.documents/operaini.txt ./.opera/opera.ini

If for any reason Opera doesn't work properly, delete the amended ini file:
rm ./.opera/opera.ini
and start Opera again. As I'm sure you know, Opera is supposed to create a new default ini file. I've never had occasion to see whether this is true or not.

Bon courage,

Art
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#3
Another way to improve on the ads situation is to install privoxy (available from maemo) and configure a network setup with proxy enabled (it's per network configuration so I have 2 for the same network - one with, one without). The proxy setting is host 127.0.0.1 port 8118.

I use this when browsing sites that are otherwise unreadable for ad junk (moving banners and whatnot). It appears to be slightly slower, which is probably because of the extra indirection etc. But not so much that it matters.

However, I wish the Opera browser also had a proxy setup, then one could set up "global" proxy rules, i.e. use proxy with these sites, don't use proxy with those other sites, the usual. Keeping the current proxy-setting-per-network-config options too, of course. But as the network config proxy option isn't very useful for open hotspots as you normally don't save a config for these, an Opera option had been even more useful.
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 
Posts: 16 | Thanked: 1 time | Joined on Aug 2005
#4
Thanks for your replies. I don't know what was wrong with the memory card yesterday, but suddenly it started working again, and i was able to browse all diretories, and copy opera.ini over to the card for editing on the PC. Unfortunately, theres nothing about urlfilter.ini in the config file, and adding it did not work. I guess i'll have to contact Opera in order to find out whether or not urfilter.ini is supported on the Maemo version.

For those who don't know Opera for PC, urlfilter.ini is the file that contain a list of allowed url's (*) and "banned" (ads.server.com, server2.com/ads and so on).

TA-t3: Regarding proxies, there are some settings related to it in the config file:
Code:
[Proxy]
Use HTTP=0
Use HTTPS=0
Use FTP=0
HTTP Server
HTTPS server
FTP server
HTTP server
No Proxy Servers Check=0
No Proxy Servers
Use Automatic Proxy Configuration=0
Automatic Proxy Configuration URL=
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#5
Thanks, that's interesting. I didn't check the config file, I only looked for options in the Opera menu (there doesn't seem to be any).
Will experiment with this.
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 
YoDude's Avatar
Posts: 2,869 | Thanked: 1,784 times | Joined on Feb 2007 @ Po' Bo'. PA
#6
Thanks for the mini-tutorial artkavanagh

Another setting that looks promising regarding the GeeZuZz request is...

Ignore Unrequested Popups=0
under
[User Prefs]

The setting I am most interested in playing with is...

[User Agent]
Spoof UserAgent ID=3
Spoof Version Code=0

It is very possible that the reason Opera can not access Google Docs web apps is because their server wont allow it. Spoofing their server with a different ID may accomplish this

The complete ini file...

Opera Preferences version 2.0
; Do not edit this file while Opera is running
; This file is stored in UTF-8 encoding

[User Prefs]
Warn Insecure Form=0
Warn Security Level=0
Enable Cookies=3
File URLs Enabled=1
Load Figures=1
Show figures=1
Scale=100
Show ScrollBars=1
Scroll Is Pan=1
Do Not Show Cookie Domain Errors=0
Do Not Show Cookie Path Errors=1
Ask For Cookie Confirmation=0
Accept Cookies Session Only=0
Show Problem Dialog=1
Invert Active Element=1
Minimum Font Size=7
Document Mode=1
Offline Mode=0
Tables Enabled=1
WBMP Scale=100
Max Window History Lines=30
Max Global History Lines=100
******ed Image Loading=1
Avoid Flicker=1
Ignore Unrequested Popups=0
Enable Styling On Forms=1
Ignore Target=0
Default layout mode=0
Client Pull=1
Client Refresh=1
Home URL=http://www.nokia.com
First Update Delay=1000
Update Delay=200
Plugin Path=/usr/lib/browser/plugins
Force Frame Border=0
Enable Referrer=1
Enable Scrollbar Colors=1
Enable Scrollbar Colors On Window=0
Automatic RAM Cache=0
User JavaScript File=
User JavaScript=0
Language File=/usr/share/osso-browser-opera/opera_dir/locale/en_US.lng
Show Figures=1
Button Set=/home/user/.opera/skin/

[Document Mode]
Author CSS=1
Author Font and Colors=1
User CSS=0
User Font and Colors=0
User Link Settings=0

[User Mode]
Author CSS=0
Author Font and Colors=0
User CSS=0
User Font and Colors=1
User Link Settings=1

[User Agent]
Spoof UserAgent ID=3
Spoof Version Code=0

[Proxy]
Use HTTP=0
Use HTTPS=0
Use FTP=0
HTTP Server
HTTPS server
FTP server
HTTP server
No Proxy Servers Check=0
No Proxy Servers
Use Automatic Proxy Configuration=0
Automatic Proxy Configuration URL=

[Security Prefs]
Enable SSL v3=1
Enable TLS v1.0=1
OCSP Validate Certificates=0
Enable SSL v2=1

[Extensions]
Frames Show Active=1
Scripting=1
Plugins=1
Frames=1
IFrames=1

[Disk Cache]
Size=1024
Cache Docs=1
Cache Figs=1
Cache Other=1
Cache HTTPS=1
Empty On Exit=0
Docs Exp Days=0
Docs Exp Hours=0
Docs Exp Minutes=0
Figs Exp Days=0
Figs Exp Hours=0
Figs Exp Minutes=0
Other Exp Days=0
Other Exp Hours=0
Other Exp Minutes=0
Docs Modification=1
Figs Modification=1
Other Modification=1
Always Check Redirect=1
Always Check Redirect Images=1

[Cache]
Cache Docs=1
Cache Figs=1
Document=224
Figure=224
ECMAScript=512
Always Check Redirect=1
Always Check Redirect Images=1
Always Reload HTTPS In History=1
Cache HTTPS After Sessions=1

[File Types Section Info]
Version=2

[Adv User Prefs]
Enable HostName Expansion=1
HostName Expansion Prefix=www
HostName Expansion Postfix=com, org, net
Track Password Cookie Usage=0
Plugin Ignore File=/home/user/.opera/pluginignore.ini

[Multimedia]
Show Animation=1
Always load favicon=1

[Performance]
HTTP Error Strategy=2
Max Connections Server=6
Max Connections Total=6
Synchronous DNS Lookup=0

[Application]
Cookie Acceptance=0
Popup Acceptance=0
Load Home Page=1
Default Home Page=/usr/share/browser/home_page/index.xhtml
Memory Cache=3
Remember password for forms=1
Remember password=1

[Font.Form.Text]
Height=-13
FaceName=monospace

[Font.Form.Input]
Height=-13
FaceName=sans-serif

[Font.Form.Button]
Height=-13
FaceName=sans-serif

[File Types Extension]
audio/x-scpls=,0
audio/x-mpegurl=,0
audio/x-pn-realaudio=,0

[File Types]
audio/x-scpls=0,,,,pls,|
audio/x-mpegurl=0,,,,m3u,|
audio/x-real=0,,,,ram,|
video/3gpp=1,,,,3gp,3gpp,|
audio/x-pn-realaudio=1,,,,ram,rm|

Last edited by YoDude; 2007-03-01 at 12:28.
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#7
I checked the user-agent story already (another thread), this is not enough to get Google docs running, unfortunately.
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 
YoDude's Avatar
Posts: 2,869 | Thanked: 1,784 times | Joined on Feb 2007 @ Po' Bo'. PA
#8
Originally Posted by TA-t3 View Post
I checked the user-agent story already (another thread), this is not enough to get Google docs running, unfortunately.
What ID was used and where...

I have had success with a desktop Opera browser >>http://www.internettablettalk.com/fo...7168#post37168

BTW, could you please point to the thread you speak of. It's not that I'm lazy. It's just seems a whole lot more efficient that way.
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#9
You can try this on your N800 yourself. This is how I did it (I didn't touch the opera config file, but that could work as well, but presumably for all sites instead of specific ones):
- Install privoxy
- Set up a network config version that uses proxy (127.0.0.1 port 8118)
- Append the following three lines to /etc/privoxy/user.action:

{+hide-user-agent{Mozilla/5.0 (X11; U; Linux i686; rv:1.8.1.1) Gecko/20061205}}
.google.com
www.showmyip.com

(it doesn't have to be _exactly_ that user-agent, I just used what www.showmyip.com showed me when I pointed my desktop Firefox to it)

- Do /etc/init.d/privoxy stop
- Do /etc/init.d/privoxy start

- Test your setup by pointing the N800 to www.showmyip.com, the user-agent is down there somewhere.
- If it looks ok, start testing google apps.

(Obviously some of the steps above have to be done as root)
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 
YoDude's Avatar
Posts: 2,869 | Thanked: 1,784 times | Joined on Feb 2007 @ Po' Bo'. PA
#10
Ah, "I see" said the blind man...

I was hoping for info on the values associated with this >>
[User Agent]
Spoof UserAgent ID=3
Spoof Version Code=0
found in the ini.

I also see by the link you posted in another thread >> http://maemo.org/maemowiki/WebAppsOnIT

That Google Docs and Spreadsheet apps are not reported...

Ajax for the calender app is broken but calenders are a dime a dozen (really). I have a bunch of devices that provide various ways to record and remind me of events... yet I'm still late for my dentist appointments.

The Docs and Spreadsheets apps are new and are of more interest to folks who may have simple editing to do and are looking for a way to leave the desktop and work on the office or campus quad without having to drag out a lappy. Particularly on one of the soon to come, sunny days of spring...

There are others who can't log on to brokerage or banking accounts simply because the server doesn't recognize the browser.

Once a value is known, a simple script or vi edit may help them justify the expense of the N800.
 
Reply


 
Forum Jump


All times are GMT. The time now is 19:00.