GithubHelp home page GithubHelp logo

aminomancer / uc.css.js Goto Github PK

View Code? Open in Web Editor NEW
304.0 11.0 24.0 72.59 MB

A dark indigo CSS theme for Firefox and a large collection of privileged scripts to add new buttons, menus, and behaviors and eliminate nuisances. The theme is similar to other userChrome stylesheets, but it's intended for use with an autoconfig loader like fx-autoconfig, since it uses JavaScript to implement its more functional features.

License: Other

CSS 45.93% JavaScript 53.01% C++ 0.11% HTML 0.27% SCSS 0.67%
firefox stylesheets userscript firefox-customization autoconfig userchrome userchromecss usercontentcss userchromejs userchromejs-scripts

uc.css.js's People

Contributors

aminomancer avatar garywill avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

uc.css.js's Issues

[BUG] privateTabs Script breaking Duskfox

Hey, MS. privateTabs Script is causing Tabs to behave abruptly. Its been broken since Firefox v102.

Someone who uses your stylesheet and recently updated to v102 mentioned it to me. Reporting here, since you had mentioned you don't use that script yourself.

Tested on: Linux/Windows, Firefox versions >102

"undefined" in UI

First of all, thanks for your great work!

I installed everything (with a newly installed Firefox nightly version) according to your README as well as the fx-autoconfig and at first everything works great. Then I wished to remove the refresh button from the navbar but then it keeps coming back, even bringing two sets of backward/forward button back to navbar. So I kept removing those and then the whole window becomes this:

image

Any help would be appreciated! I'm on macOS Big Sur 11.4.

tabTooltipNavButtons.uc.js doesnt work on unloaded/suspended tabs

you dont need to go through a linkedBrowser to get the sessionhistory of a tab.

you can just

let SH = SessionStore.getSessionHistory(this.triggerTab);

and then use SH.entries.length and SH.index in updateButtonState() and fillHistoryMenu()

like

let SH = SessionStore.getSessionHistory(this.triggerTab);

        if (SH.entries.length == 1 ) {
            updateSessionHistory(SH, true, true);
        } else if (SH.entries.length > 1 ) {
            updateSessionHistory(SH, true, false);

        }else{
            return false;
        }

then it also works on suspended tabs :)

i dont want to fork the whole repo , thats why i just write it in here ;)

[BUG] Private Tabs script not working in Firefox 104.0.2

Describe the bug
Hi @aminomancer Again bothering you
I was testing various scripts from the repository and decided to try private tabs, however apparently the script does not work in Firefox 104.0.2.

To Reproduce
Steps to reproduce the behavior:

  1. Firefox clean install
  2. Install Fx-Autoconfig MrOtherGuy (lastest version)
  3. Install privateTabs.uc.js from the repository
  4. Restart Firefox

Expected behavior
The private tab icon is displayed in the toolbar but does not appear.

Desktop:

  • OS: Windows 10
  • Firefox update channel: Stable
  • Version: 104.0.2

Additional context
It is worth mentioning that the other scripts work correctly

[BUG] animateContextMenus.uc.js freezes when opening bookmark folders too fast.

Describe the bug
When you open a folder in bookmarks toolbar and quickly switch to a different one, the native firefox auto open function freezes.

To Reproduce
Steps to reproduce the behavior:

  1. Create few folders on bookmarks toolbar.
  2. Open any of them and then start hovering over the rest.
  3. If you did it fast enough then at some point auto open stops with one folder opened.

Expected behavior
animateContextMenus shouldn't freeze auto opening.

Screenshots

With animateContextMenus.uc.js:

video.mp4

Without animateContextMenus.uc.js:

Without.animateContextMenus.mp4

Desktop (please complete the following information):

  • OS: Win10Pro
  • Firefox update channel: Nightly / ESR
  • Version: 106.0a1 (Nightly) / 102.2.0 (ESR)
  • Build ID: 20220914213649 (Nightly) / 20220818165803 (ESR)

Additional context
Beside those folders i didn't notice any other windows having this problem, also while i mainly use ESR with xiaoxiaoflood's loader the same thing happens on Nightly with fx-autoconfig (as seen on included videos).

fix about:reader in system.css after fixing computer

