Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-06-2022, 02:58 AM   #1
Eures
Connoisseur
Eures is on a distinguished road
 
Eures's Avatar
 
Posts: 58
Karma: 66
Join Date: Jan 2012
Location: Italy
Device: Kindle Keyboard, Paperwhite 4
Kindle browser

So, please tell me which system files I have to go and modify to have the Kindle browser in landscape mode, I can't stand it anymore, I want the Kindle browser to be usable, it's absurd that it is limited on purpose!
Eures is offline   Reply With Quote
Old 01-07-2022, 03:24 PM   #2
katadelos
rm -rf /
katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.
 
Posts: 219
Karma: 3333683
Join Date: Nov 2019
Location: United Kingdom
Device: K5, KT, KT2, KT3, KT4, KV, PW2, PW3, PW4, PW5
Quote:
Originally Posted by Eures View Post
I want the Kindle browser to be usable
Might be waiting a while on that one

The orientation thing on the other hand: I had a look on my PW4 and was able to replicate your post from last year showing that the browser ignores the orientation when set using lipc-set-prop com.lab126.winmgr orientationLock.

You can force the orientation by making this change to /var/local/mesquite/browser/javascripts/browser.js:
Code:
diff --git a/javascripts/browser.js b/javascripts/browser.js
index 50b51fb..6215a3f 100755
--- a/javascripts/browser.js
+++ b/javascripts/browser.js
@@ -72,9 +72,10 @@ Kindle.use(function (b) {
             }
 
             // set orientation if needed
-            if (settings.orientation !== b.enums.orientations.auto) {
-                b.device.orientation = settings.orientation;
-            }
+            //if (settings.orientation !== b.enums.orientations.auto) {
+            //    b.device.orientation = settings.orientation;
+            //}
+            b.device.orientation = b.enums.orientations.landscape
         }
         else {
             // save settings
The other orientation options are:
Code:
enums.orientations = {
        auto: 'auto',
        portrait: 'portrait',
        portraitUp: 'portraitUp',
        portraitDown: 'portraitDown',
        landscape: 'landscape',
        landscapeLeft: 'landscapeLeft',
        landscapeRight: 'landscapeRight'
};
katadelos is offline   Reply With Quote
Old 01-08-2022, 05:35 AM   #3
Eures
Connoisseur
Eures is on a distinguished road
 
Eures's Avatar
 
Posts: 58
Karma: 66
Join Date: Jan 2012
Location: Italy
Device: Kindle Keyboard, Paperwhite 4
I didn't remember I was already that advanced last year... Wow, I'm studying this now , you're my best friend
Eures is offline   Reply With Quote
Old 01-09-2022, 04:41 PM   #4
Eures
Connoisseur
Eures is on a distinguished road
 
Eures's Avatar
 
Posts: 58
Karma: 66
Join Date: Jan 2012
Location: Italy
Device: Kindle Keyboard, Paperwhite 4
Quote:
Originally Posted by katadelos View Post
You can force the orientation by making this change to /var/local/mesquite/browser/javascripts/browser.js:
Code:
diff --git a/javascripts/browser.js b/javascripts/browser.js
index 50b51fb..6215a3f 100755
--- a/javascripts/browser.js
+++ b/javascripts/browser.js
@@ -72,9 +72,10 @@ Kindle.use(function (b) {
             }
 
             // set orientation if needed
-            if (settings.orientation !== b.enums.orientations.auto) {
-                b.device.orientation = settings.orientation;
-            }
+            //if (settings.orientation !== b.enums.orientations.auto) {
+            //    b.device.orientation = settings.orientation;
+            //}
+            b.device.orientation = b.enums.orientations.landscape
         }
         else {
             // save settings
Hi katadelos! I downloaded the browser.js file with WinSCP, edit it offline and then upload it to the Kindle. Can I omit the three commented lines? I mean, I'd just add 1 line like that:

Code:
// set orientation if needed
-           if (settings.orientation !== b.enums.orientations.auto) {
-               b.device.orientation = settings.orientation;
-           }
+          b.device.orientation = b.enums.orientations.landscape
        }
        else {
             // save settings

Last edited by Eures; 01-09-2022 at 05:50 PM.
Eures is offline   Reply With Quote
Old 01-09-2022, 05:23 PM   #5
JJTech
Nerd
JJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongue
 
JJTech's Avatar
 
Posts: 52
Karma: 22352
Join Date: Dec 2020
Location: USA
Device: Kindle Basic 3 (2019)
I was able to get my browser into landscape mode without jailbreaking:
All I did was navigate to ".active_content_sandbox\browser\resource\LocalSto rage\file__0.localstorage" on the kindle and open it in SQLite browser, and change the database entry for orientation to "landscape".
JJTech is offline   Reply With Quote
Old 01-10-2022, 03:48 AM   #6
Eures
Connoisseur
Eures is on a distinguished road
 
Eures's Avatar
 
Posts: 58
Karma: 66
Join Date: Jan 2012
Location: Italy
Device: Kindle Keyboard, Paperwhite 4
Quote:
Originally Posted by JJTech View Post
I was able to get my browser into landscape mode without jailbreaking:
All I did was navigate to ".active_content_sandbox\browser\resource\LocalSto rage\file__0.localstorage" on the kindle and open it in SQLite browser, and change the database entry for orientation to "landscape".
Here too I download (copy somewhere) the file__0.localstorage, edit it offline and reload it, right?


Last edited by Eures; 01-10-2022 at 03:51 AM.
Eures is offline   Reply With Quote
Old 01-10-2022, 12:15 PM   #7
JJTech
Nerd
JJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongue
 
JJTech's Avatar
 
Posts: 52
Karma: 22352
Join Date: Dec 2020
Location: USA
Device: Kindle Basic 3 (2019)
Just modify the JSON in the right panel, click apply on the panel below that, and then click save database on the top ribbon.
I'll probably try and create a proper tutorial later.
JJTech is offline   Reply With Quote
Old 01-10-2022, 12:37 PM   #8
JJTech
Nerd
JJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongue
 
JJTech's Avatar
 
Posts: 52
Karma: 22352
Join Date: Dec 2020
Location: USA
Device: Kindle Basic 3 (2019)
Lightbulb How To: Change Kindle browser orientation

This is a very simple process, and does not require you to jailbreak your Kindle.
Note that this process has only been tested on the KT4.
  1. Download SQLite Browser.
  2. Open SQLite browser and select "Open Database" on the top ribbon.
  3. Navigate to the .active_content_sandbox/browser/resource/LocalStorage/ folder on your Kindle. Select file__0.localstorage. Note that you may have to select "All files (*)" in the file type drop-down.
  4. When the database opens, select the "Browse Data" tab.
  5. In the table, click on the value column in the "settings" row. (It should hold JSON containing the browser settings). It will open on the right. Modify the "orientation" key, replacing it with the desired orientation. (Possible values: 'auto', 'portrait', 'portraitUp', 'portraitDown', 'landscape', 'landscapeLeft', 'landscapeRight')
  6. Click the apply button below the edit box.
  7. Click "Write Changes" on the top ribbon.

You're done! The changes should take effect next time you open the browser.

Last edited by JJTech; 01-13-2022 at 08:47 AM. Reason: Fix typo
JJTech is offline   Reply With Quote
Old 12-23-2022, 06:18 PM   #9
somethingelse
Junior Member
somethingelse began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Dec 2022
Device: Kindle Paperwhite
thanks

Quote:
Originally Posted by JJTech View Post
This is a very simple process, and does not require you to jailbreak your Kindle.
Note that this process has only been tested on the KT4.
  1. Download SQLite Browser.
  2. Open SQLite browser and select "Open Database" on the top ribbon.
  3. Navigate to the .active_content_sandbox/browser/resource/LocalStorage/ folder on your Kindle. Select file__0.localstorage. Note that you may have to select "All files (*)" in the file type drop-down.
  4. When the database opens, select the "Browse Data" tab.
  5. In the table, click on the value column in the "settings" row. (It should hold JSON containing the browser settings). It will open on the right. Modify the "orientation" key, replacing it with the desired orientation. (Possible values: 'auto', 'portrait', 'portraitUp', 'portraitDown', 'landscape', 'landscapeLeft', 'landscapeRight')
  6. Click the apply button below the edit box.
  7. Click "Write Changes" on the top ribbon.

You're done! The changes should take effect next time you open the browser.
Thanks so much for this. I have an old kindle I wanted to use as a b&w price display and this worked. If you also know how to make it full screen that would be amazing, but regardless thanks so much
somethingelse is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[EInk Browser v8.0] A new browser app for E-Ink devices Daniel Kao Android Devices 63 08-24-2022 09:33 PM
Browser history and search on the browser address bar? ItalianUruguayan Kobo Developer's Corner 0 04-13-2018 05:44 PM
Troubleshooting kindle 2 i browser dontcarewho007 Amazon Kindle 6 03-25-2017 01:50 PM
How to stop Tag Browser, Details and Cover Browser from showing on startup? stuartro Calibre 1 08-15-2016 11:53 PM
kindle browser stroy Introduce Yourself 3 06-05-2011 09:47 AM


All times are GMT -4. The time now is 03:46 PM.


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