Created
November 7, 2018 18:19
-
-
Save rinsuki/454c1a16a7c443560af8a8a80daee324 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 シャニマスで右クリック画像コピーがおかしくなるやつなおす | |
// @namespace https://rinsuki.net | |
// @version 0.1 | |
// @author rinsuki | |
// @match https://shinycolors.enza.fun/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
// Your code here... | |
const orig = HTMLCanvasElement.prototype.getContext | |
HTMLCanvasElement.prototype.getContext = function(...args) { | |
console.log(this, args[0], args[1]) | |
if (args[0].endsWith("webgl")) { | |
delete args[1].premultipliedAlpha | |
} | |
return orig.apply(this, args) | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment