kiến thức Tổng hợp những addon chất cho Firefox / Chromium

cái đó e làm hết rồi bác
Dùng của ông Tây Lông ngon hơn ông Tung Của nhé:

Cài xong thì kết cục nó sẽ là như này đây:
prev-ext-opt-panel.webp
 
Để làm lại bài về cài cái userChrome.js Extension Option Panel (nút quản lý addon) này.

Đầu tiên là cách cài Loader của MrOtherGuy:
  • Vào: https://github.com/MrOtherGuy/fx-autoconfig
  • Ấn vào nút Code, sau đó Download, giải nén ra đâu cũng được
  • Vào folder tên program, bôi đen folder defaults và file config.js, rồi Copy
  • Từ Firefox gõ about:support rồi nhìn ở phần Application Binary, mở cái folder chứa firefox.exe đó lên
  • Paste
  • Vào folder tên profile và bôi đen folder chrome, rồi Copy
  • about:support
  • Open Profile Folder
  • Paste

Rồi, đơn giản lắm giờ cài script Extension Option Panel thôi:

Khởi động lại là xong (tốt nhất là dùng about:support -> Clear startup cache... để Firefox đào thải cache cũ khiến Loader không nạp được), kết quả y như bài bên trên: https://voz.vn/t/tong-hop-nhung-addon-chat-cho-firefox-pc-mobile.682181/post-27662443

Ngoài ra đọc bài giới thiệu các script userChrome.js này để kiểm script ngon.
 
Last edited:
Để làm lại bài về cài cái userChrome.js Extension Option Panel (nút quản lý addon) này.

Đầu tiên là cách cài Loader của MrOtherGuy:
  • Vào: https://github.com/MrOtherGuy/fx-autoconfig
  • Ấn vào nút Code, sau đó Download, giải nén ra đâu cũng được
  • Vào folder tên program, bôi đen folder defaults và file config.js, rồi Copy
  • Từ Firefox gõ about:support rồi nhìn ở phần Application Binary, mở cái folder chứa firefox.exe đó lên
  • Paste
  • Bôi đen folder chrome, rồi Copy
  • about:support
  • Open Profile Folder
  • Paste

Rồi, đơn giản lắm giờ cài script Extension Option Panel thôi:

Khởi động lại là xong, kết quả y như bài bên trên: https://voz.vn/t/tong-hop-nhung-addon-chat-cho-firefox-pc-mobile.682181/post-27662443
ok thank bác để em băm
 
Tiện hôm nay ta khai thông mảng userChrome.js, nếu các bạn kiếm được script ngon mà nhồi vào thì nó ngon hơn addon về hiệu năng đó, riêng userChrome thì nó rất nhẹ về hiệu năng.
Hướng dẫn cài đặt userChrome.js:

Các script hay:
  1. Extension Option Panel: Theo mình là BiS cài vào quản lý addon rất sướng, tắt bật vèo cái là xong còn nâng cao hơn nó cho phép debug addon tiện cho việc lập trình addon.
  2. Toolbox Button: Cho lập trình viên hay những ai thích nghịch userChrome.css, giúp bật Browser Toolbox chỉnh sửa giao diện trình duyệt theo thời gian thực
  3. Mouse Gesture 2: Native MouseGesture kéo thả thực hiện tác vụ phá bỏ giới hạn mà addon MouseGesture không thể làm được (các trang New Tab, about:), hay gọi được các lệnh từ trong tận nhân của Firefox, ví dụ như mở ứng dụng như EA chẳng hạn mà không cần cài native-client, và làm được rất nhiều mà để mường tượng thì cứ nghĩ tới addon Firefox hồi còn chưa dùng WebExtensions. Ngoài ra script này hỗ trợ cả Drag Gesture (kéo thả link, ảnh) ra tác vụ, ví dụ kéo link phát mở ra tab mới, mở ra MPV... nếu rành hoàn toàn có thể làm được.
  4. Sidebar Easy Switch: Thêm tính năng cho sidebar, cụ thể click vào link đọc phần mô tả nhé
Chú ý khi sử dụng script của alice0075 thì vào các folder phiên bản mới nhất hoặc phù hợp với bản hiện tại, bên trên mình để là 117.

Tạm thời là vậy, còn gì các bạn cứ giới thiệu thêm nhé, tag các chuyên gia vào chia sẻ xem mình nhặt được gì thêm thì nhặt @ndv92 @pitroy @erogemaster225
 
Last edited:
Có cách tắt cái keyboard shortcut của facebook ko nhở, dùng F1 để mở sideberry mà nó cứ hiện list key của facebook lên khó chịu thực sự, đã làm theo hướng dẫn tắt search trên google nhưng ko hiệu quả :(:(:(
 
e tắt đi rồi mà, có bật đâu. Thêm cái cuộn chuột vào file user.js được hả bác ???
Để tự dựng cho mình một cái bộ sưu tập about:config thì sử dụng user.js là tiện nhất, sau này đổi máy, cài lại hệ điều hành, tạo profile mới thì chỉ cần giữ cái user.js là khôi phục lại được các thiết lập.

File user.js ngon 5s có tất cả tối ưu ngon của thread, sau đó cứ nép vào nó mà phát triển thêm ví dụ thêm cuộn mượt:
 
JavaScript:
user_pref("apz.overscroll.enabled", true);
user_pref("general.smoothScroll", true);
user_pref("mousewheel.default.delta_multiplier_y", 275);
Fen thử cái này xem. Miêu sài thấy cuộn mượt lắm
7DSMAM1.gif
Mình gợi ý thêm mấy cái config giúp tối ưu sâu hơn về cuộn mượt để có gì các bạn phát triển thêm để đạt tới độ hoàn hảo:

Khoảng thời gian từ khi cuộn mượt cho tới khi kết thúc, thay đổi giá trị này tùy ý để thay đổi cảm giác mượt mà:
general.smoothScroll.mouseWheel.durationMaxMS200
general.smoothScroll.mouseWheel.durationMinMS50

Nghĩa là để tăng độ mượt mà thì tăng durationMaxMS, giảm durationMinMS còn nếu mượt quá gây cảm giác khó chịu thì giảm và tăng.

Tắt cuộn theo pixel, nghĩa là sẽ cuộn theo % của màn hình trang web (Nguồn: https://bugzilla.mozilla.org/show_bug.cgi?id=736251#c19):
mousewheel.enable_pixel_scrollingfalse

Mặc định là true, mình để false và lâu nay dùng Firefox chưa bao giờ dám cho về lại true vì không quen.
 
Cho mình xin cách chọn Floop làm trình duyệt mặc định (chính). Trong FF có mà trong Floop lại không có chức năng chọn trong cài đặt, cảm ơn
 
Mình gợi ý thêm mấy cái config giúp tối ưu sâu hơn về cuộn mượt để có gì các bạn phát triển thêm để đạt tới độ hoàn hảo:

Khoảng thời gian từ khi cuộn mượt cho tới khi kết thúc, thay đổi giá trị này tùy ý để thay đổi cảm giác mượt mà:
general.smoothScroll.mouseWheel.durationMaxMS200
general.smoothScroll.mouseWheel.durationMinMS50

Nghĩa là để tăng độ mượt mà thì tăng durationMaxMS, giảm durationMinMS còn nếu mượt quá gây cảm giác khó chịu thì giảm và tăng.

Tắt cuộn theo pixel, nghĩa là sẽ cuộn theo % của màn hình trang web (Nguồn: https://bugzilla.mozilla.org/show_bug.cgi?id=736251#c19):
mousewheel.enable_pixel_scrollingfalse

Mặc định là true, mình để false và lâu nay dùng Firefox chưa bao giờ dám cho về lại true vì không quen.
2 cái trên ok. Cái option pixel trên Mac cuộn lé luôn nhé.
 
Cho mình xin cách chọn Floop làm trình duyệt mặc định (chính). Trong FF có mà trong Floop lại không có chức năng chọn trong cài đặt, cảm ơn
Có hai cách:
  • Ghi đè một phát Floorp vào thư mục Firefox mặc định, rồi đổi tên floorp.exe thành firefox.exe (dễ nhất)
  • Dùng file firefoxportable.vbs này đặt vào thư mục chứa floorp.exe, chạy là xong.

Code:
'Registers Firefox Portable with Default Programs or Default Apps in Windows
'firefoxportable.vbs - created by Ramesh Srinivasan for Winhelponline.com
'v1.0 17-July-2022 - Initial release. Tested on Mozilla Firefox 102.0.1.0.
'v1.1 23-July-2022 - Minor bug fixes.
'v1.2 27-July-2022 - Minor revision. Cleaned up the code.
'Suitable for all Windows versions, including Windows 10/11.
'Tutorial: https://www.winhelponline.com/blog/register-firefox-portable-with-default-apps/

Option Explicit
Dim sAction, sAppPath, sExecPath, sIconPath, objFile, sbaseKey, sbaseKey2, sAppDesc
Dim sClsKey, ArrKeys, regkey
Dim WshShell : Set WshShell = CreateObject("WScript.Shell")
Dim oFSO : Set oFSO = CreateObject("Scripting.FileSystemObject")

Set objFile = oFSO.GetFile(WScript.ScriptFullName)
sAppPath = oFSO.GetParentFolderName(objFile)
sExecPath = sAppPath & "\floorp.exe"
sIconPath = sAppPath & "\floorp.exe"
sAppDesc = "Firefox delivers safe, easy web browsing. " & _
"A familiar user interface, enhanced security features including " & _
"protection from online identity theft, and integrated search let " & _
"you get the most out of the web."

'Quit if FirefoxPortable.exe is missing in the current folder!
If Not oFSO.FileExists (sExecPath) Then
   MsgBox "Please run this script from Firefox Portable folder. The script will now quit.", _
   vbOKOnly + vbInformation, "Register Firefox Portable with Default Apps"
   WScript.Quit
End If

If InStr(sExecPath, " ") > 0 Then
   sExecPath = """" & sExecPath & """"
   sIconPath = """" & sIconPath & """"
End If

sbaseKey = "HKCU\Software\"
sbaseKey2 = sbaseKey & "Clients\StartmenuInternet\Firefox Portable\"
sClsKey = sbaseKey & "Classes\"

If WScript.Arguments.Count > 0 Then
   If UCase(Trim(WScript.Arguments(0))) = "-REG" Then Call RegisterFirefoxPortable
   If UCase(Trim(WScript.Arguments(0))) = "-UNREG" Then Call UnRegisterFirefoxPortable
Else
   sAction = InputBox ("Type REGISTER to add Firefox Portable to Default Apps. " & _
   "Type UNREGISTER To remove.", "Firefox Portable Registration", "REGISTER")
   If UCase(Trim(sAction)) = "REGISTER" Then Call RegisterFirefoxPortable
   If UCase(Trim(sAction)) = "UNREGISTER" Then Call UnRegisterFirefoxPortable
End If

Sub RegisterFirefoxPortable
   WshShell.RegWrite sbaseKey & "RegisteredApplications\Firefox Portable", _
   "Software\Clients\StartMenuInternet\Firefox Portable\Capabilities", "REG_SZ"
 
   'FirefoxHTML registration
   WshShell.RegWrite sClsKey & "FirefoxHTML2\", "Firefox HTML Document", "REG_SZ"
   WshShell.RegWrite sClsKey & "FirefoxHTML2\EditFlags", 2, "REG_DWORD"
   WshShell.RegWrite sClsKey & "FirefoxHTML2\FriendlyTypeName", "Firefox HTML Document", "REG_SZ"
   WshShell.RegWrite sClsKey & "FirefoxHTML2\DefaultIcon\", sIconPath & ",1", "REG_SZ"
   WshShell.RegWrite sClsKey & "FirefoxHTML2\shell\", "open", "REG_SZ"
   WshShell.RegWrite sClsKey & "FirefoxHTML2\shell\open\command\", sExecPath & _
   " -url " & """" & "%1" & """", "REG_SZ"
   WshShell.RegWrite sClsKey & "FirefoxHTML2\shell\open\ddeexec\", "", "REG_SZ"
 
   'FirefoxPDF registration
   WshShell.RegWrite sClsKey & "FirefoxPDF2\", "Firefox PDF Document", "REG_SZ"
   WshShell.RegWrite sClsKey & "FirefoxPDF2\EditFlags", 2, "REG_DWORD"
   WshShell.RegWrite sClsKey & "FirefoxPDF2\FriendlyTypeName", "Firefox PDF Document", "REG_SZ"
   WshShell.RegWrite sClsKey & "FirefoxPDF2\DefaultIcon\", sIconPath & ",5", "REG_SZ"
   WshShell.RegWrite sClsKey & "FirefoxPDF2\shell\open\", "open", "REG_SZ"
   WshShell.RegWrite sClsKey & "FirefoxPDF2\shell\open\command\", sExecPath & _
   " -url " & """" & "%1" & """", "REG_SZ"
 
   'FirefoxURL registration
   WshShell.RegWrite sClsKey & "FirefoxURL2\", "Firefox URL", "REG_SZ"
   WshShell.RegWrite sClsKey & "FirefoxURL2\EditFlags", 2, "REG_DWORD"
   WshShell.RegWrite sClsKey & "FirefoxURL2\FriendlyTypeName", "Firefox URL", "REG_SZ"
   WshShell.RegWrite sClsKey & "FirefoxURL2\URL Protocol", "", "REG_SZ"
   WshShell.RegWrite sClsKey & "FirefoxURL2\DefaultIcon\", sIconPath & ",1", "REG_SZ"
   WshShell.RegWrite sClsKey & "FirefoxURL2\shell\open\", "open", "REG_SZ"
   WshShell.RegWrite sClsKey & "FirefoxURL2\shell\open\command\", sExecPath & _
   " -url " & """" & "%1" & """", "REG_SZ"
   WshShell.RegWrite sClsKey & "FirefoxURL2\shell\open\ddeexec\", "", "REG_SZ"
 
   'Default Apps Registration/Capabilities
   WshShell.RegWrite sbaseKey2, "Firefox Portable", "REG_SZ"
   WshShell.RegWrite sbaseKey2 & "Capabilities\ApplicationDescription", sAppDesc, "REG_SZ"
   WshShell.RegWrite sbaseKey2 & "Capabilities\ApplicationIcon", sIconPath & ",0", "REG_SZ"
   WshShell.RegWrite sbaseKey2 & "Capabilities\ApplicationName", "Firefox Portable", "REG_SZ"
   WshShell.RegWrite sbaseKey2 & "Capabilities\FileAssociations\.pdf", "FirefoxPDF2", "REG_SZ"
   WshShell.RegWrite sbaseKey2 & "Capabilities\StartMenu", "Firefox Portable", "REG_SZ"
   WshShell.RegWrite sbaseKey2 & "DefaultIcon\", sIconPath & ",0", "REG_SZ"
   WshShell.RegWrite sbaseKey2 & "shell\open\command\", sExecPath, "REG_SZ"
   WshShell.RegWrite sbaseKey2 & "shell\properties\", "Firefox &Options", "REG_SZ"
   WshShell.RegWrite sbaseKey2 & "shell\properties\command\", sExecPath & " -preferences", "REG_SZ"
   WshShell.RegWrite sbaseKey2 & "shell\safemode\", "Firefox &Safe Mode", "REG_SZ"
   WshShell.RegWrite sbaseKey2 & "shell\safemode\command\", sExecPath & " -safe-mode", "REG_SZ"
 
   ArrKeys = Array ( _
   "FileAssociations\.avif", _
   "FileAssociations\.htm", _
   "FileAssociations\.html", _
   "FileAssociations\.shtml", _
   "FileAssociations\.svg", _
   "FileAssociations\.webp", _
   "FileAssociations\.xht", _
   "FileAssociations\.xhtml", _
   "URLAssociations\http", _
   "URLAssociations\https", _
   "URLAssociations\mailto" _
   )
 
   For Each regkey In ArrKeys
      WshShell.RegWrite sbaseKey2 & "Capabilities\" & regkey, "FirefoxHTML2", "REG_SZ"
   Next   
 
   'Override the default app name by which the program appears in Default Apps  (*Optional*)
   '(i.e., -- "Mozilla Firefox, Portable Edition" Vs. "Firefox Portable")
   'The official Mozilla Firefox setup doesn't add this registry key.
   WshShell.RegWrite sClsKey & "FirefoxHTML2\Application\ApplicationIcon", sIconPath & ",0", "REG_SZ"
   WshShell.RegWrite sClsKey & "FirefoxHTML2\Application\ApplicationName", "Firefox Portable", "REG_SZ"
 
   'Launch Default Programs or Default Apps after registering Firefox Portable
   WshShell.Run "control /name Microsoft.DefaultPrograms /page pageDefaultProgram"
End Sub


Sub UnRegisterFirefoxPortable
   sbaseKey = "HKCU\Software\"
   sbaseKey2 = "HKCU\Software\Clients\StartmenuInternet\Firefox Portable"
 
   On Error Resume Next
   WshShell.RegDelete sbaseKey & "RegisteredApplications\Firefox Portable"
   On Error GoTo 0
 
   WshShell.Run "reg.exe delete " & sClsKey & "FirefoxHTML2" & " /f", 0
   WshShell.Run "reg.exe delete " & sClsKey & "FirefoxPDF2" & " /f", 0
   WshShell.Run "reg.exe delete " & sClsKey & "FirefoxURL2" & " /f", 0
   WshShell.Run "reg.exe delete " & chr(34) & sbaseKey2 & chr(34) & " /f", 0
 
   'Launch Default Apps after unregistering Firefox Portable
   WshShell.Run "control /name Microsoft.DefaultPrograms /page pageDefaultProgram"
End Sub
 
chưa biết fix sao nữa bác :(
me too, em cũng không biết cách fix luôn
bac dang bi giong em day
Thằng này có gì hay hơn Bitwarden không ? Nếu các bạn thấy lỗi thì vào trang Issue của 1Password báo cáo thôi, lỗi này trước mình có đọc qua là do chính 1Password nó kiểm tra checksum của trình duyệt, cái nào lạ như Floorp nó không chấp nhận.

Phần mềm này là mã nguồn đóng đó hả, báo lỗi rất khó vì chả có nổi cái Github cho báo cáo mới chán:
Community
Twitter

Vào đây nhé: https://support.1password.com/contact/
 
Back
Top