One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
#!/usr/bin/python3 | |
#coding:utf-8 | |
from lxml import etree | |
import urllib.request | |
import os | |
import threading | |
import re | |
import sys |
// ==UserScript== | |
// @name bilibili 首页番剧更新 | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2.0 | |
// @description try to take over the world! | |
// @author Bigshans | |
// @match https://www.bilibili.com/ | |
// @grant GM_xmlhttpRequest | |
// ==/UserScript== |
// ==UserScript== | |
// @name bilibili click | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description 链接可点击 | |
// @author Bigshans | |
// @match https://h.bilibili.com/* | |
// @match https://t.bilibili.com/* | |
// @grant none | |
// ==/UserScript== |
// ==UserScript== | |
// @name bilibili 评论区可点击 | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author BigShans | |
// @match https://h.bilibili.com/* | |
// @match https://t.bilibili.com/* | |
// @grant none | |
// ==/UserScript== |
#!/usr/bin/python3 | |
class Tokenize: | |
def __init__(self, context): | |
self.context = context.replace('(', ' ( ').replace(')', ' ) ').split() | |
self.top = -1 | |
def getNextToken(self): | |
self.top += 1 | |
if self.top < len(self.context): | |
return self.context[self.top] |
function formatTime(time: Date|number|string, format: string = 'YY-MM-DD hh:mm:ss'): string { | |
if (!time) { | |
return ''; | |
} | |
let date: Date; | |
if (typeof time === 'number') { | |
date = new Date(time); | |
} else if (typeof time === 'string') { | |
if (/^\d+$/g.test(time)) { | |
date = new Date(+time); |
/* 当文本内容长度超过容器最大宽度时,自动省略多余的文本。 */ | |
/* When the text content length exceeds the maximum container width, | |
* the excess text is automatically omitted. */ | |
.line-clamp(@line) { | |
display: -webkit-box; | |
-webkit-line-clamp: @line; | |
-webkit-box-orient: vertical; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
overflow-wrap: break-word; |
// ==UserScript== | |
// @name whoogle search 链接打开方式修改 | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @include https://whoogle.sdf.org/search/* | |
// @icon https://www.google.com/s2/favicons?domain=black-white-rabbito.monster | |
// @grant none | |
// ==/UserScript== |
Number.prototype.toFixed = function (n) { | |
if (n > 20 || n < 0) { | |
throw new RangeError('toFixed() digits argument must be between 0 and 20'); | |
} | |
const number = this; | |
if (isNaN(number) || number >= Math.pow(10, 21)) { | |
return number.toString(); | |
} | |
if (typeof (n) == 'undefined' || n == 0) { | |
return (Math.round(number)).toString(); |