View Single Post
Old 05-19-2012, 06:22 AM   #1
aditya3098
Valar
aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.
 
aditya3098's Avatar
 
Posts: 592
Karma: 1578840
Join Date: Jan 2012
Location: Far, far away (from radio shack) :(
Device: Kindle touch (hacked to the core) 5.3.2.1
[Kindle Touch] Turn store button on search bar to browser button

A very irritating thing in the kindle touch, especially for those who don't use the kindle store, is the store button on the search bar. We could remove this in < 5.1.0 but now that doesn't work. Here's how you turn that button into a browser button (detailed enough for a noob to follow):
First download the attachment, extract it and save "store.png" in /mnt/us i.e the usb drive.
Then ssh into the kindle and enter in:
Code:
cd /usr/share/webkit-1.0/pillow/assets/search_bar
mntroot rw
mv store.png store.bak
mv store_active.png store_active.bak
cp /mnt/us/store.png .
cp /mnt/us/store.png ./store_active.png
cd ../..
cd javascripts
cp search_bar.js /mnt/us
mntroot ro
Connect up the USB drive and open up search_bar.js with A PROGRAMMER'S EDITOR, OR ELSE YOU WONT HAVE UNIX LINE BREAKS!!!

After the comments you will find a line (somewhere between line 20-30):
Code:
const STORE_ID = 'app://com.lab126.store';
Replace this with:
Code:
const STORE_ID = 'app://com.lab126.browser';
Now save this and ssh back into the kindle and enter:
Code:
cd /usr/share/webkit-1.0/pillow/javascripts
mntroot rw
mv search_bar.js search_bar.bak
cp /mnt/us/search_bar.js .
mntroot ro
killall cvm
And voila! You have a browser button on the search bar.
Attached Thumbnails
Click image for larger version

Name:	done.jpg
Views:	735
Size:	18.9 KB
ID:	86600  
Attached Files
File Type: zip store.png.zip (765 Bytes, 230 views)

Last edited by aditya3098; 07-14-2012 at 08:43 AM.
aditya3098 is offline   Reply With Quote