Skip to content

Commit

Permalink
(JS) update restorePreProtonArrowpanels.uc.js
Browse files Browse the repository at this point in the history
and hideTrackingProtectionIconOnCustomNewTabPage.uc.js
for recent changes to arrow panels.
(CSS) update userChrome.au.css for the same reason
  • Loading branch information
aminomancer committed Sep 5, 2022
1 parent 58579dc commit d209a38
Show file tree
Hide file tree
Showing 3 changed files with 431 additions and 20 deletions.
6 changes: 3 additions & 3 deletions JS/hideTrackingProtectionIconOnCustomNewTabPage.uc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name Hide Tracking Protection Icon on Custom New Tab Page
// @version 1.3.2
// @version 1.3.3
// @author aminomancer
// @homepage https://github.com/aminomancer
// @description By default, Firefox hides the tracking protection while 1)
Expand Down Expand Up @@ -93,8 +93,8 @@
.replace(/async showEditBookmarkPopup/, "")
.replace(/async function\s*/, "")
.replace(
/this\.panel\.openPopup\(BookmarkingUI\.anchor, \"bottomcenter topright\"\)\;/,
`this.panel.openPopup(hideOnNTP?._getAnchor(this.panel) || BookmarkingUI.anchor, \"bottomcenter topright\");`
/BookmarkingUI\.anchor/,
`hideOnNTP?._getAnchor(this.panel) || BookmarkingUI.anchor`
)
);
// the main part of this script. hide the tracking protection icon on new tab page.
Expand Down

0 comments on commit d209a38

Please sign in to comment.