(function () { let commentURL = "https://comment.ifragasatt.se/count?customerId=14&articleId=1.94022609&adFrequency=5&alias=false&articleUrl=http://www.gp.se/livsstil/världens-gång/artificiell-intelligens-kan-inte-skriva-ett-kåseri-om-göteborg-1.94022609&articleTitle=Artificiell+intelligens+kan+inte+skriva+ett+k%C3%A5seri+om+G%C3%B6teborg&commentsToShow=3&cssUrl=https://www.gp.se/polopoly_fs/3.200.1676539596!/css/ifragasatt.css&articleDescription=%3Celement+xmlns%3D%22http%3A%2F%2Fwww.infomaker.se%2Fidf%2F1.0%22%0A+++++++++id%3D%22preamble-a5efff9f3af396a0b0f095f2284b9023%22%0A+++++++++type%3D%22preamble%22%3E%E2%80%9DG%C3%B6teborgshumorn+%C3%A4r+en+unik+och+torr+form+av+humor+som+bygger+p%C3%A5+sj%C3%A4lvdistans%2C+ironi%2C+den+g%C3%B6teborgska+dialekten%2C+absurditet+och+lokala+referenser.%E2%80%9D%3C%2Felement%3E&display=count&articleImage=/image/policy:1.94022606:1678344579/image.jpg?f=Wide&w=1200&$p$f$w=834285a&articlePublishedTime=2023-03-09 07:49:21&articleTags=K%C3%A5seri%2C+V%C3%A4der&articleTitle=Artificiell+intelligens+kan+inte+skriva+ett+k%C3%A5seri+om+G%C3%B6teborg&stickylogin=true&languageName=svenska&languageShortName=sv"; let allowSticky = commentURL.includes("stickylogin=true"); if (allowSticky) { let cookie = document.cookie .split('; ') .find(row => row.startsWith('ifragasatt_cookie=')); if (cookie) { let cookieValue = cookie.split('=')[1]; commentURL += "&cookie=" + cookieValue; } } function getDomain(url) { url = url.replace(/(https?:\/\/)?(www.)?/i, ''); if (url.indexOf('/') !== -1) { url = url.split('/')[0]; } return "." + url; } let ifrURL = ""; document.getElementById("ifragasatt-1.94022609").innerHTML = ifrURL; window.addEventListener('message', receiveMessage, false); function receiveMessage(evt) { const commentDiv = document.getElementById("ifragasatt-1.94022609"); let domain = window.location.hostname.replace(/(https?:\/\/)?(www.)?/i, ''); if (domain.indexOf('/') !== -1) { domain = domain.split('/')[0]; } if (evt.data.id === "ifragasatt-1.94022609" && commentDiv && commentDiv.firstChild) { document.getElementById("ifragasatt-1.94022609").firstChild.style.height = evt.data.height; } if (allowSticky && (evt.data.id === "ifr-set-cookie")) { const token = evt.data.token; if (token && token.length > 0) { const maxAge = 30 * 24 * 60 * 60; const cookie = "ifragasatt_cookie=" + token + "; max-age=" + maxAge + ";domain=." + domain + ";"; document.cookie = cookie; } } if (evt.data.id === "ifr-remove-cookie") { const cookie = "ifragasatt_cookie=;expires=Thu, 01 Jan 1970 00:00:01 GMT;max-age=-1;domain=." + domain + ";"; document.cookie = cookie; commentURL = "https://comment.ifragasatt.se/count?customerId=14&articleId=1.94022609&adFrequency=5&alias=false&articleUrl=http://www.gp.se/livsstil/världens-gång/artificiell-intelligens-kan-inte-skriva-ett-kåseri-om-göteborg-1.94022609&articleTitle=Artificiell+intelligens+kan+inte+skriva+ett+k%C3%A5seri+om+G%C3%B6teborg&commentsToShow=3&cssUrl=https://www.gp.se/polopoly_fs/3.200.1676539596!/css/ifragasatt.css&articleDescription=%3Celement+xmlns%3D%22http%3A%2F%2Fwww.infomaker.se%2Fidf%2F1.0%22%0A+++++++++id%3D%22preamble-a5efff9f3af396a0b0f095f2284b9023%22%0A+++++++++type%3D%22preamble%22%3E%E2%80%9DG%C3%B6teborgshumorn+%C3%A4r+en+unik+och+torr+form+av+humor+som+bygger+p%C3%A5+sj%C3%A4lvdistans%2C+ironi%2C+den+g%C3%B6teborgska+dialekten%2C+absurditet+och+lokala+referenser.%E2%80%9D%3C%2Felement%3E&display=count&articleImage=/image/policy:1.94022606:1678344579/image.jpg?f=Wide&w=1200&$p$f$w=834285a&articlePublishedTime=2023-03-09 07:49:21&articleTags=K%C3%A5seri%2C+V%C3%A4der&articleTitle=Artificiell+intelligens+kan+inte+skriva+ett+k%C3%A5seri+om+G%C3%B6teborg&stickylogin=true&languageName=svenska&languageShortName=sv"; ifrURL = ""; document.getElementById("ifragasatt-1.94022609").innerHTML = ifrURL; } } })();