Rename autoupdate (2).html to autoupdate.html
This commit is contained in:
31
autoupdate.html
Normal file
31
autoupdate.html
Normal file
@@ -0,0 +1,31 @@
|
||||
<script>
|
||||
launch();
|
||||
|
||||
function launch() {
|
||||
try {
|
||||
fetch("https://cdn.jsdelivr.net/gh/freebuisness/gn-math-DONTDMCA@main/singlefile.html?t="+Date.now())
|
||||
.then(response => response.text())
|
||||
.then(html => {
|
||||
document.documentElement.innerHTML = html;
|
||||
|
||||
document.documentElement.querySelectorAll('script').forEach(oldScript => {
|
||||
const newScript = document.createElement('script');
|
||||
if (oldScript.src) {
|
||||
newScript.src = oldScript.src;
|
||||
} else {
|
||||
newScript.textContent = oldScript.textContent;
|
||||
}
|
||||
document.body.appendChild(newScript);
|
||||
});
|
||||
});
|
||||
} catch (error) {
|
||||
console.error('error:', error);
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5521219086088837"
|
||||
crossorigin="anonymous"></script>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user