left align content, make width proportional but clamped for portrait orientation. ugh.
check if you can use double nested fallback values in custom properties? see --final-content-width

@-moz-document url-prefix("about:reader") {
    body.dark {
        --main-background: var(--in-content-bg-dark) !important;
        --tooltip-background: color-mix(in srgb, black 40%, var(--in-content-bg-dark)) !important;
        --active-color: var(--purple-35) !important;
        --selected-background: var(--attention-color) !important;
        --link-foreground: #5311ff !important;
        --visited-link-foreground: #823afc !important;
        --proportional-width: calc(100% - (122.5em - (var(--content-width, 60em) * 2)));
        --final-content-width: max(var(--content-width, 60em), var(--proportional-width, var(--content-width, 60em)));
    }

    .container {
        margin-inline-start: calc(3% + 65px) !important;
        max-width: var(--final-content-width) !important;
    }

    .toolbar-container {
        top: 50% !important;
        margin-inline-start: -15px !important;
    }

    .toolbar {
        transform: translateY(-50%) !important;
        margin-inline-start: 0 !important;
    }

    input:not([type="file"], [type="image"]):focus-visible,
    select:focus-visible,
    button:focus-visible,
    textarea:focus-visible {
        outline-color: var(--purple-35) !important;
        outline-style: solid !important;
        outline-width: 2px !important;
    }
}

Keep closed tabs on cache for a few seconds extra after they closed [bfcache on closed tabs]

Another humble suggestion, which most likely can't be done through javascript, if I had to take a guess: sometimes you close a tab accidentally, it would be interesting if the tab still remained open "hidden" for just a few seconds, like 5 seconds or so, in case you changed your mind, or had accidentally closed the tab to begin with, so that way when you opened, it would be instantaneously. I think some chromium browsers experimented with this feature but it seems that most decided to not go with it? Also there is a bugzilla report on this, but I think the discussion is somewhat stuck.

https://bugzilla.mozilla.org/show_bug.cgi?id=1655199

Again, I have no idea on how viable or hard this would be. Like, for instance, if you were watching a youtube video and closed that tab, it would be somewhat annoying having to deal with a delay of 5 seconds until the audio stopped playing because that tab was only then actually removed from memory, so probably when dealing with a tab playing a video or a song, the behavior would be like pause the video playing, hide the tab, wait 5 seconds, and then actually close it... Anyway, just some food for thought, sorry to bother you.

Funny bookmarks issue

Describe the bug
In short, the display: block !important; in the .tab-throbber part of the uc-tabs.css file is causing my bookmarks to disappear.

To Reproduce
Steps to reproduce the behavior:

  1. Install the theme (master or latest release, either one works)
  2. Add a bookmark
  3. Bookmark is not there

Expected behavior
Bookmark is there

Screenshots
image
You see the AniList text and icon? When the code I mentioned above is present, it's just not there. Completely empty blue bar.

Desktop (please complete the following information):

  • OS: Tested on Windows 10 and Windows 11
  • Firefox update channel: Tested moth main and nightly
  • Version: Bug has been here a while, currently on 98.0a1
  • Build ID: 20220122214838

Additional context
Maybe this bug is just for me? I'd assume you would've fixed it by now (been happening for weeks, just thought to report it now) if it was something you knew about. However, I've completely formatted my disk and reinstalled Windows and the bug hasn't been resolved by that.

Customize Toolbar breakage with Pocket disabled

Hey, i found this bug while trying to incorporate my user.js from my current setup into your theme. If i set the following in my user.js

