{"id":18119766,"url":"https://github.com/mostlygeek/millionbook-firefox-addon","last_synced_at":"2025-07-13T16:05:46.461Z","repository":{"id":25057862,"uuid":"28477931","full_name":"mostlygeek/millionbook-firefox-addon","owner":"mostlygeek","description":"Firefox for Android add-on to make millionbook.com fonts bigger","archived":false,"fork":false,"pushed_at":"2024-04-03T19:09:03.000Z","size":214,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T11:18:27.599Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mostlygeek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2014-12-25T09:49:27.000Z","updated_at":"2025-03-11T16:10:16.000Z","dependencies_parsed_at":"2024-04-03T20:26:32.829Z","dependency_job_id":"078abf6d-d530-44dd-a158-7efb8896b04b","html_url":"https://github.com/mostlygeek/millionbook-firefox-addon","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mostlygeek/millionbook-firefox-addon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mostlygeek%2Fmillionbook-firefox-addon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mostlygeek%2Fmillionbook-firefox-addon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mostlygeek%2Fmillionbook-firefox-addon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mostlygeek%2Fmillionbook-firefox-addon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mostlygeek","download_url":"https://codeload.github.com/mostlygeek/millionbook-firefox-addon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mostlygeek%2Fmillionbook-firefox-addon/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265167476,"owners_count":23721450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-01T05:16:59.283Z","updated_at":"2025-07-13T16:05:46.445Z","avatar_url":"https://github.com/mostlygeek.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\n\nI built this as a last minute 🎄 Christmas 🎄 present for my mom. She often reads Chinese stories on Firefox on her tablet. Unfortunately, even the maximum text zoom is too small for her and strains her eyes. [1]\n\n\"That's bullshit!\", I exclaimed! I can FTFY with Greasemonkey! Oops. Turns out Greasemonkey isn't supported on Firefox for Android. #sadness.\n\nAfter much grumbling and searching it turned out a custom add-on would do the trick!\n\n## How I built it\n\n* Started at [Firefox's Add-On SDK docs](https://developer.mozilla.org/en-US/Add-ons/SDK) and installed the `cfx` command line utility\n* Using the [page-mod SDK](https://developer.mozilla.org/en-US/Add-ons/SDK/High-Level_APIs/page-mod), I run a custom script, [resizer.js](https://github.com/mostlygeek/millionbook-firefox-addon/blob/master/data/resizer.js) on the [millionbook.com](http://millionbook.com) website\n* `resizer.js` adds a floating button, that when clicked will change an inline css style to resize the font. It will also remember the last zoom level across pages.\n* Here's how it looks: (*I don't read Chinese so if text is NSFW, oops!*)![screenshot](https://raw.githubusercontent.com/mostlygeek/millionbook-firefox-addon/master/screenshots/1.png?a)\n* Built into an XPI file for Android: `$ cfx xpi --force-mobile`\n* Put it into my Dropbox and bit.ly linked it: [http://bit.ly/_millionbook](http://bit.ly/_millionbook) so I can open it on the tablet\n* \\o/\n\n## How to work on it \n\n* See [Developing extension for Firefox for Android](https://extensionworkshop.com/documentation/develop/developing-extensions-for-firefox-for-android/)\n* Need to have an Android emulator installed \n* Create a Tablet sized virtual machine, enable Android Developer Mode\n* Testing it\n  * in android emulator:  \n    * use Android Studio GUI to create a new tablet emulator    \n    * use `~/Library/Android/sdk/emulator`: `./emulator -list-avds`, `./emulator -avd XXXX` to start one\n    * use `adb devices` to find id of running emulators\n    * `web-ext run -t firefox-android --android-device=emulator-XXXX` to run in Firefox in emulator. Firefox Beta must be installed.  Android Developer mode + USB debugging must be enabled. Remote debugging via USB must be enabled in Firefox. \n  * on Desktop: `web-ext run` - to test locally \n* Building it: `web-ext build`\n* try opening this URL: https://millionbook.net/gd/y/yiming/qlxjn/001.htm\n----\n\n[1] [official fix in the works - bug 1074381](https://bugzilla.mozilla.org/show_bug.cgi?id=1074381)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmostlygeek%2Fmillionbook-firefox-addon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmostlygeek%2Fmillionbook-firefox-addon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmostlygeek%2Fmillionbook-firefox-addon/lists"}