这个人不懒,但什么都没写
时隔两年半,我终于更新我的简介和签名了!!!
真的是两年半!(2021/02/06至2023/08/26)(多一点点……可惜了)
比较擅长Python3、C++、HTML、CSS、Javascript(用于网页)
会一点Python2、C、Javascript(其他用途)、Scratch(手动狗头)、Swift(主要是SwiftUI)、VBS、TypeScript、ArkTS(主要是ArkUI)
会一点点(真的就仅限于碰过)Bash、Brainf***、Java、Objective-C
不小心注册的小号
因为注销了同一个邮箱就注册不了账号了,所以没注销
附上一段可以搜索洛谷用户的油猴 (篡改猴)脚本
不是我编的!!!来源
// ==UserScript==
// @name 洛谷首页添加用户名搜索
// @namespace http://tampermonkey.net/
// @version 1.1
// @description 在洛谷的首页添加用户名搜索功能
// @author 引领天下
// @match https://www.luogu.org/
// @match https://www.luogu.com.cn
// @match http://www.luogu.org/
// @match http://www.luogu.com.cn
// @match https://www.luogu.org
// @match https://www.luogu.com.cn
// @match http://www.luogu.org
// @match http://www.luogu.com.cn
// @match https://www.luogu.org/#feed
// @match https://www.luogu.com.cn/#feed
// @match http://www.luogu.org/#feed
// @match http://www.luogu.com.cn/#feed
// @match https://www.luogu.org/#feed/
// @match https://www.luogu.com.cn/#feed/
// @match http://www.luogu.org/#feed/
// @match http://www.luogu.com.cn/#feed/
// @grant none
// ==/UserScript==
(function() {
'use strict';
var tar=document.getElementsByClassName("lg-index-content")[0].getElementsByClassName("lg-article lg-index-stat")[0].parentNode;
var ele="<div class='am-u-md-3'><div class='lg-article lg-index-stat'><h2>用户名搜索</h2><div class='am-input-group am-input-group-primary am-input-group-sm'><input type='text' class='am-form-field' placeholder='输入要搜索的用户名' id='usernamesearchbox'></div><p><button class='am-btn am-btn-danger am-btn-sm' id='usernamesearch'>进入用户主页</button></p></div></div>";
$(tar).after(ele);
document.getElementsByClassName("lg-index-content")[0].getElementsByClassName("am-u-md-9")[0].setAttribute("class","am-u-md-6");
function searchname(){
var username=document.getElementById("usernamesearchbox").value;
$.get("https://www.luogu.com.cn/api/user/search?keyword=" + username,
function (data) {
var arr = eval(data);
if (arr["users"][0]==null){
show_alert("提示","找不到用户");
return;
}
var tarid = arr["users"][0].uid;
location.href="https://www.luogu.com.cn/user/"+tarid;
}
);
}
document.getElementById("usernamesearch").onclick=function(){
searchname();
};
$(document.getElementById("usernamesearchbox")).keydown(function (e) {
if (e.keyCode==13){
searchname();
}
});
$('#container').highcharts().reflow();
$('#container2').highcharts().reflow();
})();
