Greasy Fork

来自缓存

Arras Theme

theme for arras.io

目前为 2021-12-05 提交的版本。查看 最新版本

// ==UserScript==
// @name        Arras  Theme
// @version     3.1.4
// @description  theme for arras.io
// @match        *://arras.io/
// @match        *://https://scenexe.io//
// @match        *://https://arras.neocities.org/
// @license     MIT
// @namespace http://tampermonkey.net/
// ==/UserScript==

//all credit goes to arras noob
CanvasRenderingContext2D.prototype._stroke = CanvasRenderingContext2D.prototype._stroke || CanvasRenderingContext2D.prototype.stroke;
CanvasRenderingContext2D.prototype._fillText = CanvasRenderingContext2D.prototype._fillText || CanvasRenderingContext2D.prototype.fillText
CanvasRenderingContext2D.prototype._strokeText = CanvasRenderingContext2D.prototype._strokeText || CanvasRenderingContext2D.prototype.strokeText
 
CanvasRenderingContext2D.prototype.stroke = function() {
    this.shadowBlur = this.lineWidth / 2;// remove this line to have no blur
    this.shadowColor = this.strokeStyle; // remove this line to have no blur
//tanks in genral
    this.fillStyle = "#c7370f "
    this._stroke(...arguments)
    this.shadowBlur = 0; // remove this line for no blur
};
CanvasRenderingContext2D.prototype.fillText = function() {
    this._fillText(...arguments)
    this.shadowBlur = 0;
};
 //names exc...
CanvasRenderingContext2D.prototype.strokeText = function() {
    this.strokeStyle = "#03fcfc"
    this._strokeText(...arguments);
};