-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
84 lines (80 loc) · 2.87 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!doctype html>
<html lang="zh-tw">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ㄔㄐㄐ</title>
<link
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
rel="stylesheet"
/>
</head>
<body>
<div class="container mt-5">
<div class="alert alert-warning" role="alert">請一定要更新chrome</div>
<a
href="https://chromewebstore.google.com/detail/%E7%AF%A1%E6%94%B9%E7%8C%B4/dhdgffkkebhmkfjojejmpbldmpobfkfo"
class="btn btn-primary"
target="_blank"
>下載tampermonkey</a
>
<a
href="https://gist.github.com/phillychi3/1f3cbbf5f79fb88380e88d0e765d3bb7/raw/09f6e2e4e2eefb6cf947d88d7b1f8fabad4b6a22/loltronclass.user.js"
class="btn btn-primary"
>下載腳本</a
>
<div class="card mt-3">
<div class="card-header d-flex justify-content-between align-items-center">
<span>腳本原始碼(僅在無法開啟安裝頁面後使用</span>
<button id="copyButton" class="btn btn-sm btn-outline-secondary">Copy</button>
</div>
<div class="card-body">
<pre><code id="codeBlock">
// ==UserScript==
// @name lol tronclass
// @namespace no
// @version 0.2
// @description lol teacher
// @author lol
// @match https://eclass.yuntech.edu.tw/course/*
// @match https://eclass.yuntech.edu.tw/exam/*
// @match https://elearning.yuntech.edu.tw/learn/exam/*
// @icon https://media.discordapp.net/attachments/922733774633050112/969011518861623376/256.png
// @grant none
// @license MIT
// ==/UserScript==
for (let event_name of ["visibilitychange", "webkitvisibilitychange", "blur"]) {
window.addEventListener(event_name, function(event) {
event.stopImmediatePropagation();
}, true);
}
for (let full_event_name of ["fullscreenElement","fullscreenEnabled","mozFullScreenEnabled", "webkitFullscreenEnabled", "msFullscreenEnabled","webkitIsFullScreen"]) {
window.addEventListener(full_event_name, function(event) {
event.stopImmediatePropagation();
}, true);
}
window.addEventListener('load', function() {
document.getElementById("Symbol(water-mark)").style.background = ""
}, false);
</code></pre>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script>
document.getElementById('copyButton').addEventListener('click', function () {
const codeBlock = document.getElementById('codeBlock').innerText
navigator.clipboard.writeText(codeBlock).then(
function () {
alert('gogogo')
},
function (err) {
alert('複製失敗: ', err)
}
)
})
</script>
</body>
</html>