A tiny ~150-byte polyfill for Promise.prototype.finally
.
Useful for browsers that support Promise but not the .finally()
method.
npm install finally-polyfill
// ==UserScript== | |
// @name Fuck Unsplash+ | |
// @namespace https://guoyunhe.me/ | |
// @version 0.1 | |
// @description Remove Unsplash+ shit from Unsplash | |
// @author Guo Yunhe | |
// @match https://unsplash.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=unsplash.com | |
// @grant none | |
// ==/UserScript== |
qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript 'var allDesktops = desktops(); for (i = 0; i < allDesktops.length; i++) {d = allDesktops[i]; d.wallpaperPlugin = "org.kde.image";d.currentConfigGroup = Array("Wallpaper", "org.kde.image", "General"); d.writeConfig("Image", "file:///path/to/image.png")}' |