user_pref("extensions.pocket.enabled", false;

when i try to use the Customize toolbar function, instead of this

image

it will result in this

image

and when i close the Customize Toolbar mode, the navbar will look like this

image

Smart keywords, "window.location.hostname" and new tabs

Sorry if the title doesn't make much sense, I didn't know how to explain in a short manner. A better explanation would be, Firefox has the smart keyword thing, where you can associate some shortcuts and there are several codes you can apply to it. Like for instance, this one here, which searches the current site you are in on Google:

javascript:location.href=('http://www.google.com/search?q=site:'+window.location.hostname+'%20%s')

image_3298

01.mp4

So for instance, if I'm on hackernews, and press "s" [my search term] + enter, the command automatically does a google search on that page.

The thing that is that, if instead "enter", I pressed "shit+enter", to do the same thing I wanted to do previously, but instead opening the that search on a new tab, it doesn't work, it ignores the "window.location.hostname" part, so therefore you end up with something like this:

02.mp4

I couldn't find any bugzilla report on this, actually, I'm not even sure if is a bug to be fair, but is something that it might break some people workflow. Anyway, I was wondering if it would be possible to make, sorta firefox use that "window.location.hostname" reference even when pressing shit+enter so that you can perform that search and open it on a new tab.

Or maybe you know some other workaround through this issue, like through some editing on the very smartkeywords that I'm not seeing. I would also be interesting on that.

Also, as always sorry to bother you. And thanks in advance for any help or advice.

customHintProvider.uc.js

Is your feature request related to a problem? Please describe.
No, just the Timeout

Describe the solution you'd like
Infinite timeout

Just add a condictional to:

this._timerID = setTimeout(() => {
this._panel.hidePopup(true);
this._animationBox.removeAttribute("hidden");
}, DURATION + 120);

Like if (DURATION == -1) (or whatever) then not autoclose (the popup will close when press click)

Regards

TabPreview.uc.js

Hi @aminomancer I recently found your repository and saw that it is possible to add some features to Firefox through javascripts (userchromejs). I am currently using the private tab script as there is no extension that provides such a feature.

Searching the web for a replacement for the tab scope extension that allows thumbnails on tabs I did not find anything similar.
Is there a possibility that a script could be written to show thumbnails on tabs? If so, could this script I found on the web be ported to work with the latest version of Firefox?

TabPreview.zip

question about Auto-hide Navbar

Only one question:
userScripts is set to enable Auto-hide Navbar Support,
but I have auto-hiding doesn't work, how to solve it

Please request, small tab-tittle or small tab-url inside urlbar on tab mouse-hovered

Hi @aminomancer,

I'm an university student, and I'm part of a small international group of students who like to exchange Firefox CSS customizations for our own personal use (studies and jobs).
We also use several Firefox JavaScripts (uc.js). But, unfortunately neither I nor anyone in our group knows anything about JavaScript. We use JavaScripts that we find here on Github, or JavaScripts that kindly Devs on Reddit create and adapt for us.

At this moment we need a simple JavaScript to show a short tab-title or tab-url inside the urlbar when a tab is mouse-hovered. That's all!
As you know, in vanilla Firefox when a tab is mouse-hovered the tab-tooltip appears. We want to replace this tab-tooltip, and we want it to appear inside the urlbar. It doesn't matter if the JavaScript uses the tab-tooltip or tab-label or whatever, the only thing we need is that when any tab (pinned, unpinned, selected, unselected, active, not active etc) is mouse-hovered, a short tab-title or short tab-url will appear inside the urlbar. Please @aminomancer, could you help us?

We've already visited all the FF' JavaScripts repos, there is no such script. Also, we have already contacted all the Devs, in the past they always have already helped us a lot with other scripts, but unfortunately at this time we do NOT have anyone to help us.

@aminomancer, thank you very much!

Allow refreshing of URLs containing # on it by clicking in the URLBar and pressing enter

This is apparently an old bug or issue, apparently, you can't refresh a URL that contains # somewhere in the in it, by just pressing enter (as it normally occurs). Here is an example:

Pressing enter on enter on urlbar on a normal URL:
1650730384
The page is reloaded.

Pressing enter enter on a URL on containing # in it:
1650730422
Nothing happens.

Apparently someone propose they addressed this some years, but Mozilla didn't thought it was a bug or an issue. In my noob opinion, this doesn't seem to be an issue too hard to solved, but what I know? Anyway, just a suggestion.
https://bugzilla.mozilla.org/show_bug.cgi?id=778399

Tab Navigation Buttons uc.js

Hi @aminomancer , how are you?

You have a wonderful JavaScript repository. Congratulations!

Almost two months ago you kindly help me at reddit. Here is our conversation.

I'm really in need of a specific JS, and it would be great if you can help me. I'm using the latest version of Firefox Nightly + Windows 10 and, please, I need a JS where a mouse-hovered tab shows (below) the back - reload - forward buttons (inside a small tooltip or popup or container). If the mouse leaves the navigation buttons container or the tab, then the container disappears.

At reddit you offered me your help, and you asked me to remind you my request, so here we are, I'm sorry to bother you, but if by chance you can give me a hand... it'll be amazing!

Thank you in advance!

Potential bug with verticalTabsPanel not loading without newtab button.

Describe the bug
I'm not sure if we can consider this as a bug or more of a "intended behavior", but it looks like verticalTabsPane.uc.js really doesn't like when you remove the newTab button and simply doesn't load when it's not placed somewhere.

To Reproduce
Steps to reproduce the behavior:

  1. Place the newtab button back in "customize toolbar"
  2. Restart firefox

Expected behavior
VerticalTabsPane should load even without the newtab button being placed in the UI(?)

Screenshots
bugbug

Desktop (please complete the following information):

  • OS: Windows 10
  • Firefox update channel: ESR91/DEV100/Nightly102.0a1

Tab context menu related

  1. Bookmark button
    It seems like the bookmark button in the tab context menu doesn't detect whether the current page has been bookmarked or not. Please see the screenshot attached. Not sure whether it's a feature or a potential bug.

image

  1. Context menu padding
    After loading the author style sheet, this happens:
    image

Do you know where I can fix this? Thanks!

Arrow keys in urlbar provide inconsistant behavior.

Describe the bug
When a user presses left or right arrows in the urlbar/navbar, the browser switches between search engines/history,etc... albeit very randomly and seemingly unintended.

To Reproduce
Steps to reproduce the behavior:
1.Have multiple search engines/history/tabs search integrated into the urlbar.
2. Have a url in the navbar.
3. Try to use the arrowkeys to navigate to a certain part in the url
4. likewise, try to use the right arrowkey to activate an autocomplete suggestion given to you.

Expected behavior
Prior expected behavior would be that left and right arrows stay native to navigation through characters/autocomplete and up/down arrows change search engine.
Additionally I believe alt + left,right arrows should change search engine.

Screenshots
IGJRiTHb4S

Desktop (please complete the following information):

  • OS: W11
  • Firefox update channel: Nightly
  • Version: latest
  • Build ID: 20211127092810

Additional context

I've seen your commits regarding this situation and I believe you may be still working on this. I'm not sure, also maybe this issue has something to do with my extensions/settings.

"Copy page title" option on the sidebar history context menu

Hi, would it be possible to add a "Copy page title" option when dealing with the sidebar menu history panel? Like, so that in the same way you could copy the page URL you could also copy the page title. All the extension I tried so far didn't enable an option in that particular context menu. Something like this:
image_3023
.
Thank you for your attention.

Suggestion: Don't close urlbar results and don't reset urlbar when opening a background tab.

Hi!
I see some script to change to the urlbar, I think this would be a worthy addition.

Is your feature request related to a problem? Please describe.
Even explicitly opening tab in the background, the urlbar results are closed and the bar is reset.

Describe the solution you'd like
When opening tabs in the background the urlbar and results should remain as they are, so I can open more results, etc.
Which would be the main point in opening them in the background in the first place.

Additional context
This feature Mozilla failed to implement for years (136445...), there's even a patch for it in a never bug they didn't bother to do anything with.

On a related note, I need to use modifiers like (ctrl+)shift+alt+enter, shift+middle-button, (ctrl+)shift+left-button to get things from the urlbar to open in a background tab, even if browser.tabs.loadDivertedInBackground is enabled. Which is pretty much a bug they didn't bother to fix. Maybe the script could also avoid forcing me to use clumsy and inconsistent modifiers as well, and just open in background via plain middle click and ctrl enter (or alt+enter as it once did).

userChrome.css.mac-ui-fonts

It is not a bug... just a question

How can i check if is working ? I did not see any effect (have installed all fonts) (i tried on fresh install)

Can give me some picture to compare ?

Thanks

Improving the way Firefox shows new messages notifications on the tabbar

First of all sorry, I know the title doesn't make that much sense. Explaining it better: some pages show a number between parentheses to indicate that there is a new message on that given tab. Like this for instance, this is not a exclusively behavior of Firefox, practically all browsers have this behavior, Chrome, Brave, etc:

image

The problem is that if you pin that given tab this number won't appear, but rather you will receive some generic indication there is a new messages, but it won't show how many: is it 1, 2, 3, 10 new messages? You don't this see this information right away.

image

This problem though doesn't happen on Vivaldi, which always shows the number between parenthesis as a indication on the top of the favicon, like this, similar to the little icon that indicates whether or not that tab is playing a song. Actually it always shows the number between parenthesis as a flying favicon notification:

image

image

This way you can see how many messages there are on that tab even when you pinned that tab. I think it would be interesting a script that would change this functionality. I think this it shouldn't be that complicate to implement some feature like this, some script that extract the number between parenthesis in the beginning of the title and puts it and its own html element should do the trick, I think, but I might be wrong.

As always thank you very much for your consideration and time.

[Feature suggestions] Vertical tabs

Sorry for opening another Issue, but I thought why not open a dedicated place to discuss the vertical tab pane. :-)

  1. Could you please Integrate the private tab button into the vertical tab? If this is realized then I can pretty much discard the regular tab bar altogether!

  2. Let us have the option to show/hide icons.
    image
    Personally, I'd like to hide both the pin and the toggle button.

  3. As of now, pinned tabs are simply moved all the way up or down depending on whether or not the option "Reverse tab order" is selected or not. Personally, I think all pinned tabs should be moved to the top regardless. In addition, is it possible to give the pinned tab a different style, say, a slightly lighter background or so (or a divider line after the pinned group), so that it's very easy to distinguish the pinned tabs from the regular ones.

  4. Please let the vertical tabs support "Tab Tooltip Navigation Buttons" as well!

