This userscript allows you to open streams and videos from the twitch website in IINA. When clicking on a stream or video, a menu appears giving you the choice to play it either normally in the browser, or in the IINA media player. You are then free to close your browser window if you want.
Based on this answer from @kingkeith on the sublime text forum (thanks).
When using regular expressions to search within sublime text, flags can be specified by adding (?MY_FLAGS) at the beggining of the expression.
Example:
(?s)pattern with dots also matching new lines| /** | |
| * Concurrently run an asynchronous function on a list of items given a | |
| * concurrency limit. A concurrency limit equal to Infinity makes this function | |
| * behave like `Promise.all`. | |
| * | |
| * @params items - List of items to process | |
| * @params run - Asynchronous function to run for each item | |
| * @params concurrency - Maximum number of concurrent executions | |
| * @return A Promise that resolves to an array of results | |
| */ |
| #include cycle-mix.glsl | |
| vec4 cycleGradient(vec4 a, vec4 b, float x) { | |
| x *= 0.5; | |
| return vec4( | |
| cycleMix(vec2(a.x, b.x), x), | |
| cycleMix(vec2(a.y, b.y), x), | |
| cycleMix(vec2(a.z, b.z), x), | |
| cycleMix(vec2(a.w, b.w), x) |
| body { | |
| --background-color-base: #000; | |
| --color-base: rgba(255, 255, 255, 0.6); | |
| --border-color-base: rgba(255, 255, 255, 0.15); | |
| --background-color-interactive: rgba(255, 255, 255, 0.15); | |
| --border-color-subtle: rgba(255, 255, 255, 0.15); | |
| --color-progressive: #fff; | |
| --color-visited: #fff; | |
| } |
| // ==UserScript== | |
| // @name Force original audio track on YouTube videos | |
| // @match https://youtube.com/* | |
| // @match https://www.youtube.com/* | |
| // ==/UserScript== | |
| const ORIGINAL_AUDIO_TRACK_NAME_PATTERN = /^.+?\([^\)]+\)\s+[^\(\)]+|.+?\s+original$/ | |
| new MutationObserver(debounce(100, update)).observe(document.head, { | |
| childList: true, |
Question and answer with screenshots by kneedhelp (stackoverflow.com/a/62748969):
I wrote a Safari Extension that I'd like to have permanently enabled on my computer. It works fine, but I have to click
Develop❯Allow Unsigned Extensionsand enable it manually every time I open Safari for it to be available. I'm not really sure how the signing process works. Is there a way I can sign my extension for only this computer, without having to subscribe to an Apple Developer account?
First thing to do was to create a development account with Apple (the free version). Then click on [Project Name] ❯ Build Settings and ensure "Development Team" has your account selected (you'll have to add your account in Xcode ❯ Settings ❯ Accounts if you haven't done so already).
Despite providing all your correct informations in your personal contact card, Safari may still try to autocomplete with an old address. I struggled with this issue for months but finally managed to fix it thanks to this reddit answer.
Note
Please take the time to upvote the original reddit answer.
[!CAUTION]
