Firefox (browser)


< DRAFT+ >

Part of 🔗workflow !

Revisions:
    20200527 stub
    20200528 moved in from CHTv2
    20201008 touch
    20210227 anti-sponsored
    20210528 ping
    20210731 ping, rename
    20220107 ping →D+




*** SETTING UP


* ( system pre-preparation )

* make firefox always start with asking profile:
    $ firefox -P

* have /DISTRO/__firefox_open_tabs (V2) running !!!:
    (so it logs and manipulates tab lists, via crontab, regularly)



* create new profile !

* create new profile:
    "YYYYMMDD_name"

* go with that



* do the settings !

* bottom banner asks you to "choose what you share":
    Firefox Data Collection and Use:
        NO, NO (allow NOTHING)

* right click on empty silver space next address bar:
    "Bookmarks Toolbar: Always show"

* go to 🔗workflow-bookmarklets:
    !!! make this available in /HOME as mirror !

* open new tab:
    Settings → 
        Homepage & New windows → Blank
            Custom URL: http://localhost/e2h.php?_=HOME
        New tabs → Blank
            Deslect all
            Leave only Highlights: Bookmarks (... MAYBE ...)
        Firefox Home Content → (Deselect All)

* Settings:
    General:
        Restore previous session → ON
        Picture-in-picture → OFF
        Reccomend (extensions, features) as you browse → OFF

* Address bar:
    Settings (cog):
        Off: "show suggestions ahead" (or completely off)



* disable sponsors / ads

→ "about:config"
* all "sponsored" → FALSE:
    ~2021/08 5x !
* [...]

###



* plugin: firefox container

(just go to https://web.whatsapp.com and it'll happen ...)



* plugin: ublock origin

https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/

ALLOW TO RUN IN PRIVATE WINDOWS:
    → OFF (???)



* plugins: TabSessionManager

[!!*] settings:
    * SAVE LOCATION (limited to download folder):
        "0_TabSessionManager - Backup"
    * MACHINE NAME
    * ###

202203 review:
    * seems it does a great job saving sessiont to json
    * noticed it is "confirmed by mozilla for security"




* plugins: more [!!]


→ consult with 🔗hacker-tools



* change max-connections number

network.http.max-persistent-connections-per-server 6 → 10

I think this is what is (was) limiting parallel pads number!
Figure out for sure ###
### also, report to @@etherpad [!o]



__________ unsorted, new

* disable "Show search suggestions in address bar results" !:
    <-- this had a bug! ← ### ???

* disabled adblocker for totalism.org

* remove Youtube Shorts:
    https://addons.mozilla.org/en-US/firefox/addon/remove-youtube-shorts/
    (read & verified version 1.2.1)

* add spell checking for all languages you write in:
    https://addons.mozilla.org/en-US/firefox/language-tools/
    ↓
    https://addons.mozilla.org/en-US/firefox/addon/slovar-za-slovenski-jezik/


<-------------------------- (new) SETTING UP ↑





*** USE PATTERNS
BIG FIREFOX TIPS ;)


WORKFLOW— Use lots of tabs

* if you're not using 5+ windows, 50+ tabs, you are doing something wrong

* use about:performance , always kill tabs "that aren't working well"



Use a bookmarks toolbar

###


... sync it with collaborators

🔗workflow-bookmarklets



NOMAD— low data consumption

disable images!

about:config
→ permissions.default.image = 2



<-------------------------- (new) USAGE PATTERNS ↑





*** PAD


[!!] Setup own sync server ???

possible?
(if nothing else - to override firefox site in hosts!)

ties to "portable shortcuts" below !



[!!] definitely change search bar autocomplete

search only in open tabs was awesome, but missed something
this should be easy to mod via a pre-char !!!



[!] learn: no real idea how to use about_memory yet

about:memory

How to identify which tab is causing problems?:
    (From Within / Outside)?

How to set limits (auto kill)?:
    (From Within / Outside)?



[!!] DEV— portable shortcuts toolbar

###



(fixing weird telegram problem)

https://support.mozilla.org/en-US/kb/how-fix-error-when-trying-open-telegram-or-slack
"""
If you’re getting an NS_ERROR_DOM_ABORT_ERR while trying to open web.telegram.org or app.slack.com on Firefox 87, or if these pages aren’t loading at all, here’s a workaround you can try: 
  1. Enter about:serviceworkers in the address bar. 
  2. Click Unregister for the site you’re trying to visit. 
"""



