My Opera is closing 1st of March

Croquemichette

Un blog qui veut dire tellement de choses...

WOT for Opera : introducing persistent storage

, , , , ,

Up until now, every website has been using cookies to store information about a user on the computer.
HTML5 introduces a new way to store these data : persistent storage.

I don't know if you've heard about it, but it's quite powerful, and very simple.

What is a cookie ?


When you're on a website, there are about 99 % that this website uses sessions, thus cookies. For example, when you're logged on my.opera.com, you'll have a cookie named opera_session. If you delete this cookie, you'll be disconnected.

The problem with cookies is that when you request any file of a domain (let's say you request an image from my.opera.com), the browser will send all cookies (in the HTTP header) of this domain (opera_session, Google cookies, etc.). If you request 10 files, and if you have 3 KiB of cookies, you'll send 3*10 KiB of cookies. The server then sends back to you these cookies.

Another inconvenience is what a domain can store using cookies : 4KiB (It's also a good thing because of the HTTP header thing ninja).

What is persistent storage ?


It works the same way as cookies. You have a key, and a value.
But, what is stored using persistent storage is not sent when a file is requested on a domain. Persistent storage is only client-side.

Each domain can store (by default in Opera) 5120 KiB of data.

If you want to know more details about this, check this page smile

By the way, persistent storage only works in Opera 10.50. Previous versions of Opera won't be able to use it, and they'll keep calling the WOT API for each search.

So what ?


So, why have I been talking about persistent storage ?

WOT for Opera now uses it to store scores of websites.
For example, you'll search something on Yahoo, you'll have 10 results. The script will take the domain of each of these results, then will call the WOT API to get the corresponding results.
And if you reproduce the same search 10 times, it will call 10 times the WOT API with the same domains. I'm sure they don't like it bigsmile

So, from now on, before calling the WOT API, the script will search in local storage to see if results are available. These results expired after 7 days (but they are not automatically deleted, local storages don't have an expiration date).
These results are stored in a Json format.
If you want to remove manually some scores, you'll have to open Opera Dragonfly (O menu > Page > Developer Tools > Open Dragonfly). Then, you have to select the tab you want to check, click on the dragonfly on the right, and select the tab.
Go the Storage tab, and remove what you want.
If you want to clear all results of a domain, open go to opera:webstorage, and clear what you want ninja

What's new in this version of WOT for Opera ?


  • + Persistent storage
  • + The updater is now more sexy
  • + New search engine : Ecosia.org
  • * Wikio didn't work anymore
  • * oAutoPagerize didn't work in Opera 10.50


As usual, you can download it here, or here, or just wait for the updater ninja
If you have any questions :
  • in french : you can ask me on Opera-fr
  • other languages : ask here

Still WOT :)Etwas zum entspannen...

Comments

Mağruf ÇolakoğluZAHEK Wednesday, March 10, 2010 9:28:48 AM

Good:)
To use web storeage is cleverer. Congr. smile

Ichann Wednesday, March 10, 2010 10:05:15 AM

very nice. Well done

metude Wednesday, March 10, 2010 10:24:02 AM

Screenshot?

Ichann Wednesday, March 10, 2010 11:00:48 AM

Originally posted by metude:

Screenshot?



Aesthetically nothing has changed

Mağruf ÇolakoğluZAHEK Wednesday, March 10, 2010 12:22:22 PM

Originally posted by metude:

Screenshot?


Görünürde değişen bir şey yok metude. Yeni veri depolama sitemine adaptasyon ve birkaç ufak düzenleme var.

metude Saturday, March 13, 2010 8:17:57 AM

Originally posted by ZAHEK:

Görünürde değişen bir şey yok metude. Yeni veri depolama sitemine adaptasyon ve birkaç ufak düzenleme var.


Anladım.

@Ichann
Thank yout for your interest.

Sami Tolvanensamitolvanen Sunday, March 14, 2010 5:01:10 PM

These results expired after 7 days


That's way too long, the official add-ons cache ratings for 30 minutes. Reputations can change dramatically in an hour, let alone a week. Other than that, nice job!

Ichann Friday, March 19, 2010 7:37:58 AM

Originally posted by metude:

@Ichann

Thank yout for your interest.



Birsey degil. http://files.myopera.com/Tamil/Smilies/Cool2.gif -

metude Friday, March 19, 2010 8:28:19 AM

Originally posted by Ichann:

Birsey degil.


Do you know Turkish? http://files.myopera.com/Tamil/Smilies/Cool2.gif -

or using Google Translate? lol

Ichann Sunday, March 21, 2010 5:43:14 AM

Ne bileyim agabecigim. Ama eger Translate funksiyonu kulanirsaydim eger, yazigiyisim cok am <(biraza ayip oldu smile ) ama cok daha iyi olabilirdi. Bunu senin yorumuna birakiyorum.

Avustralya'dan selemlar.

metude Sunday, March 21, 2010 10:50:30 AM

Translate "Birsey degil" gibi basit cümlelerde başarılı ancak karmaşık cümlelerde başarısız!


Türkçe'yi nerede öğrendiniz?

Ichann Friday, March 26, 2010 8:47:31 AM

Ben Turkum. Soru nerede ogrendim degil. Ben bu dil ile dogdum buyudum.

Buna Ramen, Annem'den ve Babam'dan illerlettirdik elbette. Ha. Turk okulunada gitmistim. Cok turkce yazmadigim icin biraz zayiflik var ama konusmam baya guclu (buradaki cocuklar dili cok ama cok kotu konusuyorlar).

Unutmayin gocmen cok var. Bir gun beni Zuhal Topal'ds goreceksiniz. smile.

Microsoft'un Bing tarim motorunun? simdi turkceyo sokme kapasitesi var.

Adamin Blogu'nu berbat ettik. http://files.myopera.com/Tamil/Smilies/LOL.gif -
_______________________________________

PH when can we expect to see the new release? I am using Power-drag with the 'always on drag mode' and have some conflicts with this script. It is hard for me to click on the O ratings. Pressing shift negates the problem.

pegaspe73 Thursday, May 6, 2010 9:40:45 AM

Hi PH, I am absolutely amazed from wot js you did ;-)
I created a userJS folder where I placed wot.js, linked Opera with this folder and WOT works perfectly :-). However when checking update another Opera tab opens where is text of wot.js, is this behaviour correct? I thought that something like "Your version is up to date" or "New version is available" will jump. Sorry if my question sounds odd, I am completely newbie as regards userjs.

