├── src ├── shims │ ├── empty-shim.txt │ ├── tracking-pixel.png │ ├── empty-script.js │ ├── mochitest-shim-3.js │ ├── botd.mjs │ ├── google-analytics-ecommerce-plugin.js │ ├── facebook.svg │ ├── vast2.xml │ ├── vast3.xml │ ├── vmad.xml │ ├── addthis-angular.js │ ├── chartbeat.js │ ├── adsafeprotected-ima.js │ ├── bmauth.js │ ├── play.svg │ ├── google-page-ad.js │ ├── adform.js │ ├── doubleverify.js │ ├── iam.js │ ├── iaspet.js │ ├── webtrends.js │ ├── microsoftLogin.js │ ├── moat.js │ ├── microsoftVirtualAssistant.js │ ├── salesforce.js │ ├── instagram.js │ ├── criteo.js │ ├── history.js │ ├── maxmind-geoip.js │ ├── tsn-ca.js │ ├── crave-ca.js │ ├── stackoverflow-login.js │ ├── adnexus-prebid.js │ ├── apstag.js │ ├── kinja.js │ ├── google-ads.js │ ├── fastclick.js │ ├── branch.js │ ├── blogger.js │ ├── bloggerAccount.js │ ├── live-test-shim.js │ ├── firebase.js │ ├── mochitest-shim-2.js │ ├── figshare.js │ ├── mochitest-shim-1.js │ ├── nielsen.js │ ├── messengerLogin.js │ └── eluminate.js ├── about-compat │ ├── aboutPage.json │ ├── aboutPageProcessScript.js │ ├── AboutCompat.sys.mjs │ ├── aboutPage.js │ └── aboutCompat.html ├── injections │ ├── js │ │ ├── .bug1930440-online.singaporepools.com-prevent-unsupported-alert.js.swp │ │ ├── bug0000000-testbed-js-injection.js │ │ ├── bug1818818-fastclick-legacy-shim.js │ │ ├── bug1819678-free4talk.com-window-chrome-shim.js │ │ ├── bug1928941-oasis.decart.ai-window-chrome-shim.js │ │ ├── bug1841730-www.korg.com-fix-broken-page-loads.js │ │ ├── bug1855014-eksiseyler.com.js │ │ ├── bug1889505-bankmandiri.co.id-window.chrome.js │ │ ├── bug1859617-installtrigger-removal-shim.js │ │ ├── bug1902406-sp.hi.co.kr-window-chrome-shim.js │ │ ├── bug1927984-modules.sms-timing.com-chrome-shim.js │ │ ├── bug1774005-installtrigger-shim.js │ │ ├── bug1819476-axisbank.com-webkitSpeechRecognition-shim.js │ │ ├── bug1846742-microsoft.com-search-key-fix.js │ │ ├── bug1724868-news.yahoo.co.jp-ua-override.js │ │ ├── bug1831007-nintendo-window-OnetrustActiveGroups.js │ │ ├── bug1923286-bing.com-image-click-fix.js │ │ ├── bug1819450-cmbchina.com-ua-change.js │ │ ├── bug1849058-nicochannel.jp-picture-in-picture-shim.js │ │ ├── bug1950282-formula1.com-platform-linux-fix.js │ │ ├── bug1448747-fastclick-shim.js │ │ ├── bug1815733-outlook365-clipboard-read-noop.js │ │ ├── bug1945019-order.mealkeyway.com-prevent-unsupported-message.js │ │ ├── bug1905069-one.geekie.com.br-chrome-shims.js │ │ ├── bug1579159-m.tailieu.vn-pdfjs-worker-disable.js │ │ ├── bug1836157-thai-masszazs-niceScroll-disable.js │ │ ├── bug1452707-window.controllers-shim-ib.absa.co.za.js │ │ ├── bug1899937-plus.nhk.jp-request-picture-in-picture.js │ │ ├── bug1898946-transcrib.io-chrome-shim.js │ │ ├── bug1799968-www.samsung.com-appVersion-linux-fix.js │ │ ├── bug1950301-shamir.com-ua-overrides.js │ │ ├── bug1457335-histography.io-ua-change.js │ │ ├── bug1889326-office365-email-handling-prompt-autohide.js │ │ ├── bug1901780-disable-legacy-mutation-events.js │ │ ├── bug1943898-www.capital.gr-suppress-constant-reloading.js │ │ ├── bug1739489-draftjs-beforeinput.js │ │ ├── bug1842437-www.youtube.com-performance-now-precision.js │ │ ├── bug1769762-tiktok.com-plugins-shim.js │ │ ├── bug1944725-homedepot.com-innerWidth-fix.js │ │ ├── bug1799980-healow.com-infinite-loop-fix.js │ │ ├── bug1930440-online.singaporepools.com-prevent-unsupported-alert.js │ │ ├── bug1939248-rosasthai.com-load-event-helper.js │ │ ├── bug1928216-voice.google.com-permissions.query.js │ │ ├── bug1472075-bankofamerica.com-ua-change.js │ │ ├── bug1898952-digits.t-mobile.com.js │ │ ├── bug1924500-www.tiktok.com-fix-captcha-slider.js │ │ └── bug1897120-turnjs-zoom-fix.js │ └── css │ │ ├── bug0000000-testbed-css-injection.css │ │ ├── bug1707795-office365-sheets-overscroll-disable.css │ │ ├── bug1830796-copyleaks.com-hide-unsupported.css │ │ ├── bug1899937-plus.nhk.jp-hide-unsupported.css │ │ ├── bug1741234-patient.alphalabs.ca-height-fix.css │ │ ├── bug1836103-autostar-novoross.ru-make-map-taller.css │ │ ├── bug1896349-vivaldi.com-selected-text-fix.css │ │ ├── bug1819678-nppes.cms.hhs.gov-unsupported-banner.css │ │ ├── bug1934567-www.port8.fi-scrolling-fix.css │ │ ├── bug1779908-play.google.com-scrollbar-fix.css │ │ ├── bug1892898-investopedia.com-fix-card-height.css │ │ ├── bug1911253-qq.com-unhide-checkboxes.css │ │ ├── bug1942292-beterbed.nl-scrollbar-fix.css │ │ ├── bug1943920-add.org-fix-overlapping-menu.css │ │ ├── bug1694470-myvidster.com-content-not-shown.css │ │ ├── bug1784199-entrata-platform-unsupported.css │ │ ├── bug1945830-aliexpress.com-country-flags-fix.css │ │ ├── bug1770962-coldwellbankerhomes.com-image-height.css │ │ ├── bug1856915-login.yahoo.com-unhide-password-button-fix.css │ │ ├── bug1886616-www.six-group.com-select-fix.css │ │ ├── bug1886566-quezoncity.gov.ph-iframe-height.css │ │ ├── bug1895051-www.zhihu.com-broken-button-fix.css │ │ ├── bug1886591-la-vache-noire.com-cookie-banner-fix.css │ │ ├── bug1948047-lovers.cacaushow.com.br-nudge-login-popup-onscreen.css │ │ ├── bug1931538-buzzfeed.com-card-game-fix.css │ │ ├── bug1845299-docs.google.com-hide-extra-scrollbar-on-speaker-notes.css │ │ ├── bug1926506-aliexpress.com-hide-extra-scrollbars.css │ │ ├── bug1896571-gracobaby.ca-unlock-scrolling.css │ │ ├── bug1947105-pexels.com-nudge-thanks-popup-onscreen.css │ │ ├── bug1941530-climate.rutgers.edu-fix-broken-images.css │ │ ├── bug1925937-gazetasp.com.br-hide-extra-scrollbars.css │ │ ├── bug1947979-shazam.com-hide-extra-scrollbars.css │ │ ├── bug1575000-apply.lloydsbank.co.uk-radio-buttons-fix.css │ │ ├── bug1836105-cnn.com-fix-blank-pages-when-printing.css │ │ ├── bug1848849-theaa.com-printing-mode-fix.css │ │ ├── bug1868345-tvmovie.de-scroll-fix.css │ │ ├── bug1901000-eyebuydirect.ca-fix-paypal-button.css │ │ ├── bug1950053-omegleapp.me-fix-scrollbars.css │ │ ├── bug1944727-www.linkedin.com-fix-dark-overlay.css │ │ ├── bug1644830-missingmail.usps.com-checkboxes-not-visible.css │ │ ├── bug1610344-directv.com.co-hide-unsupported-message.css │ │ ├── bug1836872-docs.google.com-font-submenus-inaccessible.css │ │ ├── bug1873166-nsandi.com-hide-unsupported-message.css │ │ ├── bug1848713-cleanrider.com-slider.css │ │ ├── bug1925508-developer-apple.com-transform-scale.css │ │ ├── bug1830752-afisha.ru-slider-pointer-events.css │ │ └── bug1886293-futurePLC-sites-trending_scrollbars.css ├── tests │ └── browser │ │ ├── shims_test_3.js │ │ ├── smartblock_embed_test.html │ │ ├── shims_test.js │ │ ├── shims_test_2.js │ │ ├── browser.toml │ │ ├── iframe_test.html │ │ ├── shims_test.html │ │ ├── shims_test_2.html │ │ ├── shims_test_3.html │ │ ├── browser_aboutcompat.js │ │ ├── embed_test.js │ │ └── browser_shims.js ├── experiment-apis │ ├── appConstants.json │ ├── systemManufacturer.json │ ├── systemManufacturer.js │ ├── matchPatterns.json │ ├── matchPatterns.js │ ├── aboutConfigPrefsChild.js │ ├── testUtils.js │ ├── testUtils.json │ ├── appConstants.js │ ├── aboutConfigPrefs.js │ └── aboutConfigPrefs.json ├── components.conf ├── run.js └── lib │ ├── requestStorageAccess_helper.js │ ├── messaging_helper.js │ └── shim_messaging_helper.js ├── .prettierignore ├── .swp ├── .gitignore ├── .github └── renovate.json ├── spec ├── support │ └── jasmine.json ├── helpers │ ├── mock_about_compat_broker.js │ ├── webext_manifest_schema.js │ ├── mock_webextension_apis.js │ └── content_scripts_test_helpers.js └── available_shims.spec.js ├── .cron.yml ├── .prettierrc.js ├── CODE_OF_CONDUCT.md ├── .githooks └── pre-push ├── package.json └── testing └── webcompat └── interventions └── tests └── test_1947105_pexels_com.py /src/shims/empty-shim.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | src/run.js 2 | -------------------------------------------------------------------------------- /.swp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mozilla-extensions/webcompat-addon/HEAD/.swp -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | dist 3 | node_modules 4 | npm-debug.log 5 | web-ext-artifacts 6 | *.pyc 7 | -------------------------------------------------------------------------------- /src/shims/tracking-pixel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mozilla-extensions/webcompat-addon/HEAD/src/shims/tracking-pixel.png -------------------------------------------------------------------------------- /.github/renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["config:base"], 3 | "ignoreDeps": ["prettier"], 4 | "reviewers": ["denschub"] 5 | } 6 | -------------------------------------------------------------------------------- /src/about-compat/aboutPage.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "namespace": "aboutCompat", 4 | "description": "Enables the about:compat page" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /spec/support/jasmine.json: -------------------------------------------------------------------------------- 1 | { 2 | "spec_dir": "spec", 3 | "spec_files": ["**/*[sS]pec.js"], 4 | "helpers": ["helpers/**/*.js"], 5 | "stopSpecOnExpectationFailure": false, 6 | "random": true 7 | } 8 | -------------------------------------------------------------------------------- /.cron.yml: -------------------------------------------------------------------------------- 1 | # Definitions for jobs that run periodically. For details on the format, see 2 | # `taskcluster/taskgraph/cron/schema.py`. For documentation, see 3 | # `taskcluster/docs/cron.rst`. 4 | 5 | --- 6 | 7 | jobs: [] 8 | -------------------------------------------------------------------------------- /src/injections/js/.bug1930440-online.singaporepools.com-prevent-unsupported-alert.js.swp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mozilla-extensions/webcompat-addon/HEAD/src/injections/js/.bug1930440-online.singaporepools.com-prevent-unsupported-alert.js.swp -------------------------------------------------------------------------------- /src/shims/empty-script.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /* This script is intentionally empty */ 6 | -------------------------------------------------------------------------------- /src/shims/mochitest-shim-3.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | "use strict"; 6 | 7 | window.shimPromiseResolve("shimmed"); 8 | -------------------------------------------------------------------------------- /src/tests/browser/shims_test_3.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | "use strict"; 6 | 7 | window.shimPromiseResolve("did not shim"); 8 | -------------------------------------------------------------------------------- /src/injections/css/bug0000000-testbed-css-injection.css: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | #css-injection.red { 6 | background-color: #0f0; 7 | } 8 | -------------------------------------------------------------------------------- /src/tests/browser/smartblock_embed_test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/tests/browser/shims_test.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | "use strict"; 6 | 7 | if (window.doingOptIn) { 8 | window.optInPromiseResolve(true); 9 | } else { 10 | window.shimPromiseResolve("did not shim"); 11 | } 12 | -------------------------------------------------------------------------------- /src/tests/browser/shims_test_2.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | "use strict"; 6 | 7 | if (window.doingOptIn) { 8 | window.optInPromiseResolve(true); 9 | } else { 10 | window.shimPromiseResolve("did not shim"); 11 | } 12 | -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /* eslint-env node */ 6 | 7 | module.exports = { 8 | arrowParens: "avoid", 9 | endOfLine: "lf", 10 | printWidth: 80, 11 | tabWidth: 2, 12 | trailingComma: "es5", 13 | }; 14 | -------------------------------------------------------------------------------- /spec/helpers/mock_about_compat_broker.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | "use strict"; 6 | 7 | module.exports = { 8 | filterOverrides: () => {}, 9 | portsToAboutCompatTabs: { 10 | broadcast: () => {}, 11 | }, 12 | }; 13 | -------------------------------------------------------------------------------- /src/shims/botd.mjs: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | let bd = {}; 6 | bd.detect = async function () { 7 | return { bot: false }; 8 | }; 9 | let load = async function () { 10 | return bd; 11 | }; 12 | 13 | export { load, load as default }; 14 | -------------------------------------------------------------------------------- /src/shims/google-analytics-ecommerce-plugin.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | "use strict"; 6 | 7 | if (!window.gaplugins) { 8 | window.gaplugins = {}; 9 | } 10 | 11 | if (!window.gaplugins.EC) { 12 | window.gaplugins.EC = () => {}; 13 | } 14 | -------------------------------------------------------------------------------- /src/shims/facebook.svg: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Community Participation Guidelines 2 | 3 | This repository is governed by Mozilla's code of conduct and etiquette guidelines. For more details, please read the [Mozilla Community Participation Guidelines](https://www.mozilla.org/about/governance/policies/participation/). 4 | 5 | ## How to Report 6 | 7 | For more information on how to report violations of the Community Participation Guidelines, please read our '[How to Report](https://www.mozilla.org/about/governance/policies/participation/reporting/)' page. 8 | -------------------------------------------------------------------------------- /src/injections/css/bug1707795-office365-sheets-overscroll-disable.css: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /** 6 | * www.office.com - There is an overscroll effect on Excel sheets which is 7 | * not a very pleasant user experience. This invention disables it. 8 | */ 9 | 10 | .ewr-sheetcontainer { 11 | overscroll-behavior: none; 12 | } 13 | -------------------------------------------------------------------------------- /src/shims/vast2.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 |