티스토리 수익 글 보기

티스토리 수익 글 보기

!function(){var e,t,n,i=document.currentScript,o={};function a(e,t,n){window.fetch&&fetch(e,{method:”POST”,headers:{“Content-Type”:”text/plain”},keepalive:!0,body:JSON.stringify(t)}).then(function(e){n&&n.callback&&n.callback({status:e.status})}).catch(function(e){n&&n.callback&&n.callback({error:e})})}var r=!1,c=location.href,l={},u=-1,d=0,s=0;function p(){var i=m();if(!e&&(u=3e3)){u=n;var r={n:”engagement”,sd:Math.round(n/t*100),d:o.domain,u:c,p:l,e:i,v:33};d=0,s=0,a(o.endpoint,r)}}function f(){“visible”===document.visibilityState&&document.hasFocus()&&0===d?d=Date.now():”hidden”!==document.visibilityState&&document.hasFocus()||(s=m(),d=0,p())}function m(){return d?s+(Date.now()-d):s}function v(){var e=document.body||{},t=document.documentElement||{};return Math.max(e.scrollHeight||0,e.offsetHeight||0,e.clientHeight||0,t.scrollHeight||0,t.offsetHeight||0,t.clientHeight||0)}function w(){var e=document.body||{},n=document.documentElement||{},i=window.innerHeight||n.clientHeight||0,o=window.scrollY||n.scrollTop||e.scrollTop||0;return t<=i?t:o+i}function g(i,m){var g="pageview"===i;if(g&&r&&(p(),t=v(),n=w()),/^localhost$|^127(\.[0-9]+){0,2}\.[0-9]+$|^\[::1?\]$/.test(location.hostname)||"file:"===location.protocol)return h(i,m,"localhost");if((window._phantom||window.__nightmare||window.navigator.webdriver||window.Cypress)&&!window.__plausible)return h(i,m);try{if("true"===window.localStorage.plausible_ignore)return h(i,m,"localStorage flag")}catch(e){}var b={};b.n=i,b.v=33,b.u=m&&(m.u||m.url)||location.href,b.d=o.domain,b.r=document.referrer||null,m&&m.meta&&(b.m=JSON.stringify(m.meta)),m&&m.props&&(b.p=m.props),m&&!1===m.interactive&&(b.i=!1),g&&(e=!1,c=b.u,l=b.p,u=-1,s=0,d=Date.now(),r||(document.addEventListener("visibilitychange",f),window.addEventListener("blur",f),window.addEventListener("focus",f),r=!0)),a(o.endpoint,b,m)}function h(t,n,i){i&&o.logging&&console.warn("Ignoring Event: "+i),n&&n.callback&&n.callback(),"pageview"===t&&(e=!0)}function b(e){return e&&e.tagName&&"a"===e.tagName.toLowerCase()}function L(e){if("auxclick"!==e.type||1===e.button){var t=function(e){for(;e&&(void 0===e.tagName||!b(e)||!e.href);)e=e.parentNode;return e}(e.target);t&&"string"==typeof t.href&&t.href.split("?")[0],function e(t,n){return!!t&&!(n>3)&&(!!y(t)||e(t.parentNode,n+1))}(t,0)}}function y(e){var t=e&&e.classList;if(t){for(var n=0;nn&&(n=e)}),function(){function e(e){if(“auxclick”!==e.type||1===e.button){for(var t,n,i=e.target,o=0;o<=3&&i;o++){if((a=i)&&a.tagName&&"form"===a.tagName.toLowerCase())return;b(i)&&(t=i),y(i)&&(n=i),i=i.parentNode}if(n){var a,r,c=k(n);if(t)c.props.url=t.href,r={props:c.props},g(c.name,r);else{var l={};l.props=c.props,g(c.name,l)}}}}document.addEventListener("click",L),document.addEventListener("auxclick",L),document.addEventListener("submit",function(e){var t,n=k(e.target);n.name&&(t={props:n.props},g(n.name,t))}),document.addEventListener("click",e),document.addEventListener("auxclick",e)}();for(var r=window.plausible&&window.plausible.q||[],c=0;c