take full page screenshot

* ctrl+shift+S
* "full"
* download → /DOWNLOADS

_____________

[!!] more direct key

https://www.reddit.com/r/firefox/comments/32aec0/is_there_a_shortcut_key_for_take_a_full_page/

______________________

[!!] how to: from commandline?



Check: Electorlysis→Fission

(memory management)

https://wiki.mozilla.org/Electrolysis
https://wiki.mozilla.org/Project_Fission
(switch to nightly + enable!)



"Presentation mode"

#ppt #slides

Within Firefox:
    * in about:preferences#privacy , disable all autocompletes for URL bar
    * check bookmarks toolbar for weird stuff
    * pre-close all tabs

General:
    * quick look at desktop
    * ###



Tab unloading! (new with v93)

manual @ about:unloads



SPECIAL FIREFOX PAGES

[!] userchrome.css customizations

about:config → toolkit.legacyUserProfileCustomizations.stylesheets

https://askubuntu.com/questions/1259342/i-want-to-enable-userchrome-css-i-want-to-edit-my-my-default-appearance-of-fir

_____________________________________
[!] example i wanted to try:
    remove the "loading" status in bottom-left corner
    (for E2X presentation)



[!!**] DEV/QSL3— Reconstruct via tablist

1) take preset profile + any datetime
2) get file in QS store
3) write python to filter & cleanup
4) use this on that:
    https://unix.stackexchange.com/questions/368041/open-url-in-new-firefox-window-not-tab-in-a-bash-script
    firefox --new-window  https://myurl.com/

also: QSL1 cleaner tablist files!

_____________ also

https://unix.stackexchange.com/questions/387876/open-multiple-websites-one-after-another-in-one-firefox-window-only?rq=1
$ firefox https://stackoverflow.com https://stackexchange.com https://reddit.com



Recover session (after crash)
20220408 1635 ... confirmed working
20220613 0254 ... confirmed working, fixed typo: recover.jsonlz4→recovery.jsonlz4


(Alternative to TabSessionManager):

BEFORE:
    * store session copies (with crontab)... about every 30min seems sensible

THEN:
    * delete:
        * sessionstore.jsonlz4
        * sessionstore-backups/*
    * copy as where it came from
        * sessionstore-backups/recovery.jsonlz4
    * open firefox:
        empty window!
    * history→Restore previous session
    * voila



[!!] consider "firefox-trunk" / "developer edition" / "nightly" / "quantum"

https://www.mozilla.org/en-US/firefox/developer/
* no apt though
* does it really have different features?

_____________ ACTUALLY! doing 20220513

via https://www.linuxcapable.com/how-to-install-firefox-next-beta-or-firefox-quantum-nightly-on-ubuntu-desktop/

$ sudo add-apt-repository ppa:ubuntu-mozilla-daily/ppa -y



[!!*] 101— Shortcuts

ADDRESS BAR (URL BAR) AUTOCOMPLETE
https://support.mozilla.org/en-US/kb/address-bar-autocomplete-firefox
"""
If you are looking for a specific type of result, like a bookmark or open tab, you can speed up the process of finding it by typing in special characters in the address bar separated by spaces: 
  • Add ^ to show only matches in your browsing history. 
  • Add * to show only matches in your bookmarks. 
  • Add + to show only matches in bookmarks you've tagged. 
  • Add % to show only matches in your currently open tabs. 
  • Add # to show only matches where every search term is part of the title or part of a tag. 
  • Add $ to show only matches where every search term is part of the web address (URL). The text "https://" or "http://" in the URL is ignored, but not "file:///". 
  • Add ? to show only search suggestions. 
"""


KEYBOARD
🔗workflow-bookmarklets
https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly


FIND
ctrl+f
/ → quick find
ctrl+g → next one


MORE TIPS
* Press Shift + Delete to remove the item from autocomplete


Firefox on Ubuntu: with apt, not snap
(problems 20240814)

* removed snap
* hoping it won't come back

* "firefox" vs "firefox-bin" (when kill):
    latter is apt i think! ###

https://support.mozilla.org/en-US/kb/install-firefox-linux#w_install-from-your-distribution-package-manager-recommended
i already had this (but still got snapped over somehow?)

* ###


<------------------------ ((new))