firefox
How can I enable dark mode when viewing a pdf file in firefox [closed]
Create a bookmarklet – a bookmark with the following in the location/address/URL field: javascript:(function(){var el = typeof viewer !== ‘undefined’ ? viewer : document.body; el.style.filter=”grayscale(1) invert(1) sepia(1) contrast(75%)”;})() Then, click on this bookmark after you open a PDF in Firefox.
Cross-Origin Request Blocked when loading local file
Firefox 68 contains a security patch which restricts the kinds of files that pages can load (and methods of loading) when you open them from a file:// URL. This change was made to prevent exfiltration of valuable data within reach of a local page, as demonstrated in an available exploit. More info: https://developer.mozilla.org/docs/Web/HTTP/CORS/Errors/CORSRequestNotHttp I filed … Read more
React debug Using VSCode and Firefox instead of Chrome
The mentioned plugin has the following github prepository: https://github.com/hbenl/vscode-firefox-debug Also if you look over the documentation better it states to do apply the following configuration over firefox in order to enable the debugging: The changes above can get applied via typing about:config to your browser’s address bar. Afterwards in order to debug just use the … Read more
how to run greasemonkey script before the page content is displayed?
EDIT: This post was created prior to the implementation of the @run-at key in Greasemonkey – as noted by Blaise, from Greasemonkey 0.9.8 you may now have the script executed as soon as the page begins to load. @run-at document-start is described in the wiki as follows: Start is new as of version 0.9.8. The … Read more
The right way of setting when it’s a local file
By definition, file: URLs are system-dependent, and they have little use. A URL as in your example works when used locally, i.e. the linking page itself is in the user’s computer. But browsers generally refuse to follow file: links on a page that it has fetched with the HTTP protocol, so that the page’s own … Read more
Manifest v3 background scripts/service worker on Firefox
Just faced the same problem: Chrome is not happy with background.scripts and insists on using background.service_worker Firefox doesn’t support background.service_worker and wants background.scripts Manifest v3 is developed by Google, so looks like Firefox team haven’t fully implemented it yet. Firefox 109 is the first version to “support” manifest v3 (released on January 17). I was … Read more
jQuery 1.10.2 warning issue from Firefox
This is a known issue, reported for version 1.10.2 and has been resolved for the 1.11/2.1 jQuery milestone. See a proposed pull request here, and the report on the bug tracker here. To fix this, just use a later version of jQuery, or change this line in event.js from: this.isDefaultPrevented = ( src.defaultPrevented || src.getPreventDefault … Read more
What heuristics do browsers use to cache resources not explicitly set to be cachable?
Let’s assume all browsers we are interested in are Internet Explorer 8 or newer (e.g. IE5 has some terrible behaviour with caching headers). There is only ONE standards based way of controlling caching (introduced with HTTP/1.1) – the Cache-Control HTTP header. Since at least 1996 IE has been using an opt-out policy for caching HTTPS … Read more
Inline Disabling of Firefox Spellcheck?
Talk about having a big “duh” moment! I found the answer after some trial & error: <textarea spellcheck=”false”></textarea>