Repository navigation
PanGalactic Monkey V1.1.0
** Release Update**
New Features & Improvements
🖥️ Request Desktop Site (User‑Agent Switch)
- Added a Request Desktop Site toggle that switches to a full desktop user agent for improved compatibility.
- Desktop UA applied: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
- Provides better rendering for desktop‑optimized websites.
⚙️ JavaScript Toggle (Enabled by Default)
- Introduced a new JavaScript ON/OFF menu option with persistent preference storage.
- Added:
- KEY_JS_ENABLED preference key
- javascriptEnabled field
- loadJsSetting() and toggleJavaScript() methods
- onCreate() now loads the saved JS preference before the first tab opens.
- addNewTab() now respects the dynamic JS setting instead of forcing JavaScript on.
- New menu item: “JavaScript: ON/OFF” wired to toggleJavaScript().
🖱️ Smooth GPU‑Composited Cursor (Shout out to Silver-Discount-276)
CursorView.java
- Enabled hardware acceleration with setLayerType(View.LAYER_TYPE_HARDWARE, null);
- Added setCursorPositionFast() using postInvalidateOnAnimation() for animation‑timed updates.
MainActivity.java - Replaced per‑keypress cursor teleporting with a continuous movement system:
- Direction keys tracked via a heldDirectionKeys set.
- A Choreographer.FrameCallback moves the cursor every ~16ms.
- Velocity ramps up to 3× over ~600ms for smooth, natural motion.
- Added startCursorFrameLoopIfNeeded() to manage the cursor animation lifecycle.
- Known bug: Cursor may get stuck so pressing the physical play/pause button may be necessary at times