From 886398e76bae3f3bd36ac40c722279a5ecefe9f4 Mon Sep 17 00:00:00 2001 From: cyberden Date: Thu, 29 Feb 2024 15:02:08 +0100 Subject: [PATCH] Update replace titles for allocine integration --- src/content/js/content_script.js | 94 +++++++++++++++++++++++++++++++- 1 file changed, 92 insertions(+), 2 deletions(-) diff --git a/src/content/js/content_script.js b/src/content/js/content_script.js index a9caee2..f1de845 100644 --- a/src/content/js/content_script.js +++ b/src/content/js/content_script.js @@ -699,7 +699,44 @@ search: { containerSelector: 'meta[property="og:title"]', selectorType: 'content', - modifiers: [] + modifiers: + [ + { + type: 'replace', + from: 'critiques de la série ', + to: '' + }, + { + type: 'replace', + from: 'les saisons de ', + to: '' + }, + { + type: 'replace', + from: 'casting ', + to: '' + }, + { + type: 'replace', + from: 'actus de la série ', + to: '' + }, + { + type: 'replace', + from: 'vidéos ', + to: '' + }, + { + type: 'replace', + from: ' en streaming', + to: '' + }, + { + type: 'replace', + from: ' en vod', + to: '' + } + ] }, where: [ { @@ -725,7 +762,60 @@ search: { containerSelector: 'meta[property="og:title"]', selectorType: 'content', - modifiers: [] + modifiers: + [ + { + type: 'replace', + from: 'avis sur le film ', + to: '' + }, + { + type: 'replace', + from: 'séances ', + to: '' + }, + { + type: 'replace', + from: 'actus du film ', + to: '' + }, + { + type: 'replace', + from: 'bande-annonce vo ', + to: '' + }, + { + type: 'replace', + from: 'tout le casting du film ', + to: '' + }, + { + type: 'replace', + from: 'avis sur le film ', + to: '' + }, + { + type: 'replace', + from: ': les critiques presse', + to: '' + }, + { + type: 'replace', + from: 'photos et affiches du film ', + to: '' + }, + { + type: 'replace', + from: 'les secrets de tournage du film ', + to: '' + }, + { + type: 'replace', + from: 'les films similaires à ', + to: '' + } + + ] }, where: [ {