PageSourceSearch

https://www.sudouest.fr/so/js/modules/session-start.min.js?v20260923111538

js sudouest.fr collected 2026-09-24 08:36:04 UTC 2,587 bytes, 1 lines download raw bytes

1!function(){"use strict";window.docCookies={getItem:function(e){return e&&decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null},setItem:function(e,n,o,t,s,i){if(!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e))return!1;var r="";if(o)switch(o.constructor){case Number:r=o===1/0?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+o;break;case String:r="; expires="+o;break;case Date:r="; expires="+o.toUTCString()}return document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(n)+r+(s?"; domain="+s:"")+(t?"; path="+t:"")+(i?"; secure":""),!0},removeItem:function(e,n,o){return!!this.hasItem(e)&&(document.cookie=encodeURIComponent(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(o?"; domain="+o:"")+(n?"; path="+n:""),!0)},hasItem:function(e){return!!e&&new RegExp("(?:^|;\\s*)"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},keys:function(){for(var e=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),n=e.length,o=0;o<n;o++)e[o]=decodeURIComponent(e[o]);return e}};var e=function(e,n){return[].forEach.call(e,n)};_gsoi.cmd.push(function(){_gsoi.require("session").then(function(n){n.onDidReceiveSession(function(){n.hasError()&&_gsoi.cmd.push(function(){_gsoi.require("article").then(function(e){e.release()})}),n.isLogged()?(r(),document.body.classList.remove("unlogged"),document.body.classList.add("logged"),n.isPremium()?_gsoi.cmd.push(function(){_gsoi.require("article").then(function(e){e.release()})}):document.body.classList.remove("premium")):(document.body.classList.remove("logged"),document.body.classList.remove("premium"),document.body.classList.add("unlogged")),simpleStorage.set("status",JSON.stringify(n.sessionData))}),n.onDidLog(function(){r()}),document.addEventListener("placeholder:loaded",function(){r()}),n.handleSessionData(window.gsoiSession||{error:1});for(var o=function(e){n.handleSessionData(e.detail||{error:1})},t=["local","loaded","failed"],s=0;s<t.length;s++){var i=t[s];window.addEventListener("gsoi.session_manager.user_data_"+i,o,{once:!0})}function r(){n.onDidReceiveSession(function(){n.isLogged()&&(e(document.querySelectorAll('[data-userdata="email"]'),function(e){e.innerHTML=n.getUserEmail()}),e(document.querySelectorAll('[data-userdata="nickname"]'),function(e){e.innerHTML=n.getUserName()}),e(document.querySelectorAll('[data-userdata="avatar"]'),function(e){e.innerHTML=n.getUserAvatarURL()}))})}})})}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.