Thread: Kindle browser
View Single Post
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