Skip to content

Instantly share code, notes, and snippets.

@wade-tattersall
Last active September 29, 2020 23:50
Show Gist options
  • Save wade-tattersall/39044f0cdbe3aefeedaefaac2b71d8f2 to your computer and use it in GitHub Desktop.
Save wade-tattersall/39044f0cdbe3aefeedaefaac2b71d8f2 to your computer and use it in GitHub Desktop.
A regression in Firefox 81 breaks Blackboard Learn. This userscript forces Learn to use a polyfill instead of the broken API.
// ==UserScript==
// @name Ultra IntersectionObserver Fix
// @version 1
// @grant none
// @match https://*/ultra/*
// @run-at document-start
// ==/UserScript==
delete unsafeWindow.IntersectionObserver;
@wade-tattersall
Copy link
Author

The @match is very broad, so it'll work on all Learn instances that are running Ultra. It might inadvertently affect non-Learn pages, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment