Skip to content

Instantly share code, notes, and snippets.

View yuantailing's full-sized avatar
💭
available

Tailing Yuan yuantailing

💭
available
View GitHub Profile
@yuantailing
yuantailing / csdn.net.user.js
Last active March 10, 2024 14:49
JS user scripts (*.user.js)
// ==UserScript==
// @name Hide boring ADs on CSDN
// @namespace http://tampermonkey.net/
// @version 0.1.2
// @updateURL https://gist.github.com/yuantailing/86cce1068e39edc518def0000e1cf4ac/raw/csdn.net.user.js
// @downloadURL https://gist.github.com/yuantailing/86cce1068e39edc518def0000e1cf4ac/raw/csdn.net.user.js
// @description Hide boring ADs on CSDN
// @author github.com/yuantailing
// @match https://*.csdn.net/*
// @match http://*.csdn.net/*

Keybase proof

I hereby claim:

  • I am yuantailing on github.
  • I am yuantailing (https://keybase.io/yuantailing) on keybase.
  • I have a public key whose fingerprint is 1298 C1E8 8EF8 44CF C5AD C351 6690 EA91 2513 E466

To claim this, I am signing this object:

@yuantailing
yuantailing / find_student_number.py
Last active August 31, 2021 22:45
Hi freshmen, find your student number in Tsinghua.
import http.cookiejar
import urllib.parse
import urllib.request
# Run the script with Python3.
# Please use your own information, and don't be evil.
name = '张三'
id = '110101199901234567'
number_start = 2019310001
@yuantailing
yuantailing / translate.google.com.user.js
Last active December 1, 2018 04:27
点“concatenate lines”删除英文里的换行。适用于从 PDF 复制到 Google Translate 的文本
// ==UserScript==
// @name Google Translation Concatenate Lines
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Concatenate source lines in Google translation.
// @author github.com/yuantailing
// @match https://translate.google.com/*
// @match https://translate.google.com.hk/*
// @match https://translate.google.cn/*
// @require https://unpkg.com/jquery@3.3.1/dist/jquery.min.js
<!DOCTYPE html>
<html>
<head>
<title>C++ Debuggerの日常</title>
<meta charset="utf-8">
<style>
@import url(https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);
@import url(https://fonts.googleapis.com/css?family=Consolas:400,700,400italic);
body { font-family: 'Droid Serif'; }
This file has been truncated, but you can view the full file.
[