Skip to content

Instantly share code, notes, and snippets.

View martykan's full-sized avatar

Tomáš Martykán martykan

View GitHub Profile
@martykan
martykan / main.js
Created April 24, 2024 15:11
Trezor Solana new_authority issue
const {
Connection,
PublicKey,
Transaction,
Keypair,
SystemProgram,
} = require("@solana/web3.js");
const {
AuthorityType,
createSetAuthorityInstruction,
@martykan
martykan / gist:32e6daf63d3fce6c006aae42889f799d
Created February 17, 2023 12:23
Novinky.cz uBlock filter
! 2023-02-17 https://www.novinky.cz
www.novinky.cz##.page-detail > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1)
www.novinky.cz##.tpl-king-top-content > div > section:nth-of-type(2) > div
www.novinky.cz##.tpl-king-top-content > div > section:nth-of-type(1) > div:last-of-type > div:nth-of-type(2)
www.novinky.cz##section[aria-labelledby="accessibility-sidebar-bottom-content"] > div
www.novinky.cz##[aria-labelledby="accessibility-main-footer"] > div.ogm-container
www.novinky.cz##.tpl-king > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1)
! 2021-09-14 https://twitter.com
twitter.com##html:style(overflow: auto !important;)
twitter.com##.r-ipm5af.r-zchlnj.r-1xcajam.r-1d2f490.r-1p0dtai.r-1ffj0ar.css-1dbjc4n
twitter.com##.r-16wqof.r-1dqxon3.r-16y2uox.r-14lw9ot.css-1dbjc4n
twitter.com##.r-1upvrn0.r-l5o3uw.css-1dbjc4n
// Load data tiles from an AJAX data source
L.TileLayer.Ajax = L.TileLayer.extend({
_requests: [],
_addTile: function (tilePoint) {
var tile = { datum: null, processed: false };
this._tiles[tilePoint.x + ':' + tilePoint.y] = tile;
this._loadTile(tile, tilePoint);
},
// XMLHttpRequest handler; closure over the XHR object, the layer, and the tile
_xhrHandler: function (req, layer, tile, tilePoint) {