parent
20d57fa135
commit
eaddab582e
|
@ -54,7 +54,7 @@ type LinkType = 'game';
|
|||
|
||||
const domain = window.location.host;
|
||||
const gameRegex = new RegExp(`(?:https?://)${domain}/(?:embed/)?(\\w{8})(?:(?:/(white|black))|\\w{4}|)(#\\d+)?$`);
|
||||
const notGames = ['training', 'analysis', 'insights', 'practice', 'features', 'password', 'streamer'];
|
||||
const notGames = ['training', 'analysis', 'insights', 'practice', 'features', 'password', 'streamer', 'timeline'];
|
||||
|
||||
export function expandIFrames(el: HTMLElement) {
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ window.lichess.load.then(() => {
|
|||
const domain = window.location.host,
|
||||
studyRegex = new RegExp(domain + '/study/(?:embed/)?(\\w{8})/(\\w{8})(#\\d+)?\\b'),
|
||||
gameRegex = new RegExp(domain + '/(?:embed/)?(\\w{8})(?:(?:/(white|black))|\\w{4}|)(#\\d+)?\\b'),
|
||||
notGames = ['training', 'analysis', 'insights', 'practice', 'features', 'password', 'streamer'];
|
||||
notGames = ['training', 'analysis', 'insights', 'practice', 'features', 'password', 'streamer', 'timeline'];
|
||||
|
||||
function parseLink(a: HTMLAnchorElement): Parsed | undefined {
|
||||
const yt = toYouTubeEmbedUrl(a.href);
|
||||
|
|
Loading…
Reference in New Issue