Skip to content

Commit

Permalink
Remove Flipgrid embed support
Browse files Browse the repository at this point in the history
Flipgrid no longer exists. URLs like https://flipgrid.com/s/030475b8ceff and the
embedded variant (`?embed=true`) take you to a PDF file [1] telling you about the
retirement of the service.

[1] https://cdn-dynmedia-1.microsoft.com/is/content/microsoftcorp/microsoft/final/en-us/microsoft-product-and-services/microsoft-education/downloadables/flip-ms-edu.pdf
  • Loading branch information
robertknight committed Oct 23, 2024
1 parent dec4f24 commit 48ff85c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
7 changes: 0 additions & 7 deletions src/sidebar/media-embedder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,6 @@ const embedGenerators: Array<(link: HTMLAnchorElement) => HTMLElement | null> =
id => `https://player.vimeo.com/video/${id}`,
),

// Matches URLs like https://flipgrid.com/s/030475b8ceff
createEmbedGenerator(
'flipgrid.com',
/^\/s\/([^/]+)$/,
id => `https://flipgrid.com/s/${id}?embed=true`,
),

/**
* Match Internet Archive URLs
*
Expand Down
16 changes: 0 additions & 16 deletions src/sidebar/test/media-embedder-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,22 +275,6 @@ describe('sidebar/media-embedder', () => {
});
});

it('replaces Flipgrid links with iframes', () => {
[
['https://flipgrid.com/s/abc123', 'abc123'],
['https://flipgrid.com/s/def456?foo', 'def456'],
].forEach(([url, id]) => {
const element = domElement('<a href="' + url + '">' + url + '</a>');

mediaEmbedder.replaceLinksWithEmbeds(element);

assert.equal(
embedUrl(element),
'https://flipgrid.com/s/' + id + '?embed=true',
);
});
});

it('replaces internet archive links with iframes', () => {
const urls = [
// Video details page.
Expand Down

0 comments on commit 48ff85c

Please sign in to comment.