在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:xiaoxiaoflood/firefox-scripts开源软件地址:https://github.com/xiaoxiaoflood/firefox-scripts开源编程语言:JavaScript 94.1%开源软件介绍:userChromeJSTested on Firefox Developer Edition 101.0b3.InstructionsVideo running installation steps below: https://youtu.be/_4fdUdp3G4o
Now, if you're only interested in extensions, you can skip to step 6.
¹: Not all scripts are restartless. These have userChromeJS scriptsᵀᴮ: also compatible with Thunderbird (click to expand) BeQuietThe main purpose of this script is to control media without having to select the tab playing it. So I can play/pause a YouTube video or skip to the next song in Deezer while browsing Reddit, for example. Three hotkeys are defined by this script: Ctrl+Alt+S to play/pause, Ctrl+Alt+D to next song and Ctrl+Alt+A to previous song.Besides that, no more than one tab should play audio at the same time. Each tab paused by another tab that starts playing is added to a stack. So if I open a new YouTube video while there's already one playing, the new tab starts playing and the other is paused. When the video ends or when I pause it, the first YouTube tab resumes playing. As for now, I only added support for a few sites, like Deezer, Spotify and YouTube. I chose not to support next/previous in YouTube, only play/pause. Context Menu - Hide on ClickFor super lazy like me. On Linux, at least on my setup, if you open contextmenu by right-clicking, but give up while still haven't moved the cursor, you can't close it by left-clicking, you need to move away first because the point behind cursor is part of contextmenu. This script fixes it by setting contextmenu starting position 1px away from cursor.When I was a Windows 10 user I didn't need this script. Enter SelectsHave you ever been frustrated because you wanted Firefox to autofill "https://www.youtube.com/feed/subscriptions" when you type "youtube" in location bar? That's because Firefox only autofills domains, so it will never go further than just "https://www.youtube.com/". Also because of this, Firefox will never autofill "https://www.reddit.com/r/firefox/" when you type "firefox", no matter how many times you've visited that page.I don't like this. Firefox should be smart to always prioritize the page with higher "visit score" in browser history. That's what this script fixes. It preselects the first suggestion from address bar. For instance, if this page is the first suggestion when you type "xiaoxiaoflood", you don't need to press down arrow key before Enter. Pages you often visit always rise to the first position, so accessing any frequent page will be as easy as typing no more than three chars + Enter, like just "you" + Enter to load YouTube Feed directly instead of YouTube homepage. It's even possible to teach Firefox to select YouTube Feed with "y" and YouTube Homepage with "yo", it's just a matter of practice. This script replaces urlbar autocomplete, so Extension Options MenuA single toolbar button to manage all your extensions. It opens a menu listing each extension. Left-click to open Options from the hovered addon, right-click to enable/disable, Ctrl + right-click to uninstall. Hover anywhere on the menu to see more.Screenshot: Extensions Update CheckerFirefox checks for available updates every 24 hours. You can disable autoinstall updates, but then you'll only know there are available updates if you manually open Add-ons Manager. This script:
ᵀᴮ Master Password+Locks Firefox with password. This will prompt the password on browser startup or anytime when you lock it with Ctrl+Alt+Shift+W.You need to set a master password in Firefox Options > Privacy & Security > [×] Use a Primary Password. If you're a Linux KDE Plasma user like me, you might want to install my other script Notification XUL Fix Position. MinMaxClose ButtonToolbar button to replace native window buttons (minimize, maximize and close). I'm a Windows user and use Sidebery (vertical tabbar) with hidden titlebar, so I need this.
Mouse GesturesMore powerful than any mouse gestures WebExtensions. But it doesn't have user interface and I have only included actions I use, so unless the default set of actions suits you, knowledge in JavaScript is required to write extra actions. However, it's easy to change gestures for available actions. You can view default gestures at the beginning of the code (search forGESTURES: ). Some of them:
Gestures are cumulative if possible, so right-click (hold) + left-click + left-click + left-click will toggle between the two most recently used tabs. Advantages over existing extensions:
multifoxContainerWhen Firefox introduced containers, I created this script to get some features that I missed from Multifox, the legacy addon that implemented "containers" years before Firefox having this feature by default. Since then, Firefox has added some things this script had, so I removed them. But I still use it for two things:
Notification XUL Fix PositionOn Linux, Firefox reuses OS native backend to display notifications. This affects my other script Master Password+ which should prevent notification leakage when in locked state. So just set But Firefox has a bug, at least for KDE Plasma users like me, causing XUL notification popups to show up at wrong place. I use taskbar at bottom just like it's on Windows, so notification should emerge at bottom right, but it's appearing at top right. This tiny script fixes that. Open in Unloaded TabCreates an item in contextmenu to open links/bookmarks/history in unloaded tabs, i.e. the tab is created, but it will only load when selected. Just like unloaded tabs when you start Firefox recovering tabs from previous usage. So you can, for example, open multiple related YouTube videos and load them one by one. Or open an entire bookmark folder in tabs without freezing the browser, since tab content will load on demand.PrivateTabFx 77 blocked the ability to open private tabs in non-private windows, previously possible with Private Tab addon. So I decided to write this script as a replacement. You can change some minor settings at the beginning of the code.RedirectorRequires basic JS skills to write rules using regex.The main difference between this and extensions like Redirector it that these Firefox extensions record both pre-redirect and final URLs in history. I want it to record just the final URL. This script can also do more complex things like running a JS function with regex results. Finally, the main reason why I wrote this was to integrate it with Link Status Redux. When I point the mouse to a link that I've already visited, LSR displays the time of last visit. This is extremely useful for me to know if I have already visited the page and to track changes since last visit. LSR uses Redirector rules to replace links directly in page (Redirector extension doesn't do this, it redirects only when you try to load the URL). And many URLs have gibberish at the end, so I have rules to remove them, then the URL remains clean and LST can track last visit correctly (because the gibberish is different every time, generating different URLs). Note: the list of rules in the script is just an example, mine is much bigger. Status BarBrings back the good old status bar (also known as Addon Bar) at the bottom, with status text plus any buttons you want.Screenshots: StyloaiXUserStyle manager to reskin Firefox window and websites. Replacement for legacy Stylish. More convenient than userChrome.css and userContent.css, as it has a powerful editor with instant preview, error checking, code autocomplete and you can enable/disable individual styles without restarting Firefox.Screenshots (yes, I'm using the old Stylish icon): userChromeJS scripts from other authorsSome users without their own repos asked me to publish the scripts they made, what I'm currently allowing. Auto Plain Text LinksFirefox's default context menu will allow you to open plain text links if you select them first. This small addon automatically detects simple http and ftp plain text links when you right-click without needing you to select them first, then passes that URL on to the default Firefox menu items for opening them.Context to SearchWith this script, when you choose Search from the context menu (with text selected), instead of immediately searching it will just put the selected text in the search bar so you can edit it and choose the search engine before searching.Restore
This script restores the |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论