This file contains 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
{ | |
// * ================================================================================ YoutubePlaylistTimer | |
// * ---------------------------------------------------------------- seek video and bind timeupdate event | |
const YoutubePlaylistTimer = () => { | |
delegateEvent("video", "timeupdate", updatePlaylistTimer); | |
}; | |
// * ---------------------------------------------------------------- update playlist timer when timeupdate |
This file contains 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
#! /usr/bin/env node | |
// * ================================================================================ lolcat | |
/** | |
* hsl color space | |
* https://stackoverflow.com/questions/36721830/convert-hsl-to-rgb-and-hex#answer-54014428 | |
*/ | |
const hsl2rgb = (h, s = 1, l = 0.5) => { | |
const a = s * Math.min(l, 1 - l); |
This file contains 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
/* override player top title bar mask */ | |
.bpx-player-top-wrap .bpx-player-top-mask, | |
.bilibili-player-video-top .bilibili-player-video-top-mask { | |
background: none !important; | |
} | |
/* override player bottom control bar */ | |
.bpx-player-control-wrap, | |
.bilibili-player-video-control-wrap { | |
opacity: 0.7; |
This file contains 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
#!/bin/bash | |
# Copyright (c)2022 https://bookfere.com | |
# This is a batch script for fixing Google Translate and making it available | |
# in the Chinese mainland. If you experience any problem, visit the page below: | |
# https://bookfere.com/post/1020.html | |
set -e | |
IPS=( | |
74.125.137.90 |
This file contains 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
:: Copyright (c)2022 https://bookfere.com | |
:: This is a batch script for fixing Google Translate and making it available | |
:: in the Chinese mainland. If you experience any problem, visit the page below: | |
:: https://bookfere.com/post/1020.html | |
@echo off | |
setlocal enabledelayedexpansion | |
chcp 437 >NUL | |
set "ips[0]=74.125.137.90" |
This file contains 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
Markdown 2 hrs 24 mins ██████████████▏░░░░░░ 67.8% | |
TypeScript 51 mins █████░░░░░░░░░░░░░░░░ 24.4% | |
Other 16 mins █▋░░░░░░░░░░░░░░░░░░░ 7.8% | |
Text 0 secs ░░░░░░░░░░░░░░░░░░░░░ 0.0% | |
JSON 0 secs ░░░░░░░░░░░░░░░░░░░░░ 0.0% |
This file contains 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
;(function () { | |
// * ---------------------------------------------------------------- tester | |
var p = performance | |
function loopTest(fn) { | |
var count = 1 | |
var time = 0 | |
while (time < 100) { |