Name Description Size
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). 1005
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. 1135
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. 1180
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. 1586
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 933
bug1722955-frontgate.com-ua-override.js Bug 1722955 - Add UA override for frontgate.com Webcompat issue #36277 - https://github.com/webcompat/web-bugs/issues/36277 The website is sending the desktop version to Firefox on mobile devices based on UA sniffing. Spoofing as Chrome fixes this. 721
bug1724868-news.yahoo.co.jp-ua-override.js Bug 1724868 - news.yahoo.co.jp - Override UA WebCompat issue #82605 - https://webcompat.com/issues/82605 Yahoo Japan news doesn't allow playing video in Firefox on Android as they don't have it in their support matrix. They check UA override twice and display different ui with the same error. Changing UA to Chrome via content script allows playing the videos. 1089
bug1739489-draftjs-beforeinput.js Bug 1739489 - Entering an emoji using the MacOS IME "crashes" Draft.js editors. 1181
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) 1232
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. 942
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. 1066
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. 934
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. 688
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. 880
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. 857
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. 701
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. 948
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. 870
bug1841730-www.korg.com-fix-broken-page-loads.js Bug 1841730 - Fix www.korg.com support download page loads on Windows. WebCompat issue #2787 - https://webcompat.com/issues/2787 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 968
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. 1308
bug1849058-nicochannel.jp-picture-in-picture-shim.js Bug 1849058 - Shim PictureInPictureWindow for nicochannel.jp WebCompat issue #124463 - https://webcompat.com/issues/124463 The page is showing unsupported message based on typeof window.PictureInPictureWindow, which is undefined in Firefox. Shimming it to `class {}` makes the pages work. 872
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 798
bug1859617-installtrigger-removal-shim.js Bug 1859617 - Generic window.InstallTrigger removal shim This interventions shims window.InstallTrigger to undefine it. 811
bug1881922-disable-legacy-mutation-events.js Bugs 1881922, 1901780 - Disable legacy DOM Mutation Events to prevent performance issues. 1274
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. 1202
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
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. 867
bug1924500-www.tiktok.com-fix-captcha-slider.js Bug 1924500 - Fix www.tiktok.com captcha slider WebCompat issue #142709 - https://webcompat.com/issues/142709 They are relying on drag events having clientX coordinates, which are always zero on Firefox. A work-around is to listen for mousemove and dragover events to capture the clientX value from them, and then pass the value along when they reads a DragEvent.clientX. 2047
bug1928216-voice.google.com-permissions.query.js Bug 1928216 - Google Voice doesn't list microphones in Firefox 132 As per https://bugzilla.mozilla.org/show_bug.cgi?id=1928216#c9, Google Voice is not handling permissions.query() working for camera and microphone correctly, so emulate an earlier version that rejects for those. 1523