-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTwitter-Spaces-CC-Expander.html
116 lines (101 loc) · 3.9 KB
/
Twitter-Spaces-CC-Expander.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Cache setting -->
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="0">
<!-- Preview -->
<title>Twitter Spaces CC Expander</title>
<!-- Preview: Primary Meta Tags -->
<meta name="title" content="Arce0406 | DD Tools - Twitter Spaces CC Expander">
<meta name="description"
content="A website for VTuber audiences.">
<!-- Theme CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css" />
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200" />
<link rel="stylesheet" href="../css/main.css" />
</head>
<body class="has-background-light">
<!-- Navbar -->
<nav class="navbar main-navbar has-border shadow-light is-fixed-top">
<div class="navbar-brand">
<a class="navbar-item title mb-0" href="#">
DD Tools
</a>
</div>
</nav>
<!-- section: Twitter Spaces CC Expander -->
<section class="section tab-panel is-active" id="section2" data-group="section">
<main class="box has-background-white">
<div class="content">
<p class="title is-4">Twitter Spaces CC Expander</p>
<p>Enlarge the caption area of Twitter spaces, only works on Twitter (browser page) for pc.</p>
<ol>
<li>Copy the script below.</li>
<li>Go to the Twitter page.</li>
<li>Open a Twitter spaces, and make sure there is already have subtitle shows.</li>
<p>(This script will not work if automatic subtitle translation (cc) is not enabled, or if the translated
subtitles are not yet available.)</p>
<li>Press "F12" to open the "Developer Tools".</li>
<li>Find the "console" in Developer Tools.</li>
<li>Paste the script and click "Enter" to execute it.</li>
<li>Now the subtitles will be enlarged and displayed on the side.</li>
</ol>
</div>
<div class="card">
<header class="card-header">
<p class="card-header-title">
Script
</p>
</header>
<div class="card-content">
<div class="content">
<textarea id="tb_cc_script" class="textarea" rows="13" disabled>
try {
let listbox = document.querySelector('div[role="listbox"]');
let cc_parent = listbox.parentElement.parentElement;
cc_parent.style.position = "fixed";
cc_parent.style.height = "100%";
cc_parent.style.top = "0";
cc_parent.style.left = "-100%";
cc_parent.style.borderWidth = "1px";
console.log('done.');
} catch (e) {
console.log(e);
}
</textarea>
</div>
</div>
<footer class="card-footer">
<a id="btn_cc_script" class="card-footer-item">
<span class="icon is-small mr-3">
<i class="material-symbols-outlined">
content_copy
</i>
</span>
<span>Copy</span>
</a>
</footer>
</div>
</main>
</section>
<!-- notification -->
<div id="notifiy" class="notification-wrapper">
<div class="notification is-info">
<button class="delete"></button>
<p></p>
</div>
</div>
<!-- Scripts -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script src="../js/navbar.js"></script>
<script src="../js/message.js"></script>
<script src="../js/tab.js"></script>
<script type="module" src="../js/main2.js"></script>
</body>
</html>