[BUG] tabTooltipNavButtons.uc.js: Tabs history not appearing

Hi @aminomancer ,

Firstly, your tabTooltipNavButtons.uc.js is amazing. Thank you!

I believe I may have found a bug.
Unfortunately, when I right click the back or forward button, I can't see tabs history.
This bug appeared to me few days ago.
Just in case, I tried tabTooltipNavButtons.uc.js in a Nightly clean install, no CSS mods, no add-ons, untouched. And the tabTooltipNavButtons.uc.js bug is there... on right-mouse-click over back or forward, tabs history is not shown anymore.

Just to be clear I'm talking about line 49:

// When you right click one of the back or forward buttons, it opens a
// little context menu that shows up to 15 items in that tab's history.

Hope you can fix it.

Thank you in advance!

Window Drag Hotkey bug

To reproduce the buggy behavior:

  1. Hold down alt+shift and click the mouse button to drag as usual
  2. Still holding the mouse button, but release the alt+shift. You can still drag around the window as expected.
  3. Release the mouse button. At this point, since no alt+shift button is pressed, the mouse shouldn't be able to drag the window. But it still can do so. This makes it impossible to normally interact with the UI, like click on the urlbar to enter a new url.

Request

THIS IS JUST A REQUEST

Hi!

This JS script creates a kind of password screen when Firefox starts.
The original script was adapted to be compatible and to work with MrOtherGuy fx-autoconfig, following these simple rules:

  1. Change @startup to masterPasswordPlus instead of UC.masterPasswordPlus.exec()
  2. Rename exec to _startup (line 12)
  3. Rename all instances of UC to _ucUtils.sharedGlobal
  4. Rename all instances of _uc.windows to _ucUtils.windows.forEach
  5. Line 29 }); -> },true)
  6. Line 36 }); -> },true)

