forked from bombastictranz/Slack-api-platform
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxdframe-single-domain-1.2.0.html
3 lines (3 loc) · 2.27 KB
/
xdframe-single-domain-1.2.0.html
1
2
3
<!DOCTYPE html>
<!-- saved from url=(0076)https://csxd.contentsquare.net/uxa/xdframe-single-domain-1.2.0.html?pid=5540 -->
<html><script type="text/javascript">window["_gaUserPrefs"] = { ioo : function() { return true; } }</script><div id="in-page-channel-node-id" data-channel-name="in_page_channel_GaoLwp"></div><script async="false" src="chrome-extension://cpmkedoipcpimgecpmgpldfpohjplkpp/window-provider.js"></script><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="robots" content="noindex"><script>!function(){var i=["_cs_id","_cs_s","_cs_cvars","_cs_ex"];function c(e,n){return n+"___"+e}function s(e){window.parent.postMessage({error:e},"*")}function d(e){e=new RegExp("(^|;)[ ]*"+e+"=([^;]*)").exec(document.cookie);return e?decodeURIComponent(e[2]):null}function u(e,n,o,t,a,r,i){n=encodeURIComponent(n),o=o?";expires="+new Date(o).toUTCString():"",t=t||document.domain;document.cookie=e+"="+n+o+(";path="+(a||"/"))+(";domain="+t)+(r&&"X"!==r?";SameSite="+r:"")+(i?";Secure":"")}window.parent.postMessage(function(){var e=function(){var o={};location.search&&1<location.search.length&&location.search.substr(1).split("&").forEach(function(e){var e=e.split("="),n=e[0]&&decodeURIComponent(e[0]),e=e[1]&&decodeURIComponent(e[1]);o[n]=e});return o}();if(!e.pid)return s("bad query param:"+location.search),{};e=parseInt(e.pid,10);if(isNaN(e))return s("bad query param:"+location.search),{};return function(n){return i.map(function(e){return c(n,e)}).reduce(function(e,n){var o=d(n);return o&&(e[n.split("___")[0]]=o),e},{})}(e)}(),"*"),window.addEventListener("message",function(e){if(e.data){var n=e.data;if(function(e){return e&&!!(e.command&&e.pid&&e.cookies)&&!(!function(e){return e===parseInt(e,10)}(e.pid)||!Array.isArray(e.cookies))}(n))switch(n.command){case"set":!function(n,e,o){e.forEach(function(e){0<=i.indexOf(e.name)?u(c(n,e.name),e.value,e.expires,o,e.path,e.samesite,e.secure):s("bad cookie to set:"+e.name)})}(n.pid,n.cookies,n.domain);break;case"remove":!function(a,e,r){e.forEach(function(e){var n,o,t;0<=i.indexOf(e)?(o=c(a,e),t=r,d(o)&&(n=Date.now()-1,u(o,"",n,t),d(o))&&u(o,"",n,t,"/","None",!0)):s("bad cookie to remove:"+e)})}(n.pid,n.cookies,n.domain);break;default:return void s("bad command:"+n.command)}}},!1)}()</script></head><body></body></html>