Name Description Size
bug196916-mpi.mb.ca-polyfill-getWeekInfo.js Bug 1969165 - Polyfill getWeekInfo for mpi.mb.ca 44269
bug0000000-testbed-js-injection.js globals exportFunction 444
bug1448747-fastclick-shim.js Bug 1448747 - Neutralize FastClick The patch is applied on sites using FastClick library to make sure `FastClick.notNeeded` returns `true`. This allows to disable FastClick and fix various breakage caused by the library (mainly non-functioning drop-down lists). 954
bug1452707-window.controllers-shim-ib.absa.co.za.js Bug 1452707 - Build site patch for ib.absa.co.za WebCompat issue #16401 - https://webcompat.com/issues/16401 The online banking at ib.absa.co.za detect if window.controllers is a non-falsy value to detect if the current browser is Firefox or something else. In bug 1448045, this shim has been disabled for Firefox Nightly 61+, which breaks the UA detection on this site and results in a "Browser unsuppored" error message. This site patch simply sets window.controllers to a string, resulting in their check to work again. 1055
bug1457335-histography.io-ua-change.js Bug 1457335 - histography.io - Override UA & navigator.vendor WebCompat issue #1804 - https://webcompat.com/issues/1804 This site is using a strict matching of navigator.userAgent and navigator.vendor to allow access for Safari or Chrome. Here, we set the values appropriately so we get recognized as Chrome. 1176
bug1472075-bankofamerica.com-ua-change.js Bug 1472075 - Build UA override for Bank of America for OSX & Linux WebCompat issue #2787 - https://webcompat.com/issues/2787 BoA is showing a red warning to Linux and macOS users, while accepting Windows users without warning. From our side, there is no difference here and we receive a lot of user complains about the warnings, so we spoof as Firefox on Windows in those cases. 1561
bug1579159-m.tailieu.vn-pdfjs-worker-disable.js m.tailieu.vn - Override PDFJS.disableWorker to be true WebCompat issue #39057 - https://webcompat.com/issues/39057 Custom viewer built with PDF.js is not working in Firefox for Android Disabling worker to match Chrome behavior fixes the issue 956
bug1724868-news.yahoo.co.jp-ua-override.js Bug 1724868 - news.yahoo.co.jp - Override UA on Android and Linux WebCompat issue #82605 - https://webcompat.com/issues/82605 Yahoo Japan news doesn't allow playing video in Firefox on Android or Linux as those are not in their support matrix. They check UA override twice and display different UI with the same error. Changing the UA to Chrome via content script allows playing the videos. 888
bug1739489-draftjs-beforeinput.js Bug 1739489 - Entering an emoji using the MacOS IME "crashes" Draft.js editors. 1205
bug1769762-tiktok.com-plugins-shim.js Bug 1769762 - Empty out navigator.plugins WebCompat issue #103612 - https://webcompat.com/issues/103612 Certain features of the site are breaking if navigator.plugins array is not empty: 1. "Likes" on the comments are not saved 2. Can't reply to other people's comments 3. "Likes" on the videos are not saved 4. Can't follow an account (after refreshing "Follow" button is visible again) (note that the first 2 are still broken if you open devtools even with this intervention) 1303
bug1774005-installtrigger-shim.js Bug 1774005 - Generic window.InstallTrigger shim This interventions shims window.InstallTrigger to a string, which evaluates as `true` in web developers browser sniffing code. This intervention will be applied to multiple domains, see bug 1774005 for more information. 806
bug1799968-www.samsung.com-appVersion-linux-fix.js Bug 1799968 - Build site patch for www.samsung.com on Linux Bug 1860417 - and Android WebCompat issue #108993 - https://webcompat.com/issues/108993 Samsung's Watch pages try to detect the OS via navigator.appVersion, but fail with Linux and Android because they expect it to contain the literal string "linux", and their JS breaks. As such this site patch sets appVersion to "5.0 (Linux)", and is only meant to be applied on Linux or Android. 1122
bug1799980-healow.com-infinite-loop-fix.js Bug 1799980 - Healow gets stuck in an infinite loop while pages load This patch keeps Healow's localization scripts from getting stuck in an infinite loop while their pages are loading. This happens because they use synchronous XMLHttpRequests to fetch a JSON file with their localized text on the first call to their i18n function, and then force subsequent calls to wait for it by waiting in an infinite loop. But since they're in an infinite loop, the code after the syncXHR will never be able to run, so this ultimately triggers a slow script warning. We can improve this by just preventing the infinite loop from happening, though since they disable caching on their JSON files it means that more XHRs may happen. But since those files are small, this seems like a reasonable compromise until they migrate to a better i18n solution. See https://bugzilla.mozilla.org/show_bug.cgi?id=1799980 for details. 1418
bug1815733-outlook365-clipboard-read-noop.js Bug 1815733 - Annoying "Paste" overlay when trying to paste As per https://bugzilla.mozilla.org/show_bug.cgi?id=1815733#c13, Outlook is calling clipboard.read() again when they shouldn't. This is causing a visible "Paste" prompt for the user, which is stealing focus and can be annoying. 956
bug1818818-fastclick-legacy-shim.js Bug 1818818 - Neutralize FastClick The patch is applied on sites using older version of FastClick library. This allows to disable FastClick and fix various breakage caused by the library. 561
bug1819450-cmbchina.com-ua-change.js Bug 1819450 - cmbchina.com - Override UA The site is using UA detection to redirect to m.cmbchina.com (mobile version of the site). Adding `SAMSUNG` allows to bypass the detection of mobile browser. 905
bug1819476-axisbank.com-webkitSpeechRecognition-shim.js axisbank.com - Shim webkitSpeechRecognition WebCompat issue #117770 - https://webcompat.com/issues/117770 The page with bank offerings is not loading options due to the site relying on webkitSpeechRecognition, which is undefined in Firefox. Shimming it to `class {}` makes the pages work. 789
bug1819678-free4talk.com-window-chrome-shim.js Bug 1827678 - UA spoof for www.free4talk.com This site is checking for window.chrome, so let's spoof that. 593
bug1831007-nintendo-window-OnetrustActiveGroups.js Bug 1831007 - Shim window.OnetrustActiveGroups for Nintendo sites Nintendo relies on `window.OnetrustActiveGroups` being defined. If it's not, users may have intermittent issues signing into their account, as they're then trying to call `.split()` on `undefined`. This intervention sets a default value (an empty string), but still allows the value to be overwritten at any time. 891
bug1836157-thai-masszazs-niceScroll-disable.js Bug 1836157 - Shim navigator.platform on www.thai-massaszs.net/en/ This page adds niceScroll on Android, which breaks scrolling and zooming on Firefox. Adding ` Mac` to `navigator.platform` makes the page avoid adding niceScroll entirely, unbreaking the page. 1047
bug1841730-www.korg.com-fix-broken-page-loads.js Bug 1841730 - Fix www.korg.com support download page loads on Windows. They are using a library named PACE, which has a timing bug with Firefox which breaks page loads (due to a stuck progress indicator) on Windows. This is the fix suggested at https://github.com/CodeByZach/pace/issues/510 638
bug1842437-www.youtube.com-performance-now-precision.js Bug 1842437 - When attempting to go back on youtube.com, the content remains the same If consecutive session history entries had history.state.entryTime set to same value, back button doesn't work as expected. The entryTime value is coming from performance.now() and modifying its return value slightly to make sure two close consecutive calls don't get the same result helped with resolving the issue. 1223
bug1846742-microsoft.com-search-key-fix.js www.microsoft.com - Pressing enter on search suggestions does nothing When pressing enter on a search suggestion, nothing happens in Firefox due to key-event interop issues. We listen for enter keypresses and click the element as a work-around. 850
bug1847971-ebay.com-barcode-scanner.js Bug 1847971 - ebay.com listings page eBay does not show the barcode scanner option on Firefox on Android, though it seems to work. It uses a server-side check to tell itself to not enable the scanner feature, so rather than pretend to be Chrome entirely, we carefully change `barcodeEnabled` from `false` to `true`. 1542
bug1850998-chaturbate.com.js Bug 1850998 - going "fullscreen" does not hide the address bar The site avoids calling requestFullScreen on Firefox. We can address this by pretending to not be Firefox for that specific check. 849
bug1855014-eksiseyler.com.js eksiseyler.com - Set window.loggingEnabled = false WebCompat issue #77221 - https://webcompat.com/issues/77221 A scripting error on the site causes images to not load unless window.loggingEnabled = false 659
bug1859617-installtrigger-removal-shim.js Bug 1859617 - Generic window.InstallTrigger removal shim This interventions shims window.InstallTrigger to undefine it. 657
bug1878024-g1.globo.com-fix-account-icon.js Bug 1878024 - g1.globo.com squashed account icons Account icons appear to be squashed due to bug 1700474 with flex-sizing. This works around the issue by adding CSS to the relevant web component. 1206
bug1889326-office365-email-handling-prompt-autohide.js Bug 1889326 - Office 365 email handling prompt autohide This site patch prevents the notification bar on Office 365 apps from popping up on each page-load, offering to handle email with Outlook. 1155
bug1889505-bankmandiri.co.id-window.chrome.js bankmandiri.co.id - Define window.chrome to an empty object Bug #1889505 - https://bugzilla.mozilla.org/show_bug.cgi?id=1889505 WebCompat issue #67924 - https://webcompat.com/issues/67924 661
bug1897120-turnjs-zoom-fix.js Bug 1897120 - Override "MozTransform" in element.style and return false Webcompat issue #137038 - https://github.com/webcompat/web-bugs/issues/137038 The site is using turn js and detecting "MozTransform" in document.body.style, which returns true at the moment and uses the -moz-transform, which doesn't work, so zooming functionality breaks. Overriding "MozTransform" in element.style to return false fixes the problem. 2325
bug1898946-transcrib.io-chrome-shim.js Bug 1898946 - UA spoof for transcrib.io This checks navigator.userAgent and navigator.vendor to detect Chrome, so let's set appropriate values to also look like Chrome. 1072
bug1898952-digits.t-mobile.com.js Bug 1898952 - Spoof navigator.userAgentData for digits.t-mobile.com Webcompat issue #119767 - https://webcompat.com/issues/119767 The site blocks Firefox and Safari, reading info from userAgentData. 1706
bug1899937-plus.nhk.jp-request-picture-in-picture.js Bug 1899937 - Shim requestPictureInPicture for plus.nhk.jp WebCompat issue #103463 - https://webcompat.com/issues/103463 plus.nhk.jp is showing an error when attempting to play videos. Shimming requestPictureInPicture to `{}` makes the videos play. 1068
bug1901780-disable-legacy-mutation-events.js Bugs 1901780 - Disable legacy DOM Mutation Events to prevent performance issues. 1180
bug1902379-adl.edu.tw-hide-unsupported-popup.js Bug 1902379 - UA spoof for adl.edu.tw This site is checking for Chrome in navigator.userAgent and vendor, so let's spoof those. 1014
bug1902399-recochoku.jp-hide-unsupported-browser-warning.js Bug 1902399 - hide browser warning on recochoku.jp 978
bug1902406-sp.hi.co.kr-window-chrome-shim.js Bug 1902406 - UA spoof for sp.hi.co.kr This site is checking for window.chrome, so let's spoof that. 697
bug1905069-one.geekie.com.br-chrome-shims.js Bug 1905069 - UA spoof for one.geekie.com.br This site is checking for window.chrome and navigator.vendor, so let's spoof those. 944
bug1911423-app.powerbi.com-emulate-mousewheel-events.js globals exportFunction 1188
bug1919263-nbcsports.com-getCurrentUser-script-error-fix.js Bug 1919263 - nbcsports.com videos and photos are not displayed The site loads a script, mparticle.js, using a script tag with async=true, but this can cause it to load too late for other scripts on the page. We can prevent this by changing async to false when they try to load mparticle.js. 1056
bug1927984-modules.sms-timing.com-chrome-shim.js Bug 1927984 - UA spoof for modules.sms-timing.com This site is checking for window.chrome, so let's spoof that. 708
bug1928941-oasis.decart.ai-window-chrome-shim.js Bug 1928941 - UA spoof for oasis.decart.ai This site is checking for window.chrome, so let's spoof that. 589
bug1928954-publix.com-prevent-nav-on-javascript-url-click.js 634
bug1930440-online.singaporepools.com-prevent-unsupported-alert.js globals exportFunction 1365
bug1939248-rosasthai.com-load-event-helper.js Bug 1939248 - Load event listener issue on rosasthai.com WebCompat issue #145642 - https://webcompat.com/issues/145642 The site assumes that its code will run before the window load event, and so their buttons will not function properly if that is untrue. We can call those event listeners immediately as they try to add them, if the document readyState is already "complete", which fixes this bug. 1451
bug1943898-www.capital.gr-suppress-constant-reloading.js www.capital.gr - Reloading the page results in endless reloading loops. Bug #1943898 - https://bugzilla.mozilla.org/show_bug.cgi?id=1943898 WebCompat issue #74073 - https://webcompat.com/issues/74073 The site does not anticipate Firefox's form-filling behavior on page reloads, which causes it to accidentally trigger endless reload loops. We fix this by clearing the form element as they check it the first time. 1206
bug1945019-order.mealkeyway.com-prevent-unsupported-message.js globals exportFunction 932
bug1950282-formula1.com-platform-linux-fix.js Bug 1950282 - navigator.platform Windowss override for Formula 1 TV on Linux Formula1 TV is doing some kind of check for Android devices which is causing it to treat Firefox on Linux as an Android device, and blocking it. Overriding navigator.platform to Win64 on Linux works around this issue. 961
bug1956165-www.youtube.com-picture-in-picture-fix.js Bug 1956165 - Fix picture-in-picture mode on Mobile YouTube YouTube does not play well with our picture in picture implementation, and effectively cancels it. We can work around this conflict with this site patch. 2607
bug1957657-myheritage.com-fix-signup-email-field.js Bug 1957657 - myheritage.com email signup field does not work on Android The site does a call to blur an element at an unexpected time, and hits a probable interop bug in Firefox. We can ignore that specific blur call. 849
bug1960595-de.pons.com-hide-unsupported-banner.js Bug 1960595 - 'browser not fully unsupported' banner is shown on Android The site reads navigator.userAgent with a specific regexp to show the banner, and since it has no obvious CSS to target, and the same banner mechanism may be used for other purposes, we surgically return false for that regexp's test to prevent the banner from showing. 1086
bug1962353-cartlow.com-fix-product-filters.js Bug 1962353 - Fix www.cartlow.com product filters WebCompat issue #152573 - https://webcompat.com/issues/152573 The site replaces their filter form elements in a way which is not interoperable on Chrome and Firefox. By removing the `for` attribute from the related labels, it works as expected. 1267
bug1963270-app.kosmi.io-unprefix-mozCaptureStream.js Bug 1963270 - app.kosmi.io - missing "local file" media selection option The site does not show its "local file" option when selecting media unless the captureStream API is available, and does not check for the prefixed version (which it seems to work with, so we unprefix it here). 638
bug1966673-culturepsg.com-niceScroll-cantouch-fix.js Bug 1966673 - Override "MozAppearance" in element.style and return false Webcompat issue #154290 - https://github.com/webcompat/web-bugs/issues/154290 Webcompat issue #33886 - https://github.com/webcompat/web-bugs/issues/33886 The site is using an older version of NiceScroll which has a bug that causes Firefox on Android to not react to touch events, breaking their News links. Overriding "MozAppearance" in element.style to return false fixes the problem. 2365
bug1967510-gemini.google.com-fix-copy-pasting-between-inputs.js Bug 1967510 - gemini.google.com copy-pasting between inputs does not work When editing a prompt and copying some text, they call setData with an empty string for text/html. Firefox dutifully sets that value, other browsers ignore it. Then when trying to paste, they check if it's an empty string and ignore it, so pasting the value does nothing. We can work around this interop quirk by just clearing that empty data. 1195