mirror of
https://github.com/arkenfox/user.js.git
synced 2024-11-22 18:41:38 +01:00
Updated 1.6 Firefox Android (markdown)
parent
49ef3ef8cf
commit
bf08f52be3
@ -32,34 +32,34 @@ If the device is not seen (note any settings changes for reversal later): Visit
|
|||||||
|
|
||||||
[Mozilla - Debugging_Firefox_for_Android_with_WebIDE](https://developer.mozilla.org/en-US/docs/Tools/Remote_Debugging/Debugging_Firefox_for_Android_with_WebIDE)
|
[Mozilla - Debugging_Firefox_for_Android_with_WebIDE](https://developer.mozilla.org/en-US/docs/Tools/Remote_Debugging/Debugging_Firefox_for_Android_with_WebIDE)
|
||||||
|
|
||||||
- Enable "Remote debugging via USB" on Android Firefox (Options|Settings|Advanced)
|
- Enable `Remote debugging via USB` on Android Firefox (Options|Settings|Advanced)
|
||||||
- Enable Android's "USB debugging" (Settings app|Developer options)
|
- Enable Android's `USB debugging` (Settings app|Developer options)
|
||||||
* You might have to toggle either of these off/on later if troubleshooting.
|
* You might have to toggle either of these off/on later if troubleshooting.
|
||||||
* Note: to unhide "Developer options" tap "Build number" 7 times (Settings app|About Device)
|
* Note: to unhide `Developer options` tap `Build number` 7 times (Settings app|About Device)
|
||||||
- Watch out for any Android allow/connect prompts.
|
- Watch out for any Android allow/connect prompts.
|
||||||
- On desktop Firefox visit and set true: about:config?filter=devtools.webide.enabled
|
- On desktop Firefox visit and set true: about:config?filter=`devtools.webide.enabled`
|
||||||
- Open WebIDE on desktop Firefox (Shift+F8 or menu|Tools|Web Developer)
|
- Open WebIDE on desktop Firefox (Shift+F8 or menu|Tools|Web Developer)
|
||||||
- You need the ADB Helper Add-on (menu|Project|Manage Extra Components)
|
- You need the ADB Helper Add-on (menu|Project|Manage Extra Components)
|
||||||
* Click uninstall/install to update, or [get it here if you have trouble](https://ftp.mozilla.org/pub/labs/fxos-simulator/adb-helper/).</a>
|
* Click uninstall/install to update, or [get it here if you have trouble](https://ftp.mozilla.org/pub/labs/fxos-simulator/adb-helper/).</a>
|
||||||
- Click "Refresh Devices" icon (upper right), click on your Android device
|
- Click `Refresh Devices` icon (upper right), click on your Android device
|
||||||
|
|
||||||
|
|
||||||
:question: Troubleshooting
|
:question: Troubleshooting
|
||||||
If the device is not seen (note any settings changes for reversal later): Click the troubleshooting link on the Mozilla page for more details.
|
If the device is not seen (note any settings changes for reversal later): Click the troubleshooting link on the Mozilla page for more details.
|
||||||
- Did you plug in your USB cable? ;-D<
|
- Did you plug in your USB cable? ;-D<
|
||||||
- Windows: you might need to install Google USB Driver from Android SDK?
|
- Windows: you might need to install Google USB Driver from Android SDK?
|
||||||
- Linux: you may need a <a href="https://raw.githubusercontent.com/NicolasBernaerts/ubuntu-scripts/master/android/51-android.rules">/etc/udev/rules.d/51-android.rules</a> file, then restart udev (or reboot)?
|
- Linux: you may need a [/etc/udev/rules.d/51-android.rules](https://raw.githubusercontent.com/NicolasBernaerts/ubuntu-scripts/master/android/51-android.rules) file, then restart udev (or reboot)?
|
||||||
- Linux: you might need to install android-tools-adb / adb? (it can work without)
|
- Linux: you might need to install android-tools-adb / adb? (it can work without)
|
||||||
- Desktop firefox version is too much older than Android firefox?
|
- Desktop Firefox version is too old and not compatible with Android firefox?
|
||||||
|
|
||||||
:small_blue_diamond: 2: Remote access
|
:small_blue_diamond: 2: Remote access
|
||||||
|
|
||||||
- Open "about:config" page on Android Firefox
|
- Open `about:config` page on Android Firefox
|
||||||
* It will show under WebIDE "TABS" on Desktop Firefox too (use tabs refresh icon)
|
* It will show under WebIDE `TABS` on Desktop Firefox too (use tabs refresh icon)
|
||||||
- Click the remote tab name and the "web developer tools" panel will open
|
- Click the remote tab name and the `web developer tools` panel will open
|
||||||
* if you exit the panel by accident use: F12 or Project|Debug App
|
* if you exit the panel by accident use: F12 or Project|Debug App
|
||||||
- Select the "Scratchpad" button
|
- Select the `Scratchpad` button
|
||||||
* If there is no button for "Scratchpad" click the cog and enable it
|
* If there is no button for `Scratchpad` click the cog and enable it
|
||||||
|
|
||||||
:small_blue_diamond: 3: Inject the preferences
|
:small_blue_diamond: 3: Inject the preferences
|
||||||
- Paste the javascript and your `user.js` into the scratchpad
|
- Paste the javascript and your `user.js` into the scratchpad
|
||||||
@ -83,11 +83,11 @@ var user_pref = function(pref, val){
|
|||||||
//paste your user.js file content here
|
//paste your user.js file content here
|
||||||
```
|
```
|
||||||
|
|
||||||
- The script sets a function called user_pref so wherever that appears in the rest of the code (ie in the part from your user.js) that function is called to set the user preference. Any code for preferences that are commented out will not be run. If a preference name does not exist or is mistyped it will still be created without any warnings.
|
- The script sets a function called `user_pref` so wherever that appears in the rest of the code (ie in the part from your `user.js`) that function is called to set the user preference. Any code for preferences that are commented out will not be run. If a preference name does not exist or is mistyped it will still be created without any warnings.
|
||||||
- Use "Display" (Ctrl+L) to run the javascript as it adds a result message in a comment after the script, which will say "undefined" or show errors.
|
- Use `Display` (Ctrl+L) to run the javascript as it adds a result message in a comment after the script, which will say "undefined" or show errors.
|
||||||
- Also click the "Console" button to look for any other error messages.
|
- Also click the `Console` button to look for any other error messages.
|
||||||
- If errors occur on a line, the script might have stopped at that line, and you will need to correct the error in the code and re-run.
|
- If errors occur on a line, the script might have stopped at that line, and you will need to correct the error in the code and re-run.
|
||||||
- Check your Android Firefox about:support and about:config pages for your modified preferences, and see if the `_user.js.parrot` preference is showing success.
|
- Check your Android Firefox `about:support` and `about:config pages` for your modified preferences, and see if the `_user.js.parrot` preference is showing success.
|
||||||
|
|
||||||
:small_blue_diamond: 4: Finish
|
:small_blue_diamond: 4: Finish
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user