Instuctions available (moved) at REMOTE ORIGIN website: Extract Subtitles From mkv
This file contains hidden or 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 New Userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-07-14 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.notion.so/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=notion.so | |
// @grant GM.addStyle | |
// ==/UserScript== |
This file contains hidden or 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 copyNyaaMagnets | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-07-02 | |
// @description try to take over the world! | |
// @author Julen | |
// @match https://nyaa.si/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=nyaa.si | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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
import { useCallback, useRef } from 'react'; | |
import { unstable_useBlocker as useBlocker, useBeforeUnload, useNavigate } from 'react-router-dom'; | |
function useAsyncBlocker(isBlockFn: () => Promise<boolean>) { | |
const navigate = useNavigate(); | |
const isBlockRef = useRef(true); | |
const blockerArgsRef = useRef<Parameters<Exclude<Parameters<typeof useBlocker>[0], boolean>>[0]>(); | |
const willBlock = useCallback(async () => { |
This file contains hidden or 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 copyNcRawsAllUrls.js | |
// @version 0.3.0 | |
// @description 2023/06/29 | |
// @author Julen | |
// @match https://ouo.si/* | |
// @grant none | |
// ==/UserScript== | |
(function () { |
This file contains hidden or 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 copyLilithAllUrls.js | |
// @version 0.1.0 | |
// @description 2022/05/05 | |
// @author Julen | |
// @match https://*.lilith001.workers.dev | |
// @grant none | |
// ==/UserScript== | |
(function () { |
This file contains hidden or 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
.dictPanel-FloatBox-Container.saladict-theme .dictPanel-Root { | |
transform: translate(0px, 70px); | |
} | |
.dictPanel-FloatBox-Container.saladict-theme .dictPanel-Head { | |
display: none; | |
} | |
.dictPanel-FloatBox-Container.saladict-theme .mtaBox-DrawerBtn { | |
display: none; | |
} | |
.dictPanel-FloatBox-Container.saladict-theme .waveformBox { |
This file contains hidden or 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
type IsPartial<T> = T extends Required<T> ? false : true; | |
type NoPartial<Sharp1, Sharp2> = IsPartial<Sharp1> & IsPartial<Sharp2> extends true ? false : true; | |
// Merge two types, overlapping part use union | |
export type ComposeSharp< | |
Sharp1, | |
Sharp2, | |
InterKeys extends keyof Sharp1 & keyof Sharp2 = keyof Sharp1 & keyof Sharp2 | |
> = UnionToIntersection< | |
InterKeys extends unknown | |
? NoPartial<Pick<Sharp1, InterKeys>, Pick<Sharp2, InterKeys>> extends true |
This file contains hidden or 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
payload: | |
- IP-CIDR,8.8.8.8/32 | |
# - IP-CIDR,1.1.1.1/32 |
This file contains hidden or 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
import React, { useEffect, useRef, useState } from 'react'; | |
export const useStateWithCallback = <T>( | |
initialState: T | |
): [state: T, setState: (updatedState: React.SetStateAction<T>, callback?: (updatedState: T) => void) => void] => { | |
const [state, setState] = useState<T>(initialState); | |
const callbackRef = useRef<(updated: T) => void>(); | |
const handleSetState = (updatedState: React.SetStateAction<T>, callback?: (updatedState: T) => void) => { | |
callbackRef.current = callback; |
NewerOlder