Home  
Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
65 user(s) are online (60 user(s) are browsing Forums)

Members: 1
Guests: 64

BCP, more...
Support us!
Recent OS4 Files
OS4Depot.net





"URL Settings" bug(?) in Odyssey
Home away from home
Joined:
2007/5/19 13:23
From England
Posts: 3489
Now that've I've disabled JavaScript by default in Odyssey, I have to use "Windows/URL Settings..." to automatically enable JavaScript for some sites I use regularly (which need it). But I've noticed what looks like a bug. For example, the following URL pattern fails to work:

http://*.google.co.uk/*

But this DOES work:
http://www.google.co.uk/*

Is this really just an intentional pattern-matching limitation, or is it a bug? Does this bug(?) exist in the MOS version?

   Report Go to top

Re: "URL Settings" bug(?) in Odyssey
Home away from home
Joined:
2007/9/11 11:31
From Russia
Posts: 4193
@ChrisH
Quote:

Is this really just an intentional pattern-matching limitation, or is it a bug? Does this bug(?) exist in the MOS version?


I find out some limitations there as well from first versions, but Fab says its just that webkit have silly url pattern parser, and maybe someday he will write his own code for url matcher, but probably still not.

For example:

http://*.google.com/ - works
http://*.google.*/ - nope


   Report Go to top

Re: "URL Settings" bug(?) in Odyssey
Home away from home
Joined:
2007/5/19 13:23
From England
Posts: 3489
@kas1e Quote:
http://*.google.com/ - works

OK, so we don't need a wildcard on the end of the URL then?

   Report Go to top

Re: "URL Settings" bug(?) in Odyssey
Home away from home
Joined:
2007/9/11 11:31
From Russia
Posts: 4193
Probably, i found that i even add in the readme back in past such paragraph:

Quote:

2. Why scrtips not works for me ?

You should be sure that you enter exact (1:1) pattern. I.e. with / without www where is need it, and with latest slash.

Like for example http://www.amigans.net/ or http://www.google.ru/


You also can use * for make multiply choice , like:

http://*.google.com/ - with or without www
http://*.ru/ - all .ru domains


Sadly, but WebKit script-parser not so perfect (for example it can't parse normally http://google.*), but that is how webkit parser done for now. Maybe Fab will write his own parser in future, or WebKit guys will update it later, but for now that is how it now. Anyway, that should't be big problem, because most userscripts come with their own whitelist (with the @include keyword), so parser settings it's usually correct by default for.


   Report Go to top





[Advanced Search]


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project