Skip to content

Instantly share code, notes, and snippets.

@floscr
floscr / peerflix-hook.lua
Created December 30, 2019 16:52 — forked from ekisu/peerflix-hook.lua
A Lua user script for mpv that allows playing of magnet links, similar to the youtube-dl hook.
local utils = require 'mp.utils'
local msg = require 'mp.msg'
-- OPTIONS
local keep_file_after_streaming = true
local peerflix = {
path = "peerflix",
searched = false
}
@floscr
floscr / bookmarklet.js
Last active November 24, 2022 07:51 — forked from bramus/bookmarklet.md
Mastodon User Page Bookmarklet
javascript:(function(){
const MY_MASTO_LOCAL_DOMAIN = 'functional.cafe'; /* 👈 Change this value */
const MY_MASTO_WEB_DOMAIN = MY_MASTO_LOCAL_DOMAIN; /* 👈 Only change this value if your Masto host is hosted an different domain than the LOCAL_DOMAIN */
function tryAndGetUserName() {
if (document.location.host === MY_MASTO_LOCAL_DOMAIN) {
alert(`Already on your host ${MY_MASTO_LOCAL_DOMAIN}`)
}
/* Profile with a moved banner (e.g. https://mastodon.social/@bramus): follow that link */