However, the script was updated to this new version. And it's not working with MrOtherGuy fx-autoconfig (the rules mentioned above are not working in the new version).

You have an incredible JS repo compatible with MrOtherGuy fx-autoconfig. So please, if possible, my requests are:

  • Can you adapt the latest updated version of the JS script in order to work with MrOtherGuy fx-autoconfig?

  • Even better: Please can you write a new JS script fully compatible with MrOtherGuy fx-autoconfig, having as main function the creation of a kind of password screen (or similar) when Firefox starts? It'll be great if you can do that, because that will help us (users of this JS script) to always keep the latest working and updated script.

Thank you

[BUG] VerticalTabsPane Script broken on v107.0a1

Hey, MS!

VerticalTabsPane Script isn't working on v107.0a1

  • OS: Linux (Mint 20.3)

Tabs are visible only when the Pane is Pinned
1

Once Pane is unpinned, Tabs disappear, though the Pane keeps its place.

2

Also, scrolling doesn't work.

Could you please make it work again?

Left and Right arrows should not change search engine when in url.

Describe the bug

When switching to the searchbar, if I want to edit the current url by using the arrow-keys to navigate through the url, it does not move cursor locations.
Instead it switches between search engines. I believe this feature is supposed to only happen when using alt+arrow key if I read the readme properly.

