Comments (4)
There appear to be further issues with lacking a Clear Downloads button, so I'll keep investigating. The font has gone wonky too. It looks like window.ucjs_downloadManagerMain() is failing with an error, which causes the init not to complete successfully. The download box does open however.
from firefox-scripts.
Where did you download ucjsDownloadsManager.uc.js?4 months ago The XPCOMUtils.defineLazyModuleGetter line was changed to ChromeUtils.defineESModuleGetters。https://github.com/alice0775/userChrome.js/blob/824ae9ae02a91a21ad6e8703f9f8cdf8941bd0a8/117/ucjsDownloadsManager.uc.js#L105C7-L107
from firefox-scripts.
Ah, my script might be out of date then. I'll take a look and compare to see what else I need to change.
from firefox-scripts.
So I updated to Alice's newest version for 117 and it didn't fix the issue, as of its current build. Looks like I'll need to report a bug there at some point. The remaining error I had was in ucjs_downloadManagerMain.init()
:
// xxx remove in-content css
- var elements = document.childNodes;
- for (var i = 0; i <= elements.length; i++) {
- var element = elements[i];
- if (element.nodeValue && element.nodeValue.indexOf("chrome://browser/skin/downloads/contentAreaDownloadsView.css") > -1) {
- document.removeChild(element);
- break;
- }
- }
+ let element = document.querySelector('link[href$="skin/downloads/contentAreaDownloadsView.css"]');
+ if(element) element.parentNode.removeChild(element);
There are two problems with the old code. The first is that the <=
in that loop was wrong all along, but it never triggered because of the fact that the loop was finding the right element before and breaking out before it got beyond the length of the array. The second problem is because this search for the CSS link was brittle, when the structure of the download manager changed in Firefox 120 it no longer found the old CSS link to remove.
from firefox-scripts.
Related Issues (20)
- Preparation for Firefox 117 HOT 113
- Download Manager (S3) broken in Firefox v115.00 HOT 5
- Norwell History Tools Visual Bugs in Firefox 115.0.3 HOT 17
- multifoxContainer: Not working
- Last update broke firefox-scripts HOT 1
- DownThemAll not working since Nightly 118.0a1 Builddate 20230811095324 HOT 37
- Status Bar broken in 117 HOT 6
- StatusBar doesn't styled properly in Firefox 115.2.0 ESR under Windows 7 HOT 1
- Fast Tab Switcher not Working on 117 HOT 2
- History and bookmarks are not available with Enter Selects HOT 1
- Status bar background color changed in Firefox 119 HOT 5
- SyloaiX icon missing in Firefox 119 HOT 4
- Icons ("US"/"AG") without color in StyloaiX popup - Firefox 120
- Private tab script not working since Firefox 119 HOT 8
- Tab Groups no longer working after update (working as of version 120 with workaround) HOT 2
- StyloaiX editor does not work correctly in Firefox 122 HOT 3
- Authentican issue in DownThemAll!
- The (old) about:config folder broken in Firefox v120+ HOT 1
- StyloaiX bug with multiple open window
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firefox-scripts.