document.muaSafetySettings_custom2 = { exclude: ['youtu.be', 'url.rhinoshield.tw', 'xiujiang.com.tw', 'www.youtube.com', 'penoval.com.tw', 'lihi3.com' ] }; /*document.muaSafetySettings = { exclude: ['youtu.be', 'www.youtube.com', 'youtu.be', 'bit.ly', 'line.me', 'q-r.tw', 'lihi1.com'], };*/ if (document.muaSafetySettings_custom2) { document.muaSafetySettings.exclude = document.muaSafetySettings.exclude.concat(document.muaSafetySettings_custom2.exclude); } ! function(t) { function e(o) { if (n[o]) return n[o].exports; var r = n[o] = { i: o, l: !1, exports: {} }; return t[o].call(r.exports, r, r.exports, e), r.l = !0, r.exports } var n = {}; return e.m = t, e.c = n, e.i = function(t) { return t }, e.d = function(t, e, n) { Object.defineProperty(t, e, { configurable: !1, enumerable: !0, get: n }) }, e.n = function(t) { var n = t && t.__esModule ? function() { return t.default } : function() { return t }; return e.d(n, "a", n), n }, e.o = function(t, e) { return Object.prototype.hasOwnProperty.call(t, e) }, e.p = "", e(e.s = 5) }({ 5: function(t, e) { "use strict"; var n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { return typeof t } : function(t) { return t && "function" == typeof Symbol && t.constructor === Symbol ? "symbol" : typeof t }; ! function() { if ("object" === n(document.muaSafetySettings)) { var t = document.querySelectorAll('a[href]:not([data-mua-safety="false"])'), e = void 0, o = function() { var o = t[e]; //o.setAttribute('test','1');o.innerHTML+='
222
'; if (!o.href || "#" == o.href || !o.hostname) return "continue"; var r = document.muaSafetySettings, u = !1; function checkurl(t,o){ t.preventDefault(); //, console.log("this link=") //,console.log(o) //,console.log(o.hostname) //,console.log(location.href) //,window.open("https://sn.kocpc.com.tw/index.html?url=" + encodeURIComponent(o.href)) var gtag_track_script = document.createElement('script'); gtag_track_script.src = 'https://www.googletagmanager.com/gtag/js?id=UA-122340981-36';document.body.appendChild(gtag_track_script); window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-135689988-5', { 'cookie_flags': 'samesite=none;secure' }); gtag('event', o.hostname, { 'event_category': 'extclick', 'event_label': location.href }); window.open("https://sn.kocpc.com.tw/index.html?url=" + encodeURIComponent(o.href)); //window.open(o.href); } function clickurl(t,o){ markextlinkred(o); gaurl(o); } function gaurl(o){ //, console.log("this link=") //,console.log(o) //,console.log(o.hostname) //,console.log(location.href) //,window.open("https://sn.kocpc.com.tw/index.html?url=" + encodeURIComponent(o.href)) var gtag_track_script = document.createElement('script'); gtag_track_script.src = 'https://www.googletagmanager.com/gtag/js?id=UA-122340981-36';document.body.appendChild(gtag_track_script); window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-135689988-5', { 'cookie_flags': 'samesite=none;secure' }); gtag('event', o.hostname, { 'event_category': 'allclick', 'event_label': location.href }); (function(o){ setTimeout(function(){window.open(o.href)},300); })(o); } //console.log(o.hostname); function setCookie(c_name, value, exdays) { var exdate = new Date(); exdate.setDate(exdate.getDate() + exdays); var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString()); document.cookie = c_name + "=" + c_value; } function getCookie(c_name) { var i, x, y, ARRcookies = document.cookie.split(";"); for (i = 0; i < ARRcookies.length; i++) { x = ARRcookies[i].substr(0, ARRcookies[i].indexOf("=")); y = ARRcookies[i].substr(ARRcookies[i].indexOf("=") + 1); x = x.replace(/^\s+|\s+$/g, ""); if (x == c_name) { return unescape(y); } } } if(location.href.indexOf('extlinkcheck')>0){ setCookie("markextlink", '1', 3); } if(location.href.indexOf('extlinkuncheck')>0){ setCookie("markextlink", '0', 3); } if ("object" === n(r.exclude) && r.exclude.length > 0 && u === !1) { var c = void 0; for (c = 0; c < r.exclude.length; c++) { var f = r.exclude[c]; f == o.hostname && (u = !0) } } function markextlink(o){ if(getCookie("markextlink")=="1"){o.style.textShadow = "2px 2px 0px rgba(0, 255, 0, 0.3)"} } function markextlinkred(o){ if(getCookie("markextlink")=="1"){o.style.textShadow = "2px 2px 0px rgba(255, 0, 0, 0.3)"} } return window.location.hostname == o.hostname ? "continue" : void( window.location.hostname == o.hostname && (u = !0), u ? void(o.onclick = function(t) {clickurl(t,o)}) : void( markextlink(o), o.onclick = function(t) { checkurl(t,o); }) ) }; for (e = 0; e < t.length; e++) o() } else console.log("Mua Safety not Setup. by gtm") }() } });