Another question relates to this feature:

There's one constant to enable (B_DISPLAYWARNING must be set to true).
And one constant to set security level (N_SECURITY_LEVEL). This security goes from 1 to 5 (1 = dangerous, 2 = not safe, 3 = not sure, 4 = alright 5 = trusted). You will get a warning for every link you click whom domain has a score under the one you specify.

I can't figure out how to do it, I opened wot.js in notepad but I am totally lost. Can you pls help me?

PHcphr666 Thursday, May 6, 2010 5:42:02 PM

Hi pegas,

Regarding the update issue, there are two different ways to update the script.
The first one is automatic. The script checks sometimes if there's a new version, and asks you if you want to update. If you want to update, it will open a new tab with the URL of the script.
The second one is manual. Open the details box, and click on "update", as you did. It then opens a new tab with the URL of the script. You just need to know the version of the installed script (open the detail box, and hover "?"), and the version of the new script.
Then, for those both ways, you need to replace the installed script.

The variable B_DISPLAYWARNING was replaced by display_warning (default = true).
The variable N_SECURITY_LEVEL was replaced by security_level (default = 3 => "Not sure").
You just have to search those 2 variables in the script, and set the value you want.

pegaspe73 Friday, May 7, 2010 9:51:10 AM

Originally posted by PH`:

Regarding the update issue, there are two different ways to update the script.

The first one is automatic. The script checks sometimes if there's a new version, and asks you if you want to update. If you want to update, it will open a new tab with the URL of the script.

The second one is manual. Open the details box, and click on "update", as you did. It then opens a new tab with the URL of the script. You just need to know the version of the installed script (open the detail box, and hover "?"), and the version of the new script.

Then, for those both ways, you need to replace the installed script.


Thx for thorough clarification yes If I am correct v0.945 is the latest one.

Originally posted by PH`:

The variable B_DISPLAYWARNING was replaced by display_warning (default = true).

The variable N_SECURITY_LEVEL was replaced by security_level (default = 3 => "Not sure").

You just have to search those 2 variables in the script, and set the value you want.


I have noticed the both parameters ("true" and value "3") are already set in the script. I exercised this feature googling "crack" and clicking on the red rated pages. It works perfectly.

