idk432324214313
This commit is contained in:
1 parent
5b23bfbd00
commit
9926dd631f
27 files changed
+2773
No files matched your search
+24
@@ -0,0 +1,24 @@
|
||||
function loadGoogleAnalytics(id) {
|
||||
// Google tag (gtag.js)
|
||||
var firstScript= document.getElementsByTagName("script")[0];
|
||||
newScript= document.createElement("script");
|
||||
newScript.async= "";
|
||||
newScript.src= "https://www.googletagmanager.com/gtag/js?id="+ id;
|
||||
firstScript.parentNode.insertBefore(newScript, firstScript);
|
||||
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
gtag('config', id);
|
||||
}
|
||||
|
||||
window.addEventListener("load", function() {
|
||||
if (navigator.webdriver) {
|
||||
console.log('Bot Browser');
|
||||
loadGoogleAnalytics("G-LE1ZGTPC77");
|
||||
|
||||
} else {
|
||||
console.log('Human Browser');
|
||||
loadGoogleAnalytics("G-E7D3EVY6HR");
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
// NullJS
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
function loadJS(FILE_URL, async = true) {
|
||||
let scriptEle = document.createElement("script");
|
||||
|
||||
scriptEle.setAttribute("src", FILE_URL);
|
||||
scriptEle.setAttribute("type", "text/javascript");
|
||||
scriptEle.setAttribute("async", async);
|
||||
|
||||
document.body.appendChild(scriptEle);
|
||||
|
||||
// Success
|
||||
scriptEle.addEventListener("load", () => {
|
||||
console.log("ubg235 served!");
|
||||
});
|
||||
|
||||
// Error
|
||||
scriptEle.addEventListener("error", () => {
|
||||
console.log("ubg235 error!");
|
||||
});
|
||||
}
|
||||
|
||||
window.addEventListener("load", function () {
|
||||
loadJS("https://www.ubg235.com/js/ubg235_server_v1_0.js", true);
|
||||
});
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
function ubg235Redirect(host, url) {
|
||||
function inFrame () {
|
||||
try {
|
||||
return window.self !== window.top;
|
||||
} catch (e) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
function botBrowser() {
|
||||
try {
|
||||
return navigator.webdriver
|
||||
} catch (e) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (botBrowser()) {
|
||||
console.log('Bot Browser');
|
||||
} else {
|
||||
console.log('Human Browser');
|
||||
if (inFrame()) {
|
||||
console.log('In Frame!');
|
||||
} else {
|
||||
if (window.location.hostname!= host) {
|
||||
window.location= url;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
{/* <script src="js/ubg235_redirect.js"></script>
|
||||
<script>
|
||||
ubg235Redirect("ubg44.github.io", "https://ubg44.github.io/burrito-bison-launcha-libre-unblocked.html");
|
||||
</script> */}
|
||||
Reference in new issue
Block a user