To Reproduce
Go to any website i.e. youtube.com
Switch to the urlbar, the entire url should be highlighted, then use left or right arrow to navigate through url as if you were to change the url slightly.
Cursor shouldn't move, instead we cycle through the search engines.

Expected behavior
arrow keys should navigate through the url-address via moving cursor. ALT+arrow keys should navigate through search engines.

Thanks :)

[BUG] aboutCfg.uc.js is not working on Firefox r106.0.5

Describe the bug
Very strange, I use this script with earthlng's aboutconfig module and when I try to go to "about:cfg", Firefox does not respond to anything and there is no error message from console in the browser toolbox.

Desktop (please complete the following information):

  • OS: Windows10 Chinese
  • Firefox update channel: Release
  • Version: 106.0.5 Chinese Version
  • Build ID: 20221104133228

user.js:: I filled out all the "unrequired" about:config pref changes in user.js

I think there should be two seperate user.js files. One with only required config changes and one with all of the config change recommendations.

Entering in all the about:config changes is tedious and time consuming. There may be some people who would like to just plug and play, like me when adding everything onto a new pc/os.

image

I have the new user.js file if you'd like to just use that. I think the descriptions of all the changes could be added, but this is a start.

There would also need to be a disclaimer that the defaults are for windows, and users need to comment out and uncomment the correct lines for their os.

Add option to search content on sidebar ("Edge-like" sidebar search feature)

image
This would probably be too hard to do, but it might be interesting. I think it could be done through an extension, anyway: Edge and now Chrome, I think, have this "sidebar search" where you can search something and it gets displayed to you as sidebar. I think this option is honestly amazing, it's pretty useful because you can get a glimpse of a given content without having to leave the page, and it's shame it didn't get implement on Firefox yet.

The closet thing I could found was this extension here, but it's not exactly like a search bar, more like a "preview sidebar" or something, but I think a huge chunk of the code could maybe be used, but I have no idea what I'm talking.

https://addons.mozilla.org/en-US/firefox/addon/link-preview-sidebar/

[BUG] Right clicking the toolbox button no longer opens the browser toolbox

Describe the bug
Right clicking the toolbox button doesn't open the browser toolbox. Instead, it shows a context menu.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the toolbar
  2. Right click on browser toolbox

Expected behavior
The browser toolbox should open.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 11
  • Firefox update channel: Developer (Hopefully there isn't much difference with Nightly)
  • Version: 105.0b9
  • Build ID: 20220908185813

Additional context
My setup is published here.

Extension panel broken with minbrowser navbar

When you open extension panel UI, URL bar gets closed so you can't mouse click on anything within that extension popup (broken for every extension of course), clicks get passed through the panel popup to current page.

Only workaround is holding Alt+D for clicks to get passed to the popup

Running latest FF nightly on Linux with upstream userChrome changes.

image

Problem when hovering a tab containing a single image [tabThumbnailTooltip.uc.js]

Hi, it's me again bothering you. I was wondering about this weird margin when hovering a tab containing a single image. Like this:
01

I was wondering if would be possible to at least center the thumbnail on these cases, such as it happens on Microsoft Edge:

02

Although, truth be told, even the way Microsoft Edge deals with tab thumbnail on these cases isn't perfect. Ideally, maybe the best alternative here, I think, would to try to adjust the image accordingly, more or less like it happens when your OS tries to automatically adjusts an image too big to fit your monitor resolution. Something like this:
03

Anyway, thanks for your time :)

Firefox 108 breaking "Tab Thumbnail ToolTip" script on pages with page title too long?

