Updated firefox customization

- Get default profile and add user.js
This commit is contained in:
swapnil 2022-03-22 20:37:29 +05:30
parent 2714f44007
commit 0c729f122c
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1 @@
user_pref("browser.uiCustomization.state", "{\"placements\":{\"widget-overflow-fixed-list\":[],\"nav-bar\":[\"back-button\",\"forward-button\",\"stop-reload-button\",\"customizableui-special-spring1\",\"urlbar-container\",\"customizableui-special-spring2\",\"new-tab-button\",\"save-to-pocket-button\",\"downloads-button\",\"fxa-toolbar-menu-button\"],\"toolbar-menubar\":[\"menubar-items\"],\"TabsToolbar\":[\"tabbrowser-tabs\",\"alltabs-button\"],\"PersonalToolbar\":[\"import-button\",\"personal-bookmarks\"]},\"seen\":[\"save-to-pocket-button\",\"developer-button\"],\"dirtyAreaCache\":[\"nav-bar\",\"PersonalToolbar\",\"toolbar-menubar\",\"TabsToolbar\"],\"currentVersion\":17,\"newElementCount\":6}");

View File

@ -19,3 +19,15 @@
- name: Customize Firefox | Run Firefox Tweaks - name: Customize Firefox | Run Firefox Tweaks
shell: "cd {{ home_directory }}/Downloads/WhiteSur-gtk-theme/ && ./tweaks.sh -f" shell: "cd {{ home_directory }}/Downloads/WhiteSur-gtk-theme/ && ./tweaks.sh -f"
when: firefox_check.rc == 0 when: firefox_check.rc == 0
- name: Customize Firefox | Get the name of default profile
shell:
cmd: "ls ~/.mozilla/firefox/ | grep 'default-release'"
register: firefox_profile
when: firefox_check.rc == 0
- name: Customize Firefox | Place user.js in profile
copy:
src: user.js
dest: "{{ home_directory }}/.mozilla/firefox/{{ firefox_profile.stdout }}/user.js"
when: firefox_check.rc == 0