![]() |
N9: How to selectively manipulate "Top Sites" in browser?
When you start the browser on the N9, you're greeted with the "Top Sites" - which is a nice idea, but doesn't work well for me for various reasons. I'd like to be able to:
/home/user/.grob/ seems to be where this stuff is stored, but I don't know how to access the files there (safely) and what kind of magic would be necessary to make some manual changes permanent. (I can imagine that deleting an entry will be simple... but renaming and then re-using it?) |
Re: N9: How to selectively manipulate "Top Sites" in browser?
Yep, it's the url_history.db. It's an sqlite database, specifically the TopSites table. Looks to me like it's ordered in grob by the accessCount field. I have copied the file to a PC, edited the database, copied it back over and saw the changes applied. All the bulleted items would be easy to change, just set the accessCount to a very high number so that your settings don't change
|
Re: N9: How to selectively manipulate "Top Sites" in browser?
Seems like Harmattan needs a sqlite database editor so that this could be done in N9. It could probably be used also for manipulating calender entries too.
|
Re: N9: How to selectively manipulate "Top Sites" in browser?
my N9 doesn't add new sites to "Top Sites" list after upgrade to PR 1.1
anyone has the same issue? |
Re: N9: How to selectively manipulate "Top Sites" in browser?
Yep, me too. The top sites remain static with various Nokia links. Anyway to get this to register new sites I visit?
|
Re: N9: How to selectively manipulate "Top Sites" in browser?
I got the same problem top sites don't change anymore like on PR 1.0
|
Re: N9: How to selectively manipulate "Top Sites" in browser?
Mine was like this until I kept going to talk.maemo and now that's top site! Maybe the counter for those sites was set high from default.
|
Re: N9: How to selectively manipulate "Top Sites" in browser?
Quote:
|
Re: N9: How to selectively manipulate "Top Sites" in browser?
Quote:
|
Re: N9: How to selectively manipulate "Top Sites" in browser?
I didn't end up editing anything after following the tip by konceptz
|
Re: N9: How to selectively manipulate "Top Sites" in browser?
Mine is still not updating. Have Visited TMO maybe 30 times over 3 weeks. Has someone reported this bug?
|
Re: N9: How to selectively manipulate "Top Sites" in browser?
Quote:
|
Re: N9: How to selectively manipulate "Top Sites" in browser?
There's an application in the Nokia store now that allows to manipulate the top sites:
MyTopSites, http://store.ovi.com/content/225055 |
Re: N9: How to selectively manipulate "Top Sites" in browser?
Quote:
"There is an app for that". |
Re: N9: How to selectively manipulate "Top Sites" in browser?
^ def. should just be integrated into browser.
enhancement request in bug-tracker folks ;) |
Re: N9: How to selectively manipulate "Top Sites" in browser?
I managed to make changes for that file (url_history.db), but how to copy it to that folder home/user/.grob ? ... I tried by File Manager and through terminal too ... but "can not copy because it exists" - does it needs some rights ? .. I want use my own ... :(
|
Re: N9: How to selectively manipulate "Top Sites" in browser?
It seems broken to me... the whole point of this functionality is that it tracks your most visited sites for you so you don't have to think/worry about it. If you have to manually edit the sites (or worse, download another app to do that) and think about which sites you visit most often... well, that defeats the purpose of it.
|
Re: N9: How to selectively manipulate "Top Sites" in browser?
Quote:
EDIT: it seems to be easy to do once I understood what I was really doing - is it surprise ? :) ... SQLite + Filebox is all what you need to change it and to make it look nice, at least what you like :) |
Re: N9: How to selectively manipulate "Top Sites" in browser?
Quote:
And a enhancement request submitted, so the app mentioned a few posts up, is redundant. There's def. some advantages to being able to manually edit, as mentioned in earlier posts. But it'd be far nicer if it could all be integrated into the browser UI... *I would but it's not ideal, given I still don't have my N9.... :( |
Re: N9: How to selectively manipulate "Top Sites" in browser?
I hope it's ok to bring up this old thread but I have some further questions regarding the "Top Sites".
First of all, editing the database or using the App "MyTopSites" does work - I can edit the Top Site entries specifically. Now what I try to do is to replace the default Nokia bookmarks that get restoree after deleting the browser history. Because these bookmarks get restored even when I delete them via MyTopSites before (or directly in the database) I think there must be a place where these sites are stored (hopefully it's not hard-wired some where internally). Also these bookmarks have some special features that cannot be used when manually editing the bookmarks. For example in a single default bookmark various words/parts can have different stylings (the Word "Nokia" is in dark blue and bold; "Environment" in dark green, "Conversations" in gray). With MyTopSites you can only define the font color and the background color for the entire entry. So does anybody has a clue where these special features are hidden or whether it's possible to supply you own "default" bookmarks that get restored after deleting the browser history instead of those from Nokia? EDIT: I just found out that when you set the "hasIcon" field to 0 (false) in one of the default Nokia bookmarks entry in the database the bookmarks will be styled normally (according to the supplied font color and background color). So this "hasIcon" field must be a hint for the browser to look in another place for the entry's styling. Maybe this helps a little. |
Re: N9: How to selectively manipulate "Top Sites" in browser?
I remember the bookmarks coming in a separate file...IIRC that file was in refhashlist when i was looking into refhashlist...
Try searching in refhashlist with "grob" maybe other than /usr/bin/grob which is the browser you are able to find the file containing the bookmarks... If i manage to find it I'll report here ;) Edit: It might be in /usr/share/grob/url_history.db Fiddle with it and let us know :D |
Re: N9: How to selectively manipulate "Top Sites" in browser?
Thank you so far!
This is really the original url history database file that gets restored when you delete your browsing history. I was able to change the entries in the original db and the changes were reflected. :) Then there is just the styling feature left. Regarding this I've found out that the styling is linked to the entry's ID. For example I found out that the ID 1 and 7 are linked with the styling for "Latest on Nokia N9", 2 and 8 with "Nokia N9 Features", 3 and 9 with "Nokia Environment", 4 and 10 with "Nokia Support", 5 and 11 with "Nokia Conversations", 6 and 12 with "Nokia.mobi". Anything above 12 seems to be links with an empty (or maybe just a non-existing) styling because these bookmarks will be displayed as an empty entry provided the hasIcon field is set to True. So I guess there may be another database (hopefully - it could also just be hard-wired) where these stylings are stored (I guess they consist of plain HTML). So now we just have to search this database... I'll try to find it but if someone else is also interested any help is appreciated. :) |
Re: N9: How to selectively manipulate "Top Sites" in browser?
So you were able to modify the .db file and the browser still worked? It shouldn't after a reboot if you are not using open mode...You need to reflect the modified .db file's sha1sum value in the refhashlist file...
You can also use refhashlist.pl to do the signing for you... However, if it works even after a reboot and you are not in open mode then that's a good thing :) |
Re: N9: How to selectively manipulate "Top Sites" in browser?
Actually I didn't try to reboot the device. I altered the db locally, uploaded it via FTP into "/usr/share/grob", went to settings to clear the browser history, started the browser and voila: my edited bookmarks where restored.
Also rebooted the phone just this minuted. Still working. Don't know if I have a magical N9. :D No open mode, but Inception installed. |
Re: N9: How to selectively manipulate "Top Sites" in browser?
Okay, I've found a solution to the styling problem and it's simpler than I thought:
In "/usr/share/grob" there is an folder named "t" (just saw that this folder is also present in "/home/user/.grob/"). In these folders you can place PNG images named with the entry ID. The corrosponding image will be displayed when the "hasIcon" field for the entry is set to true (for the IDs 1 to 12 there are already "icon" images exisiting). So you can do this either on the user side (but these modifications will be reverted when browser history gets cleared) or directly on the rootside which means these modifications will remain. :D |
Re: N9: How to selectively manipulate "Top Sites" in browser?
The Best Isaac,
Can you also check your new bookmarks do they have a count of number of times accessed? Using Top Sites it should give you the count so might as well use the .db or Top Sites for that matter and set it to a high value preventing your bookmarks and their styling from being replaced in the future... |
Re: N9: How to selectively manipulate "Top Sites" in browser?
1 Attachment(s)
Yeah the custom bookmarks do have an access count (the field in the "TopSite" table is "accessCount"). The original Nokia bookmarks had a count value of 5. You can set the value to anything you want, for example I set it to 100.
Again thanks a ton for pointing me to the right file! :) So this is how my Top Sites look currently (will add some additional entries later maybe): |
Re: N9: How to selectively manipulate "Top Sites" in browser?
i guess we now need some way of modifying the default links on the N9 itself :D
|
Re: N9: How to selectively manipulate "Top Sites" in browser?
Quote:
|
Re: N9: How to selectively manipulate "Top Sites" in browser?
Quote:
These links can be edited in the "Url" table in the "url_history.db". By default there are many links preset and the table gets filled with the visited URLs while using the browser. |
Re: N9: How to selectively manipulate "Top Sites" in browser?
Quote:
|
Re: N9: How to selectively manipulate "Top Sites" in browser?
Quote:
|
Re: N9: How to selectively manipulate "Top Sites" in browser?
Quote:
|
Re: N9: How to selectively manipulate "Top Sites" in browser?
Can you put step by step how you did that with the browser please.
I am noob at this kind of stuff but i want my browser to look like this:) |
Re: N9: How to selectively manipulate "Top Sites" in browser?
A bit late, but I finally decided to give this a shot. I'm really enjoying the look. Thanks The Best Isaac!
https://dl.dropboxusercontent.com/u/...2016-59-03.png |
All times are GMT. The time now is 08:04. |
vBulletin® Version 3.8.8