01-19-2014, 08:48 PM | #1 |
doofus
Posts: 2,535
Karma: 13088847
Join Date: Sep 2010
Device: Kobo Libra 2, Kindle Voyage
|
Req for devs: assign another function to goodreads button.
I don't use goodreads so that button is useless to me. It'd be great to be able to assign a different function to it, like toggle wifi.
|
01-19-2014, 11:52 PM | #2 |
Evangelist
Posts: 456
Karma: 1287375
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
|
What have you tried so far? Is your device jailbroken? Can you ssh in? Do you want to do any of the work or do you want 'someone else' to do it for you?
I don't have a 'Goodreads' button on my touch, what is it, anyway? |
Advert | |
|
01-20-2014, 12:56 AM | #3 | |
Ex-Helpdesk Junkie
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
It lets you use some of the integration features between the Kindle Platform and Goodreads. Here's a picture from the product page, note the top button that looks like a "g": Spoiler:
@barty, this should be the same idea as when people changed the store icon to open the browser, see here: https://www.mobileread.com/forums/sho...d.php?t=178752 |
|
01-20-2014, 08:25 PM | #4 | |
doofus
Posts: 2,535
Karma: 13088847
Join Date: Sep 2010
Device: Kobo Libra 2, Kindle Voyage
|
Quote:
Thanks. That'll give me some place to start. |
|
01-22-2014, 02:05 PM | #5 |
doofus
Posts: 2,535
Karma: 13088847
Join Date: Sep 2010
Device: Kobo Libra 2, Kindle Voyage
|
in pw2, /usr/share/webkit-1.0/pillow/javascripts/search_bar.js has actions for 'badge' and 'discovery' changing neither of which did anything to change the goodreads button, so I tried the action for 'store' instead.
seems like this should work Code:
store: function () { //nativeBridge.setLipcProperty(M, "start", B); // disable wifi nativeBridge.setLipcProperty("com.lab126.cmd", "wirelessEnable", 0); nativeBridge.dismissChrome(); }, this below DOES work, so I'm in the right area Code:
nativeBridge.setLipcProperty("com.lab126.winmgr", "orientationLock", "L"); |
Advert | |
|
01-22-2014, 10:53 PM | #6 |
doofus
Posts: 2,535
Karma: 13088847
Join Date: Sep 2010
Device: Kobo Libra 2, Kindle Voyage
|
ok, I figured out a couple of things
1/ it should be Code:
nativeBridge.setIntLipcProperty("com.lab126.cmd", "wirelessEnable", 0); 2/ changing Code:
discovery: function () { ... } I still don't know what badge does. anyway, this is what I ended up doing Code:
store: function () { /* // original nativeBridge.setLipcProperty(M, "start", V); */ if (nativeBridge.getIntLipcProperty("com.lab126.cmd", "wirelessEnable")!=0) { nativeBridge.setIntLipcProperty("com.lab126.cmd", "wirelessEnable", 0); } else { nativeBridge.setLipcProperty(M, "start", B); } nativeBridge.dismissChrome(); }, I should mention this is PW2 5.4.2. the code is minified and obfuscated. I used http://jsbeautifier.org/ to make it readable. seems to work with no adverse effects. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Help] Kindle Touch - Any apps/function could replace dead physical Home button? | vankhoa | Kindle Developer's Corner | 4 | 11-24-2013 02:11 PM |
PRS-T1 Home button function after rooted? | fm365net | Sony Reader Dev Corner | 20 | 02-29-2012 03:18 PM |
Goodreads "Not interested" button | gers1978 | General Discussions | 2 | 09-17-2011 12:47 PM |
Req: copy button Author_sort to Author | Jason_54 | Library Management | 17 | 05-13-2011 02:27 PM |