B漫还原toDataURL函数

还原被覆盖的canvas的toDataURL函数

// ==UserScript==
// @name         B漫还原toDataURL函数
// @namespace    http://tampermonkey.net/
// @version      1.0.1
// @description  还原被覆盖的canvas的toDataURL函数
// @author       You
// @match        http*://manga.bilibili.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var toDataURL = HTMLCanvasElement.prototype.toDataURL
    setTimeout(() => {
        HTMLCanvasElement.prototype.toDataURL = toDataURL
    }, 0)
})();