File tree 1 file changed +59
-0
lines changed 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change
1
+ < html >
2
+ < head >
3
+ < meta http-equiv ="cache-control " content ="max-age=0 " />
4
+ < meta http-equiv ="cache-control " content ="no-cache " />
5
+ < meta http-equiv ="expires " content ="0 " />
6
+ < meta http-equiv ="expires " content ="timestamp " />
7
+ < meta http-equiv ="pragma " content ="no-cache " />
8
+ </ head >
9
+ < body >
10
+ content
11
+ < script >
12
+ /*
13
+ index.r.decoded.htm?r=5&d=3
14
+ */
15
+ function cookie_set ( cookieName , cookieValue , expiryDate ) {
16
+ var d = new Date ( ) ;
17
+ d . setTime ( d . getTime ( ) + ( expiryDate * 24 * 60 * 60 * 1000 ) ) ;
18
+ var expires = "expires=" + d . toUTCString ( ) ;
19
+ document . cookie = cookieName + "=" + cookieValue + "; " + expires + "; path=/" ;
20
+
21
+ return true ;
22
+ }
23
+ function cookie_get ( name ) {
24
+ var value = "; " + document . cookie ;
25
+ var parts = value . split ( "; " + name + "=" ) ;
26
+ if ( parts . length == 2 ) return parts . pop ( ) . split ( ";" ) . shift ( ) ;
27
+
28
+ return true ;
29
+ }
30
+
31
+ const params = new URLSearchParams ( window . location . search ) ;
32
+
33
+ if ( params . get ( 'd' ) ) {
34
+ cookie_set ( 'd' , params . get ( 'd' ) ) ;
35
+ }
36
+ if ( params . get ( 'r' ) ) {
37
+ cookie_set ( 'r' , params . get ( 'r' ) - 1 ) ;
38
+ }
39
+
40
+ ( function ( ) {
41
+
42
+ var d = cookie_get ( 'd' ) ;
43
+
44
+ setTimeout ( function ( ) {
45
+
46
+ var r = cookie_get ( 'r' ) ;
47
+
48
+ if ( r > 0 ) {
49
+ cookie_set ( 'r' , r - 1 ) ;
50
+
51
+ var url = location . protocol + '//' + location . host + location . pathname ;
52
+
53
+ document . location = url ;
54
+ }
55
+ } , d * 1000 )
56
+ } ) ( ) ;
57
+ </ script >
58
+ </ body >
59
+ </ html >
You can’t perform that action at this time.
0 commit comments