{"id":3809,"date":"2024-05-08T08:03:13","date_gmt":"2024-05-08T08:03:13","guid":{"rendered":"http:\/\/screamingfrog.club\/javascript-personnalise\/"},"modified":"2024-07-05T07:58:49","modified_gmt":"2024-07-05T07:58:49","slug":"javascript-personnalise","status":"publish","type":"post","link":"https:\/\/screamingfrog.club\/fr\/javascript-personnalise\/","title":{"rendered":"Javascript personnalis\u00e9"},"content":{"rendered":"<div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 fusion-flex-container has-pattern-background has-mask-background nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-flex-start fusion-flex-content-wrap\" style=\"max-width:1248px;margin-left: calc(-4% \/ 2 );margin-right: calc(-4% \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_1 1_1 fusion-flex-column\" style=\"--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:1.92%;--awb-margin-bottom-large:20px;--awb-spacing-left-large:1.92%;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:1.92%;--awb-spacing-left-medium:1.92%;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:1.92%;--awb-spacing-left-small:1.92%;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column\"><div class=\"fusion-title title fusion-title-1 fusion-title-center fusion-title-text fusion-title-size-three\" style=\"--awb-text-color:#141617;--awb-margin-top:20px;--awb-margin-bottom:20px;--awb-font-size:40px;\"><div class=\"title-sep-container title-sep-container-left\"><div class=\"title-sep sep-single sep-solid\" style=\"border-color:var(--awb-color3);\"><\/div><\/div><span class=\"awb-title-spacer\"><\/span><h3 class=\"fusion-title-heading title-heading-center awb-gradient-text fusion-responsive-typography-calculated\" style=\"font-family:&quot;Work Sans&quot;;font-style:normal;font-weight:800;margin:0;letter-spacing:-0.012em;text-transform:var(--awb-typography1-text-transform);background-color:#f79501;background-image:linear-gradient(150deg, #f79501 20%,#fe6996 100%);font-size:1em;--fontSize:40;line-height:1;\">Configuration JS personnalis\u00e9e<\/h3><span class=\"awb-title-spacer\"><\/span><div class=\"title-sep-container title-sep-container-right\"><div class=\"title-sep sep-single sep-solid\" style=\"border-color:var(--awb-color3);\"><\/div><\/div><\/div><div class=\"fusion-text fusion-text-1\"><p>Le JavaScript personnalis\u00e9 est une nouvelle fonctionnalit\u00e9 de <a href=\"version\">Screaming Frog dans sa version 20<\/a> et permet d&rsquo;ex\u00e9cuter un code JavaScript sur chaque URL analys\u00e9e avec le SEO Spider.<br \/>\nGr\u00e2ce \u00e0 cette fonctionnalit\u00e9, il est possible d&rsquo;extraire toutes sortes d&rsquo;informations utiles d&rsquo;une page web qui ne seraient pas d\u00e9j\u00e0 disponibles dans Spider SEO, ainsi que de communiquer avec des API telles que ChatGPT d&rsquo;OpenAI, LLM local ou d&rsquo;autres biblioth\u00e8ques.<\/p>\n<p>&gt; &gt; Pour configurer le Seo Spider avec cette fonctionnalit\u00e9, cliquez simplement sur \u00ab\u00a0Configurer le JavaScript personnalis\u00e9\u00a0\u00bb. Cliquez ensuite sur \u00ab\u00a0Ajouter\u00a0\u00bb pour commencer \u00e0 configurer un nouveau snippet, ou sur \u00ab\u00a0Ajouter \u00e0 partir de la biblioth\u00e8que\u00a0\u00bb pour choisir un snippet existant pr\u00e9configur\u00e9 par l&rsquo;\u00e9quipe de Screaming Frog.<\/p>\n<\/div><div class=\"fusion-image-element \" style=\"--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><span class=\" fusion-imageframe imageframe-none imageframe-1 hover-type-none\"><img decoding=\"async\" width=\"1426\" height=\"815\" alt=\"Custom Javascript con Screaming Frog\" title=\"custom-javascript-snippets\" src=\"http:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/custom-javascript-snippets.png\" class=\"img-responsive wp-image-2624\" srcset=\"https:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/custom-javascript-snippets-200x114.png 200w, https:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/custom-javascript-snippets-400x229.png 400w, https:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/custom-javascript-snippets-600x343.png 600w, https:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/custom-javascript-snippets-800x457.png 800w, https:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/custom-javascript-snippets-1200x686.png 1200w, https:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/custom-javascript-snippets.png 1426w\" sizes=\"(max-width: 640px) 100vw, 1200px\" \/><\/span><\/div><div class=\"fusion-text fusion-text-2\" style=\"--awb-margin-top:10px;\"><p>La biblioth\u00e8que comprend des exemples de snippets permettant d&rsquo;ex\u00e9cuter diverses fonctions et constitue un v\u00e9ritable r\u00e9servoir d&rsquo;inspiration pour des analyses de plus en plus granulaires et compl\u00e8tes :<\/p>\n<ul>\n<li>Analyse du sentiment, de l&rsquo;intention de recherche ou de la langue du contenu de la page.<\/li>\n<li>G\u00e9n\u00e9ration de textes alternatifs pour les images.<\/li>\n<li>Activation des \u00e9v\u00e9nements de survol de la souris.<\/li>\n<li>D\u00e9filement d&rsquo;une page (pour analyser certaines configurations avec d\u00e9filement infini).<\/li>\n<li>Extraction de contenu \u00ab\u00a0int\u00e9gr\u00e9\u00a0\u00bb \u00e0 partir du contenu de la page.<\/li>\n<li>T\u00e9l\u00e9charger et enregistrer localement divers contenus tels que des images.<\/li>\n<\/ul>\n<p>La biblioth\u00e8que est absolument formidable pour commencer \u00e0 manipuler les JS et, en les r\u00e9visant, les personnaliser de mani\u00e8re unique pour votre projet.<\/p>\n<\/div><div class=\"fusion-image-element \" style=\"--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><span class=\" fusion-imageframe imageframe-none imageframe-2 hover-type-none\"><img decoding=\"async\" width=\"1243\" height=\"822\" alt=\"Finestra di debug per la JS personalizzata\" title=\"custom-javascript-editor\" src=\"http:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/custom-javascript-editor.png\" class=\"img-responsive wp-image-2628\" srcset=\"https:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/custom-javascript-editor-200x132.png 200w, https:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/custom-javascript-editor-400x265.png 400w, https:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/custom-javascript-editor-600x397.png 600w, https:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/custom-javascript-editor-800x529.png 800w, https:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/custom-javascript-editor-1200x794.png 1200w, https:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/custom-javascript-editor.png 1243w\" sizes=\"(max-width: 640px) 100vw, 1200px\" \/><\/span><\/div><div class=\"fusion-text fusion-text-3\"><p class=\"p1\">Cette fonction permet \u00e9galement de d\u00e9finir un filtre de type de contenu, ce qui permettra \u00e0 l&rsquo;extrait JavaScript personnalis\u00e9 d&rsquo;effectuer l&rsquo;action uniquement pour certains types de contenu et de ne pas gaspiller l&rsquo;API d&rsquo;OpenAi.<\/p>\n<p class=\"p1\">Les r\u00e9sultats seront alors disponibles dans l&rsquo;onglet JavaScript personnalis\u00e9.<\/p>\n<\/div><div class=\"fusion-image-element \" style=\"--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><span class=\" fusion-imageframe imageframe-none imageframe-3 hover-type-none\"><img decoding=\"async\" width=\"1212\" height=\"1174\" alt=\"Nuova tab javascript personalizzata di Screaming Frog\" title=\"custom-javascript-tab\" src=\"http:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/custom-javascript-tab.png\" class=\"img-responsive wp-image-2627\" srcset=\"https:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/custom-javascript-tab-200x194.png 200w, https:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/custom-javascript-tab-400x387.png 400w, https:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/custom-javascript-tab-600x581.png 600w, https:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/custom-javascript-tab-800x775.png 800w, https:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/custom-javascript-tab-1200x1162.png 1200w, https:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/custom-javascript-tab.png 1212w\" sizes=\"(max-width: 640px) 100vw, 1200px\" \/><\/span><\/div><div class=\"fusion-text fusion-text-4\"><p>Pour utiliser l&rsquo;API OpenAi, vous devez acheter des cr\u00e9dits. Il n&rsquo;est pas suffisant d&rsquo;utiliser la version gratuite de Chat GPT.<\/p>\n<\/div><div class=\"fusion-title title fusion-title-2 fusion-title-center fusion-title-text fusion-title-size-three\" style=\"--awb-text-color:#141617;--awb-margin-top:20px;--awb-margin-bottom:20px;--awb-font-size:40px;\"><div class=\"title-sep-container title-sep-container-left\"><div class=\"title-sep sep-single sep-solid\" style=\"border-color:var(--awb-color3);\"><\/div><\/div><span class=\"awb-title-spacer\"><\/span><h3 class=\"fusion-title-heading title-heading-center awb-gradient-text fusion-responsive-typography-calculated\" style=\"font-family:&quot;Work Sans&quot;;font-style:normal;font-weight:800;margin:0;letter-spacing:-0.012em;text-transform:var(--awb-typography1-text-transform);background-color:#f79501;background-image:linear-gradient(150deg, #f79501 20%,#fe6996 100%);font-size:1em;--fontSize:40;line-height:1;\">Type d&rsquo;extrait<\/h3><span class=\"awb-title-spacer\"><\/span><div class=\"title-sep-container title-sep-container-right\"><div class=\"title-sep sep-single sep-solid\" style=\"border-color:var(--awb-color3);\"><\/div><\/div><\/div><div class=\"fusion-text fusion-text-5\"><p>En analysant les snippets, nous constatons qu&rsquo;il y en a 2 types : <strong>Extractions<\/strong> et <strong>Actions<\/strong>.<\/p>\n<\/div><div class=\"fusion-title title fusion-title-3 fusion-title-center fusion-title-text fusion-title-size-four\" style=\"--awb-text-color:#141617;--awb-margin-top:20px;--awb-margin-bottom:20px;--awb-font-size:30px;\"><div class=\"title-sep-container title-sep-container-left\"><div class=\"title-sep sep-single sep-solid\" style=\"border-color:var(--awb-color3);\"><\/div><\/div><span class=\"awb-title-spacer\"><\/span><h4 class=\"fusion-title-heading title-heading-center awb-gradient-text fusion-responsive-typography-calculated\" style=\"font-family:&quot;Work Sans&quot;;font-style:normal;font-weight:800;margin:0;letter-spacing:-0.012em;text-transform:var(--awb-typography1-text-transform);background-color:#f79501;background-image:linear-gradient(150deg, #f79501 20%,#fe6996 100%);font-size:1em;--fontSize:30;line-height:1;\">Extraction d&rsquo;extraits<\/h4><span class=\"awb-title-spacer\"><\/span><div class=\"title-sep-container title-sep-container-right\"><div class=\"title-sep sep-single sep-solid\" style=\"border-color:var(--awb-color3);\"><\/div><\/div><\/div><div class=\"fusion-text fusion-text-6\"><p>Les extraits de type Extraction renvoient une valeur ou une liste de valeurs (nombres ou cha\u00eenes) en affichant la \u00ab\u00a0Valeur\u00a0\u00bb sous forme de colonnes dans l&rsquo;onglet<strong>\u00ab\u00a0JavaScript personnalis\u00e9<\/strong>\u00ab\u00a0.<br \/>\nChaque valeur d&rsquo;une liste de valeurs sera mise en correspondance avec les colonnes de l&rsquo;onglet.<br \/>\nLors du traitement de ces extraits, la page cesse de charger toutes les ressources et commence \u00e0 les ex\u00e9cuter.<\/p>\n<p>Le SEO Spider ne terminera pas l&rsquo;analyse de la page tant que l&rsquo;extrait n&rsquo;aura pas \u00e9t\u00e9 compl\u00e9t\u00e9. Dans certains cas, les extraits trop longs peuvent expirer (timeout) et l&rsquo;exploration de la page ne sera pas termin\u00e9e.<br \/>\nCe type d&rsquo;extrait permet de t\u00e9l\u00e9charger des URL et de les \u00e9crire dans un fichier texte. Des snippets sont disponibles dans la biblioth\u00e8que qui vous permettent de t\u00e9l\u00e9charger toutes les images d&rsquo;une page web et d&rsquo;en ajouter les attributs dans un fichier CSV.<\/p>\n<\/div><div class=\"fusion-title title fusion-title-4 fusion-title-center fusion-title-text fusion-title-size-four\" style=\"--awb-text-color:#141617;--awb-margin-top:20px;--awb-margin-bottom:20px;--awb-font-size:30px;\"><div class=\"title-sep-container title-sep-container-left\"><div class=\"title-sep sep-single sep-solid\" style=\"border-color:var(--awb-color3);\"><\/div><\/div><span class=\"awb-title-spacer\"><\/span><h4 class=\"fusion-title-heading title-heading-center awb-gradient-text fusion-responsive-typography-calculated\" style=\"font-family:&quot;Work Sans&quot;;font-style:normal;font-weight:800;margin:0;letter-spacing:-0.012em;text-transform:var(--awb-typography1-text-transform);background-color:#f79501;background-image:linear-gradient(150deg, #f79501 20%,#fe6996 100%);font-size:1em;--fontSize:30;line-height:1;\">Extraits d&rsquo;action<\/h4><span class=\"awb-title-spacer\"><\/span><div class=\"title-sep-container title-sep-container-right\"><div class=\"title-sep sep-single sep-solid\" style=\"border-color:var(--awb-color3);\"><\/div><\/div><\/div><div class=\"fusion-text fusion-text-7\"><p>Les extraits de type action ne renvoient pas de donn\u00e9es, mais ex\u00e9cutent uniquement des actions. Par exemple, il existe un extrait qui simule le d\u00e9filement d&rsquo;une page en permettant l&rsquo;analyse des images \u00e0 chargement paresseux.<br \/>\nLa principale diff\u00e9rence avec les \u00ab\u00a0Extraction Snippets\u00a0\u00bb r\u00e9side dans le fait que lorsqu&rsquo;ils sont ex\u00e9cut\u00e9s, la page continue de charger des ressources.<\/p>\n<p>Cependant, vous devrez sp\u00e9cifier un d\u00e9lai d&rsquo;attente en secondes pour ce traitement, et \u00e0 l&rsquo;expiration de ce d\u00e9lai, le SEO Spider ach\u00e8vera son analyse de la page.<\/p>\n<\/div><div class=\"fusion-title title fusion-title-5 fusion-title-center fusion-title-text fusion-title-size-four\" style=\"--awb-text-color:#141617;--awb-margin-top:20px;--awb-margin-bottom:20px;--awb-font-size:30px;\"><div class=\"title-sep-container title-sep-container-left\"><div class=\"title-sep sep-single sep-solid\" style=\"border-color:var(--awb-color3);\"><\/div><\/div><span class=\"awb-title-spacer\"><\/span><h4 class=\"fusion-title-heading title-heading-center awb-gradient-text fusion-responsive-typography-calculated\" style=\"font-family:&quot;Work Sans&quot;;font-style:normal;font-weight:800;margin:0;letter-spacing:-0.012em;text-transform:var(--awb-typography1-text-transform);background-color:#f79501;background-image:linear-gradient(150deg, #f79501 20%,#fe6996 100%);font-size:1em;--fontSize:30;line-height:1;\">\u00c9chantillons de comportement<\/h4><span class=\"awb-title-spacer\"><\/span><div class=\"title-sep-container title-sep-container-right\"><div class=\"title-sep sep-single sep-solid\" style=\"border-color:var(--awb-color3);\"><\/div><\/div><\/div><div class=\"fusion-text fusion-text-8\"><ul>\n<li>Le Seo Spider permet d&rsquo;ex\u00e9cuter plusieurs snippets simultan\u00e9ment. Cependant, il est important de savoir que la vitesse d&rsquo;analyse sera affect\u00e9e par le nombre et le type d&rsquo;extraits que vous ex\u00e9cutez. Apr\u00e8s l&rsquo;avoir d\u00e9bogu\u00e9 ces jours-ci, j&rsquo;ai remarqu\u00e9 qu&rsquo;un trop grand nombre de demandes simultan\u00e9es faisait \u00ab\u00a0planter\u00a0\u00bb Screaming Frog. \u00c0 des fins de test, j&rsquo;ai commenc\u00e9 par une dizaine.<\/li>\n<li>Dans le cas de plusieurs extraits, les \u00ab\u00a0Actions\u00a0\u00bb sont ex\u00e9cut\u00e9es avant les \u00ab\u00a0Extractions\u00a0\u00bb.<\/li>\n<li>Dans le cas d&rsquo;extraits d&rsquo;action ayant des valeurs de d\u00e9lai diff\u00e9rentes, Screaming Frog utilise la valeur de d\u00e9lai maximale configur\u00e9e entre les diff\u00e9rents extraits.<\/li>\n<li>Les snippets d&rsquo;extraction interrompent le chargement de toutes les pages, de sorte qu&rsquo;aucune autre demande ne sera faite. L&rsquo;action n&rsquo;est pas soumise \u00e0 cette limitation, mais une valeur de d\u00e9lai doit \u00eatre d\u00e9finie.<\/li>\n<li>Les snippets ont acc\u00e8s \u00e0 l&rsquo;API Console Utilities de Chrome. Cela lui permet d&rsquo;utiliser des m\u00e9thodes telles que getEventListeners(), qui ne sont pas accessibles par le traitement JavaScript normal sur une page web.<\/li>\n<\/ul>\n<\/div><div class=\"fusion-title title fusion-title-6 fusion-title-center fusion-title-text fusion-title-size-four\" style=\"--awb-text-color:#141617;--awb-margin-top:20px;--awb-margin-bottom:20px;--awb-font-size:30px;\"><div class=\"title-sep-container title-sep-container-left\"><div class=\"title-sep sep-single sep-solid\" style=\"border-color:var(--awb-color3);\"><\/div><\/div><span class=\"awb-title-spacer\"><\/span><h4 class=\"fusion-title-heading title-heading-center awb-gradient-text fusion-responsive-typography-calculated\" style=\"font-family:&quot;Work Sans&quot;;font-style:normal;font-weight:800;margin:0;letter-spacing:-0.012em;text-transform:var(--awb-typography1-text-transform);background-color:#f79501;background-image:linear-gradient(150deg, #f79501 20%,#fe6996 100%);font-size:1em;--fontSize:30;line-height:1;\">API d&rsquo;extraction d&rsquo;extraits<\/h4><span class=\"awb-title-spacer\"><\/span><div class=\"title-sep-container title-sep-container-right\"><div class=\"title-sep sep-single sep-solid\" style=\"border-color:var(--awb-color3);\"><\/div><\/div><\/div><div class=\"fusion-text fusion-text-9\"><p>Les snippets d&rsquo;extraction interagissent avec le Seo Spider \u00e0 l&rsquo;aide de l&rsquo;objet <strong>seoSpider<\/strong>, qui est une instance de la classe SEOSpider d\u00e9crite ci-dessous. Dans sa forme la plus \u00e9l\u00e9mentaire, il est utilis\u00e9 comme suit :<\/p>\n<\/div><style type=\"text\/css\" scopped=\"scopped\">.fusion-syntax-highlighter-1 > .CodeMirror, .fusion-syntax-highlighter-1 > .CodeMirror .CodeMirror-gutters {background-color:var(--awb-color1);}<\/style><div class=\"fusion-syntax-highlighter-container fusion-syntax-highlighter-1 fusion-syntax-highlighter-theme-light\" style=\"opacity:0;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:14px;border-width:1px;border-style:solid;border-color:var(--awb-color3);\"><div class=\"syntax-highlighter-copy-code\"><span class=\"syntax-highlighter-copy-code-title\" data-id=\"fusion_syntax_highlighter_1\" style=\"font-size:14px;\">Copy to Clipboard<\/span><\/div><label for=\"fusion_syntax_highlighter_1\" class=\"screen-reader-text\">Syntax Highlighter<\/label><textarea class=\"fusion-syntax-highlighter-textarea\" id=\"fusion_syntax_highlighter_1\" data-readOnly=\"nocursor\" data-lineNumbers=\"\" data-lineWrapping=\"\" data-theme=\"default\" data-mode=\"text\/javascript\">\/\/ The SEO Spider will display '1' in a single column\nreturn seoSpider.data(1);\n\n\/\/ The SEO Spider will display each number in a separate column\nreturn seoSpider.data([1, 2, 3]);\n\n\/\/ The SEO Spider will display 'item1' in a single column\nreturn seoSpider.data(\"item1\");\n\n\/\/ The SEO Spider will display each string in a separate column\nreturn seoSpider.data([\"item1\", \"item2\"]);<\/textarea><\/div><div class=\"fusion-text fusion-text-10\" style=\"--awb-margin-top:10px;\"><p>Vous pouvez \u00e9galement envoyer des donn\u00e9es au SEO Spider avec une<strong>\u00ab\u00a0promesse<\/strong>\u00ab\u00a0. Le SEO Spider attend d&rsquo;\u00eatre compl\u00e9t\u00e9. Cela vous permet d&rsquo;effectuer des t\u00e2ches asynchrones telles que des requ\u00eates de r\u00e9cup\u00e9ration avant de renvoyer les donn\u00e9es au robot d&rsquo;indexation. Par exemple :<\/p>\n<\/div><style type=\"text\/css\" scopped=\"scopped\">.fusion-syntax-highlighter-2 > .CodeMirror, .fusion-syntax-highlighter-2 > .CodeMirror .CodeMirror-gutters {background-color:var(--awb-color1);}<\/style><div class=\"fusion-syntax-highlighter-container fusion-syntax-highlighter-2 fusion-syntax-highlighter-theme-light\" style=\"opacity:0;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:14px;border-width:1px;border-style:solid;border-color:var(--awb-color3);\"><div class=\"syntax-highlighter-copy-code\"><span class=\"syntax-highlighter-copy-code-title\" data-id=\"fusion_syntax_highlighter_2\" style=\"font-size:14px;\">Copy to Clipboard<\/span><\/div><label for=\"fusion_syntax_highlighter_2\" class=\"screen-reader-text\">Syntax Highlighter<\/label><textarea class=\"fusion-syntax-highlighter-textarea\" id=\"fusion_syntax_highlighter_2\" data-readOnly=\"nocursor\" data-lineNumbers=\"\" data-lineWrapping=\"\" data-theme=\"default\" data-mode=\"text\/javascript\">let promise = new Promise(resolve => {\n    setTimeout(() => resolve(\"done!\"), 1000);\n});\n\n\/\/ sends \"done!\" to the SEO Spider after 1 second\nreturn promise.then(msg => seoSpider.data(msg));<\/textarea><\/div><div class=\"fusion-text fusion-text-11\"><p>Comme dans tous les exemples mentionn\u00e9s ci-dessus, l&rsquo;instruction \u00ab\u00a0return\u00a0\u00bb doit \u00eatre appel\u00e9e pour mettre fin \u00e0 l&rsquo;ex\u00e9cution de la fonction. En effet, tout le code du fragment est implicitement envelopp\u00e9 par le SEO Spider dans une expression de fonction imm\u00e9diatement invoqu\u00e9e (IIFE). Ce sc\u00e9nario est n\u00e9cessaire pour \u00e9viter les conflits dans l'\u00a0\u00bbespace de noms JavaScript global\u00a0\u00bb lors de l&rsquo;ex\u00e9cution d&rsquo;extraits. Si vous ne le faites pas, le SEO Spider ne peut pas recevoir de donn\u00e9es.<\/p>\n<p>L&rsquo;exemple ci-dessous montre comment votre fragment de code JavaScript est implicitement inclus dans un IIFE. Il montre \u00e9galement comment l&rsquo;instance seoSpider est cr\u00e9\u00e9e pour vous juste avant que vous ne saisissiez votre code.<\/p>\n<\/div><style type=\"text\/css\" scopped=\"scopped\">.fusion-syntax-highlighter-3 > .CodeMirror, .fusion-syntax-highlighter-3 > .CodeMirror .CodeMirror-gutters {background-color:var(--awb-color1);}<\/style><div class=\"fusion-syntax-highlighter-container fusion-syntax-highlighter-3 fusion-syntax-highlighter-theme-light\" style=\"opacity:0;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:14px;border-width:1px;border-style:solid;border-color:var(--awb-color3);\"><div class=\"syntax-highlighter-copy-code\"><span class=\"syntax-highlighter-copy-code-title\" data-id=\"fusion_syntax_highlighter_3\" style=\"font-size:14px;\">Copy to Clipboard<\/span><\/div><label for=\"fusion_syntax_highlighter_3\" class=\"screen-reader-text\">Syntax Highlighter<\/label><textarea class=\"fusion-syntax-highlighter-textarea\" id=\"fusion_syntax_highlighter_3\" data-readOnly=\"nocursor\" data-lineNumbers=\"\" data-lineWrapping=\"\" data-theme=\"default\" data-mode=\"text\/javascript\">(function () {\n    \/\/ seoSpider object created for use by your snippet\n    const seoSpider = new SEOSpider();\n\n    \/\/ Your JavaScript Snippet code is inserted here i.e:\n    return seoSpider.data(\"data\");\n})();<\/textarea><\/div><div class=\"fusion-title title fusion-title-7 fusion-title-center fusion-title-text fusion-title-size-four\" style=\"--awb-text-color:#141617;--awb-margin-top:20px;--awb-margin-bottom:20px;--awb-font-size:30px;\"><div class=\"title-sep-container title-sep-container-left\"><div class=\"title-sep sep-single sep-solid\" style=\"border-color:var(--awb-color3);\"><\/div><\/div><span class=\"awb-title-spacer\"><\/span><h4 class=\"fusion-title-heading title-heading-center awb-gradient-text fusion-responsive-typography-calculated\" style=\"font-family:&quot;Work Sans&quot;;font-style:normal;font-weight:800;margin:0;letter-spacing:-0.012em;text-transform:var(--awb-typography1-text-transform);background-color:#f79501;background-image:linear-gradient(150deg, #f79501 20%,#fe6996 100%);font-size:1em;--fontSize:30;line-height:1;\">API d&rsquo;extraction d&rsquo;extraits<\/h4><span class=\"awb-title-spacer\"><\/span><div class=\"title-sep-container title-sep-container-right\"><div class=\"title-sep sep-single sep-solid\" style=\"border-color:var(--awb-color3);\"><\/div><\/div><\/div><div class=\"fusion-text fusion-text-12\"><p>Cette classe fournit des m\u00e9thodes pour envoyer des donn\u00e9es au SEO Spider. N&rsquo;oubliez pas : n&rsquo;appelez pas \u00ab\u00a0new\u00a0\u00bb sur cette classe, car une instance vous est d\u00e9j\u00e0 fournie sous le nom de seoSpider.<\/p>\n<\/div><style type=\"text\/css\" scopped=\"scopped\">.fusion-syntax-highlighter-4 > .CodeMirror, .fusion-syntax-highlighter-4 > .CodeMirror .CodeMirror-gutters {background-color:var(--awb-color1);}.fusion-syntax-highlighter-4 > .CodeMirror .CodeMirror-gutters { background-color: var(--awb-color2); }.fusion-syntax-highlighter-4 > .CodeMirror .CodeMirror-linenumber { color: var(--awb-color8); }<\/style><div class=\"fusion-syntax-highlighter-container fusion-syntax-highlighter-4 fusion-syntax-highlighter-theme-light\" style=\"opacity:0;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:14px;border-width:1px;border-style:solid;border-color:var(--awb-color3);\"><div class=\"syntax-highlighter-copy-code\"><span class=\"syntax-highlighter-copy-code-title\" data-id=\"fusion_syntax_highlighter_4\" style=\"font-size:14px;\">Copy to Clipboard<\/span><\/div><label for=\"fusion_syntax_highlighter_4\" class=\"screen-reader-text\">Syntax Highlighter<\/label><textarea class=\"fusion-syntax-highlighter-textarea\" id=\"fusion_syntax_highlighter_4\" data-readOnly=\"nocursor\" data-lineNumbers=\"1\" data-lineWrapping=\"\" data-theme=\"default\" data-mode=\"text\/javascript\">data(data)<\/textarea><\/div><div class=\"fusion-text fusion-text-13\"><p>Il renvoie les donn\u00e9es fournies au SEO Spider pour qu&rsquo;elles soient affich\u00e9es dans l&rsquo;onglet JavaScript personnalis\u00e9. Le param\u00e8tre \u00ab\u00a0date\u00a0\u00bb peut \u00eatre une cha\u00eene de caract\u00e8res ou un nombre, ou une liste de cha\u00eenes de caract\u00e8res ou de nombres. Si \u00ab\u00a0date\u00a0\u00bb repr\u00e9sente une liste, chaque \u00e9l\u00e9ment de la liste sera affich\u00e9 dans une colonne distincte de l&rsquo;onglet.<\/p>\n<\/div><style type=\"text\/css\" scopped=\"scopped\">.fusion-syntax-highlighter-5 > .CodeMirror, .fusion-syntax-highlighter-5 > .CodeMirror .CodeMirror-gutters {background-color:var(--awb-color1);}<\/style><div class=\"fusion-syntax-highlighter-container fusion-syntax-highlighter-5 fusion-syntax-highlighter-theme-light\" style=\"opacity:0;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:14px;border-width:1px;border-style:solid;border-color:var(--awb-color3);\"><div class=\"syntax-highlighter-copy-code\"><span class=\"syntax-highlighter-copy-code-title\" data-id=\"fusion_syntax_highlighter_5\" style=\"font-size:14px;\">Copy to Clipboard<\/span><\/div><label for=\"fusion_syntax_highlighter_5\" class=\"screen-reader-text\">Syntax Highlighter<\/label><textarea class=\"fusion-syntax-highlighter-textarea\" id=\"fusion_syntax_highlighter_5\" data-readOnly=\"nocursor\" data-lineNumbers=\"\" data-lineWrapping=\"\" data-theme=\"default\">PARAMETRI:\nName: Data\nType: string | number | Array.<string> | Array.<number>\n\nESEMPIO:\n\/\/ Get all H1 and H2 headings from page\nlet headings = Array.from(document.querySelectorAll(\"h1, h2\"))\n    .map(heading => heading.textContent.trim());\n\nreturn seoSpider.data(headings);<\/textarea><\/div><style type=\"text\/css\" scopped=\"scopped\">.fusion-syntax-highlighter-6 > .CodeMirror, .fusion-syntax-highlighter-6 > .CodeMirror .CodeMirror-gutters {background-color:var(--awb-color1);}.fusion-syntax-highlighter-6 > .CodeMirror .CodeMirror-gutters { background-color: var(--awb-color2); }.fusion-syntax-highlighter-6 > .CodeMirror .CodeMirror-linenumber { color: var(--awb-color8); }<\/style><div class=\"fusion-syntax-highlighter-container fusion-syntax-highlighter-6 fusion-syntax-highlighter-theme-light\" style=\"opacity:0;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:14px;border-width:1px;border-style:solid;border-color:var(--awb-color3);\"><div class=\"syntax-highlighter-copy-code\"><span class=\"syntax-highlighter-copy-code-title\" data-id=\"fusion_syntax_highlighter_6\" style=\"font-size:14px;\">Copy to Clipboard<\/span><\/div><label for=\"fusion_syntax_highlighter_6\" class=\"screen-reader-text\">Syntax Highlighter<\/label><textarea class=\"fusion-syntax-highlighter-textarea\" id=\"fusion_syntax_highlighter_6\" data-readOnly=\"nocursor\" data-lineNumbers=\"1\" data-lineWrapping=\"\" data-theme=\"default\">error(msg)<\/textarea><\/div><div class=\"fusion-text fusion-text-14\" style=\"--awb-margin-top:10px;\"><p class=\"p1\">Renvoyer tout message d&rsquo;erreur au SEO Spider. Ces messages appara\u00eetront dans une colonne de l&rsquo;onglet JS personnalis\u00e9. Le r\u00e9sultat sera une cha\u00eene de caract\u00e8res.<\/p>\n<\/div><style type=\"text\/css\" scopped=\"scopped\">.fusion-syntax-highlighter-7 > .CodeMirror, .fusion-syntax-highlighter-7 > .CodeMirror .CodeMirror-gutters {background-color:var(--awb-color1);}<\/style><div class=\"fusion-syntax-highlighter-container fusion-syntax-highlighter-7 fusion-syntax-highlighter-theme-light\" style=\"opacity:0;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:14px;border-width:1px;border-style:solid;border-color:var(--awb-color3);\"><div class=\"syntax-highlighter-copy-code\"><span class=\"syntax-highlighter-copy-code-title\" data-id=\"fusion_syntax_highlighter_7\" style=\"font-size:14px;\">Copy to Clipboard<\/span><\/div><label for=\"fusion_syntax_highlighter_7\" class=\"screen-reader-text\">Syntax Highlighter<\/label><textarea class=\"fusion-syntax-highlighter-textarea\" id=\"fusion_syntax_highlighter_7\" data-readOnly=\"nocursor\" data-lineNumbers=\"\" data-lineWrapping=\"\" data-theme=\"default\" data-mode=\"text\/javascript\">return functionThatReturnsPromise()\n    .then(success => seoSpider.data(success))\n    .catch(error => seoSpider.error(error));\n}<\/textarea><\/div><div class=\"fusion-text fusion-text-15\" style=\"--awb-margin-top:10px;\"><p>La m\u00e9thode suivante comprend <strong>saveText<\/strong>(text, saveFilePath, shouldAppend)<\/p>\n<\/div><style type=\"text\/css\" scopped=\"scopped\">.fusion-syntax-highlighter-8 > .CodeMirror, .fusion-syntax-highlighter-8 > .CodeMirror .CodeMirror-gutters {background-color:var(--awb-color1);}.fusion-syntax-highlighter-8 > .CodeMirror .CodeMirror-gutters { background-color: var(--awb-color2); }.fusion-syntax-highlighter-8 > .CodeMirror .CodeMirror-linenumber { color: var(--awb-color8); }<\/style><div class=\"fusion-syntax-highlighter-container fusion-syntax-highlighter-8 fusion-syntax-highlighter-theme-light\" style=\"opacity:0;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:14px;border-width:1px;border-style:solid;border-color:var(--awb-color3);\"><div class=\"syntax-highlighter-copy-code\"><span class=\"syntax-highlighter-copy-code-title\" data-id=\"fusion_syntax_highlighter_8\" style=\"font-size:14px;\">Copy to Clipboard<\/span><\/div><label for=\"fusion_syntax_highlighter_8\" class=\"screen-reader-text\">Syntax Highlighter<\/label><textarea class=\"fusion-syntax-highlighter-textarea\" id=\"fusion_syntax_highlighter_8\" data-readOnly=\"nocursor\" data-lineNumbers=\"1\" data-lineWrapping=\"\" data-theme=\"default\">Text\nTipologia: stringa\nSar\u00e0 salvato il testo\n\nsaveFilePath\nTipologia:stringa\n\nSalva l'intero \"Path\" del file dove il testo sar\u00e0 salvato. Sar\u00e0 creata una directory se non esioste\n\nshouldAppend\nTipologia: boolean\nImpostata su \"true\" se il file prevede \"appended to\"\n\nESEMPIO:\n\nreturn seoSpider.saveText('some text', '\/Users\/john\/file.txt', false);\n<\/textarea><\/div><div class=\"fusion-text fusion-text-16\" style=\"--awb-margin-top:10px;\"><p><strong> Prochaine m\u00e9thode <\/strong> <strong>loadScript(src <\/strong>) \u2192 <strong>. <\/strong>Type : String<br \/>\nCharge les scripts externes qui seront utilis\u00e9s par l'extrait. Le script est charg\u00e9 de mani\u00e8re asynchrone. R\u00e9digez votre code \u00e0 l'int\u00e9rieur de la clause \u00ab\u00a0then\u00a0\u00bb, comme indiqu\u00e9 dans l'exemple ci-dessous.<\/p>\n<\/div><style type=\"text\/css\" scopped=\"scopped\">.fusion-syntax-highlighter-9 > .CodeMirror, .fusion-syntax-highlighter-9 > .CodeMirror .CodeMirror-gutters {background-color:var(--awb-color1);}.fusion-syntax-highlighter-9 > .CodeMirror .CodeMirror-gutters { background-color: var(--awb-color2); }.fusion-syntax-highlighter-9 > .CodeMirror .CodeMirror-linenumber { color: var(--awb-color8); }<\/style><div class=\"fusion-syntax-highlighter-container fusion-syntax-highlighter-9 fusion-syntax-highlighter-theme-light\" style=\"opacity:0;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:14px;border-width:1px;border-style:solid;border-color:var(--awb-color3);\"><div class=\"syntax-highlighter-copy-code\"><span class=\"syntax-highlighter-copy-code-title\" data-id=\"fusion_syntax_highlighter_9\" style=\"font-size:14px;\">Copy to Clipboard<\/span><\/div><label for=\"fusion_syntax_highlighter_9\" class=\"screen-reader-text\">Syntax Highlighter<\/label><textarea class=\"fusion-syntax-highlighter-textarea\" id=\"fusion_syntax_highlighter_9\" data-readOnly=\"nocursor\" data-lineNumbers=\"1\" data-lineWrapping=\"\" data-theme=\"default\">return seoSpider.loadScript(\"Url del tuo Script\")\n    .then(() => {\n        \/\/ The script has now loaded, you can start using it from here\n \n        ...\n \n        \/\/ Return data to the SEO Spider\n        return seoSpider.data(your_data)\n    })\n    .catch(error => seoSpider.error(error));<\/textarea><\/div><div class=\"fusion-title title fusion-title-8 fusion-title-center fusion-title-text fusion-title-size-four\" style=\"--awb-text-color:#141617;--awb-margin-top:20px;--awb-margin-bottom:20px;--awb-font-size:30px;\"><div class=\"title-sep-container title-sep-container-left\"><div class=\"title-sep sep-single sep-solid\" style=\"border-color:var(--awb-color3);\"><\/div><\/div><span class=\"awb-title-spacer\"><\/span><h4 class=\"fusion-title-heading title-heading-center awb-gradient-text fusion-responsive-typography-calculated\" style=\"font-family:&quot;Work Sans&quot;;font-style:normal;font-weight:800;margin:0;letter-spacing:-0.012em;text-transform:var(--awb-typography1-text-transform);background-color:#f79501;background-image:linear-gradient(150deg, #f79501 20%,#fe6996 100%);font-size:1em;--fontSize:30;line-height:1;\">Partage d&rsquo;extraits<\/h4><span class=\"awb-title-spacer\"><\/span><div class=\"title-sep-container title-sep-container-right\"><div class=\"title-sep sep-single sep-solid\" style=\"border-color:var(--awb-color3);\"><\/div><\/div><\/div><div class=\"fusion-text fusion-text-17\"><p>Les snippets seront sauvegard\u00e9s dans votre biblioth\u00e8que utilisateur, et vous pourrez ensuite exporter\/importer la biblioth\u00e8que au format JSON pour la partager tr\u00e8s facilement.<\/p>\n<\/div><div class=\"fusion-image-element \" style=\"--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><span class=\" fusion-imageframe imageframe-none imageframe-4 hover-type-none\"><img decoding=\"async\" width=\"1557\" height=\"813\" alt=\"Come condividere lo snippet JS creato con screaming frog in formato json con i colleghi\" title=\"share snippets con screaming frog\" src=\"http:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/share-snippets-con-screaming-frog.png\" class=\"img-responsive wp-image-2630\" srcset=\"https:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/share-snippets-con-screaming-frog-200x104.png 200w, https:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/share-snippets-con-screaming-frog-400x209.png 400w, https:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/share-snippets-con-screaming-frog-600x313.png 600w, https:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/share-snippets-con-screaming-frog-800x418.png 800w, https:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/share-snippets-con-screaming-frog-1200x627.png 1200w, https:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/05\/share-snippets-con-screaming-frog.png 1557w\" sizes=\"(max-width: 640px) 100vw, 1200px\" \/><\/span><\/div><\/div><\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[81],"tags":[80,84],"class_list":["post-3809","post","type-post","status-publish","format-standard","hentry","category-mises-a-jour-de-screaming-frog","tag-debutant","tag-versions-fr"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Javascript personnalis\u00e9 | Screaming Frog<\/title>\n<meta name=\"description\" content=\"Voyons comment utiliser au mieux la nouvelle fonction Custom Javascript introduite dans la version 20 de Screaming Frog.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/screamingfrog.club\/fr\/javascript-personnalise\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Javascript personnalis\u00e9 | Screaming Frog\" \/>\n<meta property=\"og:description\" content=\"Voyons comment utiliser au mieux la nouvelle fonction Custom Javascript introduite dans la version 20 de Screaming Frog.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/screamingfrog.club\/fr\/javascript-personnalise\/\" \/>\n<meta property=\"og:site_name\" content=\"Screaming Frog Club\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-08T08:03:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-05T07:58:49+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/03\/SF_Back_dark.png\" \/>\n<meta name=\"author\" content=\"raffaele.visintin@gmail.com\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"raffaele.visintin@gmail.com\" \/>\n\t<meta name=\"twitter:label2\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/screamingfrog.club\/fr\/javascript-personnalise\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/screamingfrog.club\/fr\/javascript-personnalise\/\"},\"author\":{\"name\":\"raffaele.visintin@gmail.com\",\"@id\":\"https:\/\/screamingfrog.club\/fr\/#\/schema\/person\/cd9ee509ae86128e5e339f9e3de1bc73\"},\"headline\":\"Javascript personnalis\u00e9\",\"datePublished\":\"2024-05-08T08:03:13+00:00\",\"dateModified\":\"2024-07-05T07:58:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/screamingfrog.club\/fr\/javascript-personnalise\/\"},\"wordCount\":4681,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/screamingfrog.club\/fr\/#organization\"},\"keywords\":[\"D\u00e9butant\",\"Versions\"],\"articleSection\":[\"Versions de Seo Spider\"],\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/screamingfrog.club\/fr\/javascript-personnalise\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/screamingfrog.club\/fr\/javascript-personnalise\/\",\"url\":\"https:\/\/screamingfrog.club\/fr\/javascript-personnalise\/\",\"name\":\"Javascript personnalis\u00e9 | Screaming Frog\",\"isPartOf\":{\"@id\":\"https:\/\/screamingfrog.club\/fr\/#website\"},\"datePublished\":\"2024-05-08T08:03:13+00:00\",\"dateModified\":\"2024-07-05T07:58:49+00:00\",\"description\":\"Voyons comment utiliser au mieux la nouvelle fonction Custom Javascript introduite dans la version 20 de Screaming Frog.\",\"breadcrumb\":{\"@id\":\"https:\/\/screamingfrog.club\/fr\/javascript-personnalise\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/screamingfrog.club\/fr\/javascript-personnalise\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/screamingfrog.club\/fr\/javascript-personnalise\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/screamingfrog.club\/fr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Javascript personnalis\u00e9\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/screamingfrog.club\/fr\/#website\",\"url\":\"https:\/\/screamingfrog.club\/fr\/\",\"name\":\"Screaming Frog Club\",\"description\":\"Guide e Tutorial sul Seo SPider\",\"publisher\":{\"@id\":\"https:\/\/screamingfrog.club\/fr\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/screamingfrog.club\/fr\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/screamingfrog.club\/fr\/#organization\",\"name\":\"Screaming Frog Club\",\"url\":\"https:\/\/screamingfrog.club\/fr\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/screamingfrog.club\/fr\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/02\/SF_Club_Logo-2.png\",\"contentUrl\":\"http:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/02\/SF_Club_Logo-2.png\",\"width\":117,\"height\":67,\"caption\":\"Screaming Frog Club\"},\"image\":{\"@id\":\"https:\/\/screamingfrog.club\/fr\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/screamingfrog.club\/fr\/#\/schema\/person\/cd9ee509ae86128e5e339f9e3de1bc73\",\"name\":\"raffaele.visintin@gmail.com\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/screamingfrog.club\/wp-content\/litespeed\/avatar\/5b2dd661ff57d360794386547fd7a2dd.jpg?ver=1775343410\",\"url\":\"https:\/\/screamingfrog.club\/wp-content\/litespeed\/avatar\/5b2dd661ff57d360794386547fd7a2dd.jpg?ver=1775343410\",\"contentUrl\":\"https:\/\/screamingfrog.club\/wp-content\/litespeed\/avatar\/5b2dd661ff57d360794386547fd7a2dd.jpg?ver=1775343410\",\"caption\":\"raffaele.visintin@gmail.com\"},\"sameAs\":[\"http:\/\/screamingfrog.club\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Javascript personnalis\u00e9 | Screaming Frog","description":"Voyons comment utiliser au mieux la nouvelle fonction Custom Javascript introduite dans la version 20 de Screaming Frog.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/screamingfrog.club\/fr\/javascript-personnalise\/","og_locale":"fr_FR","og_type":"article","og_title":"Javascript personnalis\u00e9 | Screaming Frog","og_description":"Voyons comment utiliser au mieux la nouvelle fonction Custom Javascript introduite dans la version 20 de Screaming Frog.","og_url":"https:\/\/screamingfrog.club\/fr\/javascript-personnalise\/","og_site_name":"Screaming Frog Club","article_published_time":"2024-05-08T08:03:13+00:00","article_modified_time":"2024-07-05T07:58:49+00:00","og_image":[{"url":"http:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/03\/SF_Back_dark.png","type":"","width":"","height":""}],"author":"raffaele.visintin@gmail.com","twitter_card":"summary_large_image","twitter_misc":{"\u00c9crit par":"raffaele.visintin@gmail.com","Dur\u00e9e de lecture estim\u00e9e":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/screamingfrog.club\/fr\/javascript-personnalise\/#article","isPartOf":{"@id":"https:\/\/screamingfrog.club\/fr\/javascript-personnalise\/"},"author":{"name":"raffaele.visintin@gmail.com","@id":"https:\/\/screamingfrog.club\/fr\/#\/schema\/person\/cd9ee509ae86128e5e339f9e3de1bc73"},"headline":"Javascript personnalis\u00e9","datePublished":"2024-05-08T08:03:13+00:00","dateModified":"2024-07-05T07:58:49+00:00","mainEntityOfPage":{"@id":"https:\/\/screamingfrog.club\/fr\/javascript-personnalise\/"},"wordCount":4681,"commentCount":0,"publisher":{"@id":"https:\/\/screamingfrog.club\/fr\/#organization"},"keywords":["D\u00e9butant","Versions"],"articleSection":["Versions de Seo Spider"],"inLanguage":"fr-FR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/screamingfrog.club\/fr\/javascript-personnalise\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/screamingfrog.club\/fr\/javascript-personnalise\/","url":"https:\/\/screamingfrog.club\/fr\/javascript-personnalise\/","name":"Javascript personnalis\u00e9 | Screaming Frog","isPartOf":{"@id":"https:\/\/screamingfrog.club\/fr\/#website"},"datePublished":"2024-05-08T08:03:13+00:00","dateModified":"2024-07-05T07:58:49+00:00","description":"Voyons comment utiliser au mieux la nouvelle fonction Custom Javascript introduite dans la version 20 de Screaming Frog.","breadcrumb":{"@id":"https:\/\/screamingfrog.club\/fr\/javascript-personnalise\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/screamingfrog.club\/fr\/javascript-personnalise\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/screamingfrog.club\/fr\/javascript-personnalise\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/screamingfrog.club\/fr\/"},{"@type":"ListItem","position":2,"name":"Javascript personnalis\u00e9"}]},{"@type":"WebSite","@id":"https:\/\/screamingfrog.club\/fr\/#website","url":"https:\/\/screamingfrog.club\/fr\/","name":"Screaming Frog Club","description":"Guide e Tutorial sul Seo SPider","publisher":{"@id":"https:\/\/screamingfrog.club\/fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/screamingfrog.club\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/screamingfrog.club\/fr\/#organization","name":"Screaming Frog Club","url":"https:\/\/screamingfrog.club\/fr\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/screamingfrog.club\/fr\/#\/schema\/logo\/image\/","url":"http:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/02\/SF_Club_Logo-2.png","contentUrl":"http:\/\/screamingfrog.club\/wp-content\/uploads\/2024\/02\/SF_Club_Logo-2.png","width":117,"height":67,"caption":"Screaming Frog Club"},"image":{"@id":"https:\/\/screamingfrog.club\/fr\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/screamingfrog.club\/fr\/#\/schema\/person\/cd9ee509ae86128e5e339f9e3de1bc73","name":"raffaele.visintin@gmail.com","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/screamingfrog.club\/wp-content\/litespeed\/avatar\/5b2dd661ff57d360794386547fd7a2dd.jpg?ver=1775343410","url":"https:\/\/screamingfrog.club\/wp-content\/litespeed\/avatar\/5b2dd661ff57d360794386547fd7a2dd.jpg?ver=1775343410","contentUrl":"https:\/\/screamingfrog.club\/wp-content\/litespeed\/avatar\/5b2dd661ff57d360794386547fd7a2dd.jpg?ver=1775343410","caption":"raffaele.visintin@gmail.com"},"sameAs":["http:\/\/screamingfrog.club"]}]}},"_links":{"self":[{"href":"https:\/\/screamingfrog.club\/fr\/wp-json\/wp\/v2\/posts\/3809","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/screamingfrog.club\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/screamingfrog.club\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/screamingfrog.club\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/screamingfrog.club\/fr\/wp-json\/wp\/v2\/comments?post=3809"}],"version-history":[{"count":0,"href":"https:\/\/screamingfrog.club\/fr\/wp-json\/wp\/v2\/posts\/3809\/revisions"}],"wp:attachment":[{"href":"https:\/\/screamingfrog.club\/fr\/wp-json\/wp\/v2\/media?parent=3809"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/screamingfrog.club\/fr\/wp-json\/wp\/v2\/categories?post=3809"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/screamingfrog.club\/fr\/wp-json\/wp\/v2\/tags?post=3809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}