Skip to content

Instantly share code, notes, and snippets.

View vhxubo's full-sized avatar

归谜 vhxubo

View GitHub Profile
@vhxubo
vhxubo / FastGit.user.js
Last active February 2, 2024 16:09
GitHub Clone or download、releases 下载加速
// ==UserScript==
// @name FastGit
// @version 0.8
// @description GitHub Clone or download、Releases 下载加速
// @author Vhxubo
// @license MIT
// @icon https://github.githubassets.com/favicon.ico
// @homepage https://gist.github.com/vhxubo/d67fbd5bb3b7308b2e3690ca58e12c12
// @namespace https://gist.github.com/vhxubo/d67fbd5bb3b7308b2e3690ca58e12c12
// @match https://github.com/*/*
@vhxubo
vhxubo / MarkDownLink.user.js
Last active June 18, 2020 03:22
复制 MarkDown 格式的超链接到剪贴板
@vhxubo
vhxubo / test
Last active December 18, 2020 08:33
生成随机学号
const grade = [9, 10, 11, 12];
const sequence = [];
for (let i = 0; i <= 30; i++) {
sequence.push(i);
}
const generate = (arr) => {
const obj = {};
for (item of arr)
if (item < 100) {
@vhxubo
vhxubo / README.md
Last active March 13, 2021 14:12
替换bilibili网站的综合热门、每周必看、入站必刷的卡片样式,2列转换为1列。

bilibili221.user.js

bilibili网站的综合热门、每周必看、入站必刷的卡片均为两列,总觉得看的很别扭,眼睛要蛇形去查看各个卡片内容,如下图所示

双列

对于我而言,一般情况下还是会居中看东西的,而且像知乎和掘金基本都是将整体居中展示的

通过修改网页的CSS样式,就可以实现二列转一列的效果,如下图所示

@vhxubo
vhxubo / Dont'tTranslatePre.user.js
Created August 16, 2021 08:02
Don't translate <pre> by Google Translate
// ==UserScript==
// @name Don't translate <pre>
// @namespace https://gist.github.com/vhxubo/a5ce83f3634d4073eaef52e6e0ce6822
// @version 0.1
// @description Don't translate <pre> by Google Translate
// @author vhxubo
// @match *://*/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==