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
Object.defineProperty(window.navigator, "userAgent", { | |
get: () => { | |
return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Safari/605.1.15"; | |
}, | |
configurable: false, | |
}); |
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
// ==UserScript== | |
// @name bilibili上传大小限制突破 | |
// @namespace Violentmonkey Scripts | |
// @match https://member.bilibili.com/platform/upload/video/frame | |
// @grant none | |
// @version 1.0 | |
// @author - | |
// @description 2021/8/30 下午2:31:56 | |
// ==/UserScript== | |
Object._assign = Object.assign; |
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
// ==UserScript== | |
// @name 音频->分段 | |
// @namespace Violentmonkey Scripts | |
// @match https://www.bilibili.com/video/* | |
// @grant none | |
// @version 1.0 | |
// @author - | |
// @description 2022/7/27 11:52:53 | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name bilibili上传大小限制突破 | |
// @namespace Violentmonkey Scripts | |
// @match https://member.bilibili.com/video/upload.html | |
// @grant none | |
// @version 1.0 | |
// @author - | |
// @description 2021/8/30 下午2:31:56 | |
// ==/UserScript== | |
Object._assign = Object.assign; |
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
// ==UserScript== | |
// @name Use Mediainfo.js for Biu | |
// @namespace Violentmonkey Scripts | |
// @match https://web.biu.moe/Upload | |
// @grant none | |
// @version 1.0 | |
// @author - | |
// @description 2020/2/25 下午9:57:36 | |
// ==/UserScript== | |
(() => { |
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
// ==UserScript== | |
// @name Abema 区域限制 | |
// @version 1.0.0 | |
// @run-at document-end | |
// @namespace Violentmonkey Scripts | |
// @match https://abema.tv/* | |
// @grant none | |
// ==/UserScript== | |
Object.defineProperty(__CLIENT_REGION__, 'isAllowed', { | |
get: () => true |
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
getWeiboLength = (text) => { | |
const getLength = a => { | |
if (!a) return 0; | |
// eslint-disable-next-line no-control-regex | |
const b = a.match(/[^\x00-\xff]/g); | |
return a.length + (b ? b.length : 0); | |
}; | |
const c = 41, | |
d = 140, | |
e = 20, |
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
JTVCJTdCJTIyY2hhbm5lbE5hbWUlMjI6JTIyJUU2JTlDJTg5JUU2JUEwJTk2JUUzJTgzJTlFJUUzJTgzJThBT2ZmaWNpYWwlMjIsJTIycGFnZVVybCUyMjolMjJodHRwczovL2xpdmUuYmlsaWJpbGkuY29tLzM4MjIzODklMjIsJTIyc3RhdHVzJTIyOiUyMndhaXQlMjIlN0QsJTdCJTIyY2hhbm5lbE5hbWUlMjI6JTIyJUU1JUE0JThGJUU4JTg5JUIyJUU3JUE1JUFEJTIyLCUyMnBhZ2VVcmwlMjI6JTIyaHR0cHM6Ly9saXZlLmJpbGliaWxpLmNvbS8xMzk0NjM4MSUyMiwlMjJzdGF0dXMlMjI6JTIyd2FpdCUyMiU3RCwlN0IlMjJjaGFubmVsTmFtZSUyMjolMjIlRTUlQTQlQTclRTclQTUlOUUlRTYlQkUlQUElMjIsJTIycGFnZVVybCUyMjolMjJodHRwczovL2xpdmUuYmlsaWJpbGkuY29tLzIxMTMzOTc5JTIyLCUyMnN0YXR1cyUyMjolMjJ3YWl0JTIyJTdELCU3QiUyMmNoYW5uZWxOYW1lJTIyOiUyMiVFNiU5NyVCNiVFNCVCOSU4MyVFNyVBOSVCQSUyMiwlMjJwYWdlVXJsJTIyOiUyMmh0dHBzOi8vbGl2ZS5iaWxpYmlsaS5jb20vODg5OTUwMyUyMiwlMjJzdGF0dXMlMjI6JTIyd2FpdCUyMiU3RCwlN0IlMjJjaGFubmVsTmFtZSUyMjolMjIlRTUlQjglOTUlRTklODclOEMlMjIsJTIycGFnZVVybCUyMjolMjJodHRwczovL2xpdmUuYmlsaWJpbGkuY29tLzQ4OTUzMTIlMjIsJTIyc3RhdHVzJTIyOiUyMndhaXQlMjIlN0QsJTdCJTIyY2hhbm5lbE5hbWUlMjI6JTIyJUUzJTgzJUE2JUUzJTgzJUExJUUzJTgzJThFJUUzJTgyJUI3JUUzJTgyJUFBJUUzJTgz |
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
// ==UserScript== | |
// @name Abema 强制 1080p | |
// @version 1.0.0 | |
// @run-at document-start | |
// @namespace Violentmonkey Scripts | |
// @match https://abema.tv/* | |
// @grant none | |
// ==/UserScript== | |
const open = XMLHttpRequest.prototype.open; | |
XMLHttpRequest.prototype.open = function () { |
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
Comment: 0,0:00:26.86,0:00:28.86,lyric-jp,,0,0,0,code once,wav_reader = _G.Yutils.decode.create_wav_reader("C:/Users/Sora/Desktop/1.wav"); sample_rate = wav_reader.sample_rate(); byte_rate = wav_reader.byte_rate(); bit_depth = wav_reader.bits_per_sample(); | |
Comment: 0,0:00:28.86,0:00:28.86,lyric-jp,,0,0,0,code syl,e = 2.71828; position = wav_reader.position(wav_reader.sample_from_ms(math.round(line.start_time + syl.start_time))); samples = wav_reader.samples_interlaced(wav_reader.sample_from_ms(syl.duration > 0 and syl.duration or 1)); for i=1, samples.n do samples[i] = samples[i] / math.abs(wav_reader.min_max_amplitude()) end freq_analyzer = _G.Yutils.decode.create_frequency_analyzer(samples, sample_rate); freqs = freq_analyzer.frequencies() ; freqs_new = {}; count = 1; weight_max = 0; for i=1, freqs.n do if freqs[i].freq >120 and freqs[i].freq < 600 and math.round(freqs[i].freq) % 5 == 0 then _G.aegisub.log(freqs[i].freq .. ", " .. freqs[i].weight .. "\n") freqs_new[count] = freqs[i]; count = count+1; if |
NewerOlder