Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-05-2016, 01:17 PM   #1
Barty
doofus
Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.
 
Barty's Avatar
 
Posts: 2,256
Karma: 7359115
Join Date: Sep 2010
Device: Voyage, PW2, Galaxy Tab S
Changing the store button

In f/w 5.4.x I was able to change the store button so it opens the web browser to my calibre server. Tried doing the same with 5.8.7 but no joy.The file and relevant code

Code:
/usr/share/webkit-1.0/pillow/javascripts/search_bar.js

        store: function() {
            nativeBridge.setLipcProperty(APP_MANAGER_ID, 'start', STORE_ID);
            nativeBridge.dismissChrome();
            nativeBridge.recordDeviceMetric("Pillow","Pillow" + getCurrentApp(),"store", 1, 0, METRIC_PRIORITY_LOW, METRIC_TYPE_COUNTER);
        },
modified

Code:
        store: function() {
            alert('yeah baby');
            // nativeBridge.setLipcProperty(APP_MANAGER_ID, 'start', STORE_ID);
            nativeBridge.setLipcProperty(APP_MANAGER_ID, "start", BROWSER_ID + '?view=' + encodeURIComponent("http://barty:8080"));
            nativeBridge.dismissChrome();
            // nativeBridge.recordDeviceMetric("Pillow","Pillow" + getCurrentApp(),"store", 1, 0, METRIC_PRIORITY_LOW, METRIC_TYPE_COUNTER);
        },
The alert never pops up.

Any ideas? Thanks in advance
Barty is offline   Reply With Quote
Old 12-07-2016, 02:37 AM   #2
trap000d
Member
trap000d can illuminate an eclipsetrap000d can illuminate an eclipsetrap000d can illuminate an eclipsetrap000d can illuminate an eclipsetrap000d can illuminate an eclipsetrap000d can illuminate an eclipsetrap000d can illuminate an eclipsetrap000d can illuminate an eclipsetrap000d can illuminate an eclipsetrap000d can illuminate an eclipsetrap000d can illuminate an eclipse
 
Posts: 23
Karma: 8028
Join Date: Sep 2016
Device: Kindle PW1
It's not working anymore.

See here:
https://www.mobileread.com/forums/sho...postcount=1663

Quote:
Originally Posted by Barty View Post
In f/w 5.4.x I was able to change the store button so it opens the web browser to my calibre server. Tried doing the same with 5.8.7 but no joy.The file and relevant code

Code:
/usr/share/webkit-1.0/pillow/javascripts/search_bar.js

        store: function() {
            nativeBridge.setLipcProperty(APP_MANAGER_ID, 'start', STORE_ID);
            nativeBridge.dismissChrome();
            nativeBridge.recordDeviceMetric("Pillow","Pillow" + getCurrentApp(),"store", 1, 0, METRIC_PRIORITY_LOW, METRIC_TYPE_COUNTER);
        },
modified

Code:
        store: function() {
            alert('yeah baby');
            // nativeBridge.setLipcProperty(APP_MANAGER_ID, 'start', STORE_ID);
            nativeBridge.setLipcProperty(APP_MANAGER_ID, "start", BROWSER_ID + '?view=' + encodeURIComponent("http://barty:8080"));
            nativeBridge.dismissChrome();
            // nativeBridge.recordDeviceMetric("Pillow","Pillow" + getCurrentApp(),"store", 1, 0, METRIC_PRIORITY_LOW, METRIC_TYPE_COUNTER);
        },
The alert never pops up.

Any ideas? Thanks in advance
trap000d is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[KT]Turn store button on search bar to browser button aditya3098 Kindle Developer's Corner 74 05-19-2017 08:33 PM
How to make the store button useful? bhaak Kindle Developer's Corner 11 02-22-2014 01:41 PM
PRS-T1 Changing button defaults AJ Starr Sony Reader 1 01-28-2012 12:00 PM
Changing Button functions vadindot iRex 3 03-26-2009 10:49 AM
Could you make a script for changing button shortcut for me? harpum iRex 42 07-13-2008 02:00 AM


All times are GMT -4. The time now is 05:21 PM.


MobileRead.com is a privately owned, operated and funded community.