The last thing about which I am not sure is to how to rate a page. Clicking on "Score this website" initiates iframe to open with WOT page but I can't find there where and how to score. There is only chart with rating but scoring buttons nowhere. I will have to more explore WOT page bigsmile

PHcphr666 Friday, May 7, 2010 8:34:25 PM

To score a site, you need to be logged on mywot.com.
Once you're logged, you'll have a link "Edit my rating" just above the charts. Click this link, then just select a score on each chart. And save smile

pegaspe73 Sunday, May 9, 2010 6:52:20 PM

Originally posted by PH`:

To score a site, you need to be logged on mywot.com.

Once you're logged, you'll have a link "Edit my rating" just above the charts. Click this link, then just select a score on each chart. And save


Done! Thx for guidance up Now I just only need to find out how to get automatically logged on mywot.com account when opening Opera, otherwise when rating a page I have to log on at first then re open the rating dialogue in iframe and finally rate a page. I would like to get automatically logged on once I open Opera. Do you know is it somehow possible?

PHcphr666 Sunday, May 9, 2010 8:13:27 PM

Well, you first have to log in. Once logged, right click on the page of mywot, Edit Preferences > Cookies > look for a cookie starting by SESS". Edit this cookie, and set and far expire date. It should do the trick.

pegaspe73 Tuesday, May 11, 2010 11:12:05 AM

Originally posted by PH`:

Well, you first have to log in. Once logged, right click on the page of mywot, Edit Preferences > Cookies > look for a cookie starting by SESS". Edit this cookie, and set and far expire date. It should do the trick.


Thx but it doesn't work for me. However as I have set in Opera to delete all cookies when Opera closes plus CCleaner cleans all cookies too I am not surprised that it didn't work. Anyhow it is not a problem to log on at first before rating. Definitely many thanks to you as you learned me a lot about your script yes

DaringineerQuadunit404 Thursday, May 13, 2010 1:46:16 AM

Any chance for StartPage support? I'm beginning to use that over Google because of privacy issues, and StartPage is one of the "private" search engines.

PHcphr666 Thursday, May 13, 2010 7:35:03 PM

Hi Quadunit404,

I added StartPage (and other search engines) to the script.
Version 0.95 should be available through autoupdate.

estelsg Sunday, May 16, 2010 8:19:41 AM

Problem with version 0.95, look these screenshots:

With v.0.945 all is OK:

http://img243.imageshack.us/img243/8905/screenshot008s.jpg

But with v.0.95 toolbar of google web isn´t in the first page:

http://img43.imageshack.us/img43/7664/screenshot009ax.jpg

Any solution to the problem? Thanks

PHcphr666 Sunday, May 16, 2010 10:42:38 AM

Hi estelsg,

You can follow this issue here and maybe this is gonna help you :
Go to opera:webstorage, search for each Google domains, click on each. Tell me what is the size or each, and click on Clear.
If it doesn't solve the problem, do this :

Open the script, go to line 218, you should see "enable : true", change "true" to "false".

pegaspe73 Sunday, May 16, 2010 4:04:07 PM

More than Google problem annoys me that you CAN go on a webpage that has a red annotation without prompting you. It only flashes in red over google result page but then continues to the page. Very dangerous !!! Is it a bug or intentional? In v0.945 when clicking on such link marked with red circle you have been prompted to choose to stop or to go there. If it is intentional change please post a link to download old version 0.945. Thx.

PHcphr666 Sunday, May 16, 2010 7:44:02 PM

Hum, thanks smile

The new script is online, it corrects this bug.

pegaspe73 Monday, May 17, 2010 7:09:00 AM

