This file contains 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
const convert = function(arr, startPath = "") { | |
const getType = q => Object.prototype.toString.call(q); | |
function converter(list, path, result = {}) { | |
for (let key in list) { | |
let _path = `${path}[${key}]`; | |
let item = list[key]; | |
let typeVal = getType(item); | |
if (("[object Array]" === typeVal) || ("[object Object]" === typeVal)) { | |
converter(item, _path, result); |
This file contains 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 Black Hole image downloader | |
// @version 1.0 | |
// @description Send any image to your Black Hole by pressing Ctrl + Q | |
// @author https://github.com/mikhailsdv | |
// @license MIT | |
// @match https://*/* | |
// @match http://*/* | |
// @icon https://iili.io/HFm563g.png | |
// @grant GM_getValue |
This file contains 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
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: deep-brown; icon-glyph: newspaper; | |
const widgetFamilies = { | |
small: { | |
logo: { | |
width: 28, | |
height: 10, | |
marginRight: 6, | |
}, |
This file contains 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 Tailwind copy classes | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Copy Tailwind classes to clipboard by clicking them. | |
// @author https://github.com/mikhailsdv | |
// @match https://tailwindcss.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=tailwindcss.com | |
// @grant none | |
// ==/UserScript== |
This file contains 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 WhatsApp window manager | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Closes dead WhatsApp windows and quickly opens chats by url | |
// @author mikhailsdv | |
// @match https://*.whatsapp.com/* | |
// @grant window.close | |
// ==/UserScript== |
This file contains 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 Hack Random for castlots.org | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://castlots.org/generator-sluchajnyh-chisel/ | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=castlots.org | |
// @grant none | |
// ==/UserScript== |
This file contains 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 Hack Random for randstuff.ru | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author mikhailsdv | |
// @match https://randstuff.ru/number/ | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=randstuff.ru | |
// @grant none | |
// ==/UserScript== |