Ashton Charbonneau 1 год назад
Сommit
8e7e092126

+ 48
- 0
README.md Просмотреть файл

@@ -0,0 +1,48 @@
1
+# Firefox Setup
2
+
3
+## Extensions / Scripts
4
+
5
+- [uBlock Origin](https://addons.mozilla.org/firefox/addon/ublock-origin/)
6
+	- <https://www.i-dont-care-about-cookies.eu/abp/>
7
+	- <https://raw.githubusercontent.com/DandelionSprout/adfilt/master/LegitimateURLShortener.txt>
8
+- [Multi-Account Containers](https://addons.mozilla.org/firefox/addon/multi-account-containers/)
9
+- [Skip Redirect](https://addons.mozilla.org/firefox/addon/skip-redirect/)
10
+- [Hover Zoom+](https://addons.mozilla.org/firefox/addon/hover-zoom-plus/)
11
+- [Vimium C](https://addons.mozilla.org/firefox/addon/vimium-c/)
12
+- [RES]
13
+- [Sponsorblock]
14
+- [DeArrow]
15
+- [KeePassXC-Browser](https://addons.mozilla.org/firefox/addon/keepassxc-browser/)
16
+- [Torrent Control](https://addons.mozilla.org/en-CA/firefox/addon/torrent-control/)
17
+
18
+- Temporary Containers
19
+- multifoxContainer
20
+- Link Status Redux
21
+- Redirector
22
+- Open in Unloaded Tab
23
+- Auto Plain Text Links
24
+- BackTrack Tab History
25
+- PrivateTab
26
+- Dorando keyconfig (disable/change shortcuts; may be other options)
27
+- Enter Selects (improved URL autocomplete; may be other options)
28
+- StyloaiX (replace with userContent.css)
29
+
30
+## Profiles / Containers
31
+
32
+- Personal
33
+	- Default
34
+	- Finance
35
+	- Social
36
+	- Work
37
+- Work
38
+	- Default
39
+	- Personal
40
+
41
+## Reference
42
+
43
+- <https://github.com/arkenfox/user.js>
44
+- <https://github.com/yokoffing/Betterfox>
45
+- <https://github.com/xiaoxiaoflood/firefox-scripts>
46
+- <https://github.com/MrOtherGuy/fx-autoconfig>
47
+- <http://kb.mozillazine.org/Profile_folder_-_Firefox>
48
+- <https://www.userchrome.org/what-is-userchrome-js.html>

+ 0
- 0
chrome/userChrome.css Просмотреть файл


+ 0
- 0
chrome/userChrome.js Просмотреть файл


+ 0
- 0
chrome/userContent.css Просмотреть файл


+ 24
- 0
styles/action-buttons-restyle.css Просмотреть файл

@@ -0,0 +1,24 @@
1
+/* Enable Page Action Button */
2
+#urlbar #page-action-buttons #pageActionButton { visibility: unset; }
3
+
4
+/* Hide Hover Zoom+ button */
5
+#urlbar #page-action-buttons #pageAction-urlbar-_92e6fe1c-6e1d-44e1-8bc6-d309e59406af_ { display: none; }
6
+
7
+/* Hide Multi-Account Containers button */
8
+#urlbar #page-action-buttons #pageAction-urlbar-_testpilot-containers { display: none; }
9
+
10
+/* Hide RES button */
11
+#urlbar #page-action-buttons #pageAction-urlbar-jid1-xufzosoflzsoxg_jetpack { display: none; }
12
+
13
+/* Hide reader view button when not active */
14
+#urlbar #page-action-buttons #reader-mode-button:not([readeractive="true"]) { display: none; }
15
+
16
+/* Hide default multifoxContainer label */
17
+#urlbar #page-action-buttons #userContext-label[value="Default"] { display: none; }
18
+
19
+/* Set multifoxContainer button color to default */
20
+#urlbar #page-action-buttons #userContext-label[value="Default"] + #userContext-indicator,
21
+#mainPopupSet menuitem.identity-icon-fingerprint[label="Default"] .menu-iconic-icon { fill: currentColor; }
22
+
23
+/* Set favorites icon color to default */
24
+#urlbar #page-action-buttons #star-button[starred] { fill: currentColor; }

+ 5
- 0
styles/bookmark-separator-shrink.css Просмотреть файл

@@ -0,0 +1,5 @@
1
+#PlacesToolbarItems > toolbarseparator::before {
2
+  filter: opacity(0.3);
3
+  height: 80%;
4
+  margin: auto;
5
+}

+ 43
- 0
styles/hacker-news-algolia.css Просмотреть файл

@@ -0,0 +1,43 @@
1
+@-moz-document domain("hn.algolia.com") { 
2
+  body,
3
+  .SearchFilters,
4
+  .SearchHeader_search,
5
+  .SearchHeader .SearchInput,
6
+  .SearchResults,
7
+  .Pagination {
8
+    background-color: hsl(218deg 14% 18%);
9
+  }
10
+  
11
+  .Story_title a {
12
+    color: hsl(218deg 14% 43%);
13
+  }
14
+  
15
+  li.Pagination_item-current button {
16
+    color: hsl(218deg 14% 46%);
17
+    border-color: hsl(218deg 14% 36%);
18
+  }
19
+
20
+  .SearchFilters_filters label,
21
+  .Pagination_item button {
22
+    border-color: hsl(218deg 14% 27%);
23
+  }
24
+
25
+  .SearchHeader .SearchIcon,
26
+  .Footer, .Footer a,
27
+  .SearchInput::placeholder,
28
+  .Pagination_item button,
29
+  .SearchHeader_settings a,
30
+  .SearchFilters,
31
+  .Dropdown_label,
32
+  .Story_title .Story_link,
33
+  .Story_meta, .Story_meta a,
34
+  .Story_comment {
35
+    color: hsl(218deg 14% 33%);
36
+  }
37
+
38
+  .SearchHeader_label,
39
+  .SearchHeader_logo,
40
+  .PoweredBy img {
41
+    display: none;
42
+  }
43
+}

+ 56
- 0
styles/hacker-news.css Просмотреть файл

@@ -0,0 +1,56 @@
1
+@-moz-document domain("news.ycombinator.com") {
2
+  body,
3
+  [bgcolor="#f6f6ef"],
4
+  [bgcolor="#ff6600"],
5
+  textarea,
6
+  form[action="comment"] input {
7
+    background-color: hsl(218deg 14% 18%);
8
+  }
9
+  
10
+  .votearrow {
11
+    filter: contrast(0%) invert() brightness(125%);
12
+    mix-blend-mode: soft-light;
13
+  }
14
+  
15
+  img[src="y18.gif"] {
16
+    filter: grayscale(1) brightness(60%);
17
+    mix-blend-mode: soft-light;
18
+    margin-right: 8px;
19
+  }
20
+
21
+  form[action="comment"] input,
22
+  form[action="comment"] textarea {
23
+    border-color: currentColor;
24
+    outline: none;
25
+  }
26
+  
27
+  [action="//hn.algolia.com/"],
28
+  .pagetop .hnname {
29
+    display: none;
30
+  }
31
+  
32
+  .subtext, .subtext a:link, .subtext a:visited,
33
+  .comhead a:link,
34
+  .rank,
35
+  form[action="comment"] input {
36
+    color: hsl(218deg 14% 33%);
37
+  }
38
+  
39
+  a:link, a:visited,
40
+  .pagetop a:visited,
41
+  .toptext,
42
+  form[action="comment"] textarea {
43
+    color: hsl(218deg 14% 43%);
44
+  }
45
+  
46
+  .c00, .c00 a:link, .c00 a:visited { color: hsl(218deg 14% 56%); }
47
+  .c5a, .c5a a:link, .c5a a:visited { color: hsl(218deg 14% 43%); }
48
+  .c73, .c73 a:link, .c73 a:visited { color: hsl(218deg 14% 39%); }
49
+  .c82, .c82 a:link, .c82 a:visited { color: hsl(218deg 14% 37%); }
50
+  .c88, .c88 a:link, .c88 a:visited { color: hsl(218deg 14% 37%); }
51
+  .c9c, .c9c a:link, .c9c a:visited { color: hsl(218deg 14% 34%); }
52
+  .cae, .cae a:link, .cae a:visited { color: hsl(218deg 14% 31%); }
53
+  .cbe, .cbe a:link, .cbe a:visited { color: hsl(218deg 14% 28%); }
54
+  .cce, .cce a:link, .cce a:visited { color: hsl(218deg 14% 26%); }
55
+  .cdd, .cdd a:link, .cdd a:visited, .comment { color: hsl(218deg 14% 24%); }
56
+}

+ 8
- 0
styles/menu-item-restyle.css Просмотреть файл

@@ -0,0 +1,8 @@
1
+/* Invert Norwell icon */
2
+#widget-overflow #widget-overflow-fixed-list #norwell-button .toolbarbutton-icon { filter: invert(); }
3
+
4
+/* Set StyloaiX icon to grayscale */
5
+#widget-overflow #widget-overflow-fixed-list #styloaix-button { filter: grayscale(1); }
6
+
7
+/* Set User Scripts icon to grayscale */
8
+#appMenu-popup #appMenu-multiView #appMenu-userChromeJS-button .toolbarbutton-icon { filter: contrast(10) grayscale(1) invert(); }

+ 75
- 0
user.js Просмотреть файл

@@ -0,0 +1,75 @@
1
+/* Startup */
2
+user_pref("browser.startup.homepage", "https://www.google.ca"); // home page
3
+user_pref("browser.startup.page", 3); // resume previous session
4
+user_pref("browser.newtabpage.enabled", false); // blank new tab page
5
+user_pref("browser.newtabpage.activity-stream.default.sites", ""); // blank top sites
6
+user_pref("browser.startup.homepage_override.mstone", "ignore"); // disable welcome
7
+
8
+/* Shutdown */
9
+// user_pref("privacy.sanitize.sanitizeOnShutdown", true); // clear data on shutdown
10
+// user_pref("privacy.clearOnShutdown.history", false); // save history
11
+// user_pref("privacy.clearOnShutdown.cache", true); // clear cache
12
+// user_pref("privacy.clearOnShutdown.downloads", true); // clear downloads
13
+// user_pref("privacy.clearOnShutdown.formdata", true); // clear form data
14
+// user_pref("privacy.clearOnShutdown.sessions", false);  // save sessions
15
+// user_pref("privacy.clearOnShutdown.cookies", false); // save cookies
16
+// user_pref("privacy.clearOnShutdown.offlineApps", true); // clear site data
17
+
18
+/* Warnings */
19
+user_pref("browser.aboutConfig.showWarning", false); // disable about:config warning
20
+user_pref("browser.warnOnQuitShortcut", true); // warn on quit
21
+
22
+/* Recommendations */
23
+user_pref("browser.newtabpage.activity-stream.showSponsored", false); // disable sponsored stories
24
+user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false); // disable sponsored shortcuts
25
+user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons", false); // disable recommended addons
26
+user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features", false); // disable recommended features
27
+user_pref("extensions.getAddons.showPane", false); // disable recommendations in about:addons
28
+user_pref("extensions.htmlaboutaddons.recommendations.enabled", false); // disable recommendations in about:addons
29
+user_pref("browser.discovery.enabled", false); // disable recommendations in about:addons
30
+user_pref("browser.messaging-system.whatsNewPanel.enabled", false); // disable what's new
31
+user_pref("extensions.pocket.enabled", false); // disable pocket
32
+
33
+/* Fingerprinting */
34
+user_pref("privacy.resistFingerprinting", false); // don't resist fingerprinting
35
+user_pref("privacy.resistFingerprinting.letterboxing", false); // don't resist fingerprinting
36
+// user_pref("webgl.disabled", false);
37
+
38
+/* DRM */
39
+user_pref("media.eme.enabled", true); // allow DRM
40
+
41
+/* Behaviour */
42
+user_pref("browser.tabs.loadBookmarksInTabs", true); // open bookmarks in a new tab
43
+user_pref("browser.bookmarks.openInTabClosesMenu", false); // opening bookmarks doesn't close the menu
44
+user_pref("layout.word_select.eat_space_to_next_word", false); // don't select extra space after words
45
+user_pref("general.autoScroll", true); // scroll on middle click
46
+user_pref("browser.ctrlTab.sortByRecentlyUsed", false); // ctrl+tab cycles in order
47
+user_pref("toolkit.zoomManager.zoomValues", ".1,.3,.5,.6,.7,.8,.85,.9,.95,1,1.05,1.1,1.15,1.2,1.3,1.4,1.5,1.75,2,2.5,3,4,5,10"); // zoom values
48
+user_pref("zoom.minPercent", 10); // zoom values
49
+user_pref("signon.autofillForms", false); // don't autofill login pages
50
+user_pref("signon.formlessCapture.enabled", false); // don't autofill passwords
51
+user_pref("extensions.formautofill.addresses.enabled", false); // don't autofill addresses
52
+user_pref("extensions.formautofill.creditCards.enabled", false); // don't autofill credit cards
53
+
54
+/* Downloads */
55
+user_pref("browser.download.useDownloadDir", false); // always ask where to save files
56
+user_pref("browser.download.alwaysOpenPanel", false); // disable automatically opening download panel
57
+user_pref("browser.download.manager.addToRecentDocs", false); // disable adding downloads to recent documents
58
+user_pref("browser.download.always_ask_before_handling_new_types", true); // confirm new file types
59
+
60
+/* Fullscreen */
61
+user_pref("full-screen-api.transition-duration.enter", "0 0");
62
+user_pref("full-screen-api.transition-duration.leave", "0 0");
63
+user_pref("full-screen-api.transition.timeout", "0");
64
+user_pref("full-screen-api.warning.delay", "0");
65
+user_pref("full-screen-api.warning.timeout", "0");
66
+
67
+/* Containers */
68
+user_pref("privacy.userContext.enabled", true); // enable containers
69
+user_pref("privacy.userContext.ui.enabled", true); // enable containers
70
+
71
+/* Content */
72
+user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true); // enable userContent/Chrome.css
73
+
74
+/* Other */
75
+// user_pref("browser.tabs.tabmanager.enabled", false); // hide tab manager

Загрузка…
Отмена
Сохранить