Originally posted by PH`:

Hum, thanks :smile:



The new script is online, it corrects this bug.


Thx for quick action, now it works how it is supposed to including links on Google yes

estelsg Monday, May 17, 2010 1:55:59 PM

Hi PH thanks a lot, it works!

One asking "enable : true" line is where says "localStorage :" ?

Thanks a lot again! bigsmile

PHcphr666 Monday, May 17, 2010 2:08:46 PM

Yes, you have "localStorage :" a few lines above.

scatbin Monday, May 17, 2010 3:50:34 PM

Latest version seems to have broken Google homepage slightly, auto complete no longer works and the menu bar at the top doesn't fade in

pegaspe73 Monday, May 17, 2010 4:11:00 PM

Originally posted by scatbin:

Latest version seems to have broken Google homepage slightly, auto complete no longer works and the menu bar at the top doesn't fade in


Yes, the auto complete bug confirmed.

PHcphr666 Monday, May 17, 2010 6:52:31 PM

I broke Google \o/

scatbin Monday, May 17, 2010 9:23:36 PM

Congrats smile

DaringineerQuadunit404 Monday, May 17, 2010 10:35:55 PM

Well done, you just broke the dictators behind the Socialist Republic of GoogleTube (my new name for YouTube) bigsmile

sampei007 Sunday, May 23, 2010 2:05:24 PM

PHcphr666 Monday, May 24, 2010 8:20:55 PM

Hi sampei, I'll add this support in the next version (very soon).

DaringineerQuadunit404 Tuesday, May 25, 2010 12:59:44 AM

It also doesn't support https://startpage.com, which I would like plz.

DaringineerQuadunit404 Tuesday, May 25, 2010 1:00:11 AM

Minus the , at the end of the URL, obviously lol

PHcphr666 Tuesday, May 25, 2010 7:51:58 AM

Yeah, I know smile
I'm working on it.

sampei007 Tuesday, May 25, 2010 1:11:21 PM

@ PH

OK,TH !!

Jam Flavajamflava Saturday, June 12, 2010 11:48:41 AM

It does work on https://www.google.com
You have to type opera:config or about:config in the address bar
-> user prefs -> User JavaScript on HTTPS -> check this option

The WOT script is working fine, but I have a little problem with it. I've got double and sometimes qaudruple WOT-icons at the current site in stead of a single one.
Can someone help me with that?

laopa Saturday, July 17, 2010 3:54:02 AM

Hi,

Sorry for the newbieness. I installed the WOT for Opera JS recently and it has been working fine but just today (17/7/2010) it no longer seems to be functioning properly.

What I have now is one green WOT dot at the top right hand corner of each page, as in now. The same thing happens with searches - all I get is one green WOT dot in the same top right hand corner position.

What have I done?

Help.

laopa

SotroxpliDivobtech Saturday, July 17, 2010 8:37:22 AM

Salut Ph;

Je sais pas si tu te souviens de mon poste whistle ,Ou j'avais fait la remarque que le plugin n'afficher pas les icons d'alerte sur les recherches d'image.Et tu a répondu que tu incluras cette fonction dans les prochaines
version,comme s'est chose fait je tien a te remercié smile

PHcphr666 Saturday, July 17, 2010 8:58:00 AM

De rien smile

sampei007 Saturday, July 17, 2010 1:10:02 PM

PHcphr666 Saturday, July 17, 2010 7:42:52 PM

Hum, yes, I forgot this. By default, I want it to check only supported websites.

The version I released yesterday checks all pages.

laopa Sunday, July 18, 2010 12:14:08 AM

Hi,

Quick update. If I use the Bing or Yahoo search engines I get WOT Dots with each returned URL, plus the one in the top right hand corner. If I use Google or Ask, I only get the green WOT dot on the top right hand corner there are no WOT dots on any of the returned URL's.

No idea ..... help.

laopa

laopa Sunday, July 18, 2010 7:14:16 AM

Hi,

Using 0.961 now and the green wot dot has disappeared from the top right hand corner of all the URL's I visit. However I still show no wot dots on the URLs returned as part of a search when using Google or Ask. Haven't tried other search engines apart from the four I mentioned. Bing and Yahoo work OK and now with no green wot dot in the upper right corner.

I will keep an eye on the blog to see when the Google/etc search engine "wot dotless" thing is fixed.

Thanks a lot for this great Opera "must have" extra.

Kind Regards

laopa

laopa Sunday, July 18, 2010 7:40:56 AM

Hi,

Just a thought but am I inadvertently removing your "persistent storage"

- "the script will search in local storage to see if results are available" -

by using system cleaning software like Glary Utilities and Ashampoo's WinOptimizer 2010 or even CCleaner? Possibly even misusing Opera Delete Private Data?

My fault if this is the problem, but how can I "protect" this "data or these results"?

If this all sounds like rubbish, it just proves how little I know about "techie things".


laopa

PHcphr666 Sunday, July 18, 2010 11:03:37 AM

Hi,

First, can you give me the precise URL of a Google search page (also for Ask) ?

About the localStorage, it's not a problem. If there's nothing in it, the script will ask WOT API.

Write a comment

New comments have been disabled for this post.