Hello, I just updated Firefox Developer to the 108 version, and Mozilla seems to have made some change that break the script. Especially when the page title is too long.
image_215

It seems to be some issue with #tabThumbBox part, I tried to fix by tweaking around with CSS, but hadn't have much success.
It could something due to my setup, but I think it is worth a look. Thank you very much for your attention

Update: Forget what I said about "tabThumbBox", I think the problem is the model "Max label character limit" isn't working, so it doesn't crop the page title when seeing the thumbnail,

[BUG] openLinkInUnloadedTab.uc.js can't open links in folders

Describe the bug
openLinkInUnloadedTab.uc.js can't open links from a folder unless the folder was previously opened.

To Reproduce
Steps to reproduce the behavior:

  1. Launch Firefox and hit "Open All in Unloaded Tabs" on any bookmarked folder, result: as on screenshot.
  2. Launch Firefox open the folder first and then hit "Open All in Unloaded Tabs on any bookmarked folder, result: links are opened properly.

Expected behavior
Every link inside the folder should be opened without "previewing" the folder first.

Screenshots

errorFF

Desktop (please complete the following information):

  • OS: Windows 10
  • Firefox update channel: ESR Portable
  • Version: 91.8.0esr (64-bit)
  • Build ID: 20220330151638

Additional context

Every time i try to load any folder that wasn't previously "previewed" it just throws the same error as on the screenshot. Opening single bookmarked links works without a problem.

[FR] Firefox Notifications Default to Different Monitor / Coordinates

Is your feature request related to a problem? Please describe.
I use a CSS config to keep notifications on-screen for a day (or when I manually click close on them or they expire by themselves).
It's really nice because then my Google Calendar notifications just stay on screen hour by hour... and help remind me what I am supposed to be doing. However, they get in the way on my primary monitor since Firefox notifications can only load on the primary monitor and there are no configs or CSS to change that.

Describe the solution you'd like
A script to change the location where notifications spawn or even create about:config to define X and Y coordinates for such.

Describe alternatives you've considered
Changing primary monitor. (not feasible since it's only these semi-permanent notifications I want to change location of)
Changing from Firefox Notifications to Windows 10 Action notifications (not desireable)

Additional context

Make findbar highlighted text to always use the same color, no matter the background color of the page in question?

image
So, this is a little hard to explain, basically depending on the background of the page you are in, the highlighted color of the text (as well as the color of text you are highlighting in itself), when you use the findbar changes, it sorta inverters on darker backgrounds. This thread on FirefoxCSS better explained what I'm talking about:
https://old.reddit.com/r/FirefoxCSS/comments/mfw002/keeping_uitexthighlightbackground_consistent_on/gspslgv/

I was wondering if there is any way to make the highlighted text cohesive and to always use to the same color no matter what, like it works on other browsers? As always, thank you very much and sorry to bother.

PIP hotkey (ctrl+shift+]) isn't triggered when dealing with a video running inside an iframe

So, I have been scratching my head with this one and I think it could be a interesting script. When you press the hotkey to set a video you are watching to picture-in-picture mode, Firefox doesn't set that video to pip mode if it is running inside an iframe, like this for instance:

https://old.reddit.com/r/curiousvideos/comments/t8w4si/palantir_they_are_watching_you/

Like, if you went to youtube and pressed that key combination, firefox would set that video to picture in picture. I think it's something they changed recently cause I remember that until very recently this used to work. I think it could be some security issue or something dealing with content on iframes or something?

The curious thing is that, if you go and click on the flying pip button that appears on the video, that content is set to picture-in-picture mode even if is running inside an iframe, like this here. So I think it's probably some issue with Firefox just not "detecting" what content you are watching or so?
1646730297

Maybe this could be a possible script, beside fixing this issue, the script could also allow user to choose other key combination to set the video you are watching to pip mode. Anyway, just an idea, thank you very much for your time..

debugExtensionInToolbarContextMenu.uc.js

Hello,
I use some of your helpful scripts, thank you.
Is it possible to add the menu of debugExtensionInToolbarContextMenu.uc.js also to the context menu of the addons in about:addons?

Please, help to make compatible urlbarTabUrlIndicator.uc.js and tabTooltipNavButtons.uc.js

