Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rinsuki/454c1a16a7c443560af8a8a80daee324 to your computer and use it in GitHub Desktop.
Save rinsuki/454c1a16a7c443560af8a8a80daee324 to your computer and use it in GitHub Desktop.
// ==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