This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 我承认这么做很不好,但够用就行 | |
document.write("<a href=\"javascript:void(0);\" onclick=\"tranToSimp();\" target=\"_self\">简体中文</a> | <a href=\"javascript:void(0);\" onclick=\"simpToTran();\" target=\"_self\">繁体中文</a>"); | |
const s2t = OpenCC.Converter({ from: 'cn', to: 'twp' }); | |
const t2s = OpenCC.Converter({ from: 'twp', to: 'cn' }); | |
if(getCookie("trans_conv") == "true") simpToTran(); | |
async function simpToTran() { | |
document.cookie = "trans_conv=true; domain=.scpcbgame.cn; path=/; expires=Fri, 31 Dec 9999 23:59:59 GMT"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim Events%(10) | |
Global i% = 0 | |
Function RegistryEvent(ptr%) | |
Events(i) = ptr | |
i = i + 1 | |
End Function | |
Function EventHelloworld%(msg%) | |
Print "Hello World!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addEventListener('fetch', event => { | |
event.respondWith(fetchAndApply(event.request)); | |
}) | |
async function fetchAndApply(request) { | |
let url = new URL(request.url); | |
url.protocol = 'https:'; | |
let new_request_headers = new Headers(request.headers); | |
new_request_headers.set('Host', url.hostname); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var system = {}; | |
var p = navigator.platform; | |
system.win = p.indexOf("Win") == 0; | |
system.mac = p.indexOf("Mac") == 0; | |
system.x11 = (p == "X11") || (p.indexOf("Linux") == 0); | |
if(!(system.win||system.mac||system.xll)) { | |
alert("something to shown up when user is using phone."); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Character Counter - Made by ZiYueCommentary | |
* Counting characters that existing in the file, Require C++20. | |
* | |
* v1.2 2023/1/19 | |
* | |
* Download Executable: https://files.ziyuesinicization.site/cc.exe | |
*/ | |
#include <fstream> |