Hi again @aminomancer,

For many months I used your urlbarTabUrlIndicator.uc.js and tabTooltipNavButtons.uc.js.
My JS know-how is almost zero, but at tabTooltipNavButtons.uc.js I managed to delete (carefully) few lines here and there, and miraculously your two JS scripts worked together like a charm.
At my customization, when a tab was mouse-hovered, tabTooltipNavButtons.uc.js opened the mini popup/tooltip (under the tab), with the back-reload-forward buttons, but no url (only 3 buttons back-reload-forward, I removed the url). At the same time, when the same tab was mouse-hovered, urlbarTabUrlIndicator.uc.js showed the URL inside the urlbar.
It was just beautiful to see the two scripts working together automatically... I became addicted to them : )

Problems in paradise started when new versions of tabTooltipNavButtons.uc.js appeared.
My JS is really bad and I can't make compatible the newest tabTooltipNavButtons.uc.js v.1..2.3 with the tabTooltipNavButtons.uc.js 1.1.
Separately, both scripts are working perfectly.
But together, I have not JS know-how to make them compatible (as they were compatible in the past).

Time ago you and I exchanged messages in order to make the two scripts compatible. Here is our conversation. Specifically at this message you suggested two possible solutions, first by using a "Modifier Key" (to activate tabTooltipNavButtons), and second by deleting 8 lines. The "Modify Key" solution is not interesting to me, and I tried your second solution at tabTooltipNavButtons 1.2.3 but I couldn't make it work.

Please, if by chance you can help me, it'll be amazing.
Really, I became addicted to your two scripts, and I miss them a lot.
I know you are busy, so if you can help here, please take all the time you need.

Thank you in advance

[BUG] enterInUrlbarToRefresh.uc.js not working on Firefox 106?

Hi, I think enterInUrlbarToRefresh is not working on Firefox 106 (Firefox 106.0b2). You press enter and nothing happens, not even normal run-of-the-mill URLs without the # on them. It might be something wrong with my setup, but it's worth an investigation I think. As always, thank you very much for your attention and sorry to bother.

Extension Stylesheet Loader question

Hi.
@aminomancer
I tried to use your Extension Stylesheet Loader script and it does not want to work for me.
Could you please explain step by step (or at least briefly) how to make it work without using DuskFox?
Sorry for the stupid questions.
By the way, I successfully use some of your scripts, for example, tooltips related ones (you helped me on Reddit 👍).
Thanks in advance..

Limiting page title when hovering tab [tabThumbnailTooltip.uc.js script]

Hi, first of all, thank you so much for your work!

Would it be possible to limit page title to a given number of characters? I don't actually want to limit the title page on firefox history settings, but only limit how much text is shown when I hover the tab thumbnail, like this:
02

So instead of :
Sem acordo, conflito poderá ser comparado só à 2ª Guerra Mundia, diz jornalista brasileiro em Kiev | O Assunto | G1

I would see something like:
Sem acordo, conflito poderá ser comparado só à 2ª Guerra Mundial...

In other words, on Firefox history settings, the page would still have its full page title, but when I hovered that tab I would only see a small snippet of the page title text.

Also, if possible, I was wondering if I could trigger this option of "limiting the page title text" to only when was I hovering a tab with a thumbnail available (some pages don't have thumbnail because they are on sleep mode/lazy mode). And on these cases, I would that Firefox shown the whole title, even if is it bigger, since there is no thumbnail available currently, like this:
image

Vertical tab pane not working completely as intended

As the title says, the vertical tab pane is not working completely as intended. While it's pinned at full width it seems to work perfectly. Though when I unpin it, it no longer collapses as it's supposed to, the text of the tabs and the icons to not show the pane and to pin or unpin it do collapse, but the rest of the pane is still just sitting there.

It was working perfectly for me yesterday and last night, and I usually use the Release channel of Firefox so I did try it on Nightly just to make sure it wasn't a version difference causing the issue and it is not, I get the exact same results on the Nightly version as I do on the Release version.

It's not the worst thing in the world and I can cope without it obviously, but I thought it would be good to bring it to your attention.

Screenshot 2021-10-06 133746
Screenshot 2021-10-06 133656

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.