C2皮膚[Jstris]也支持replay[油猴腳本]俄羅斯方塊
圖以下腳本開始,本文未完待續(xù)


//==UserScript==
//@name? ? ? ? ?C2 Skin & replay Skin
//@include? ? ? *jstris*
//@grant? ? ? ? none
//==/UserScript==
if(window.WebGLView!=undefined){
WebGLView['prototype']['initGLContext'] = function(cmain){
cmain['gl']=WebGLUtils['getWebGLcontext'](cmain['elem']);
cmain['program']=WebGLUtils['createProgram'](cmain['gl'],this['shaders']);
cmain['m4']=new Float32Array(16);
var gl=cmain['gl'],
cprogram=cmain['program'];
gl['useProgram'](cprogram);
cmain['positionLocation']=gl['getAttribLocation'](cprogram,'a_position');
cmain['texcoordLocation']=gl['getAttribLocation'](cprogram,'a_texcoord');
cmain['matrixLocation']=gl['getUniformLocation'](cprogram,'u_matrix');
cmain['textureMatrixLocation']=gl['getUniformLocation'](cprogram,'u_textureMatrix');
cmain['globalAlpha']=gl['getUniformLocation'](cprogram,'globalAlpha');
gl['uniform1f'](cmain['globalAlpha'],1);
cmain['positionBuffer']=gl['createBuffer']();
gl['bindBuffer'](gl.ARRAY_BUFFER,cmain['positionBuffer']);
var push1=[0,0,0,1,1,0,1,0,0,1,1,1];
gl['bufferData'](gl.ARRAY_BUFFER,new Float32Array(push1),gl.STATIC_DRAW);
cmain['texcoordBuffer']=gl['createBuffer']();
gl['bindBuffer'](gl.ARRAY_BUFFER,cmain['texcoordBuffer']);
var push2=[0,0,0,1,1,0,1,0,0,1,1,1];
gl['bufferData'](gl.ARRAY_BUFFER,new Float32Array(push2),gl.STATIC_DRAW);
cmain['textureInfos']=[];
cmain['boundBuffers']=false;
cmain['boundTexture']=null;
gl.enable(gl.BLEND);
gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA);
this['initEmptyTexture'](cmain,0);
this['initEmptyTexture'](cmain,1);
this['initRedbarTexture'](cmain,2)};}
(function(){
window.addEventListener('load',function(){
/*以下皮膚可套用也可修改自制Community Skins:
https://i.imgur.com/XIUXVdQ.png - size 32, Cultris 2 Guideline Skin ported by Lexitik
https://i.imgur.com/5GQtvNq.png - size 32, Cultris 2 Default Skin ported by Lexitik
https://i.imgur.com/UyyJ5wA.png - size 32, Terraria GemSparks Skin ported by Lexitik
https://i.imgur.com/qfNqrer.png - size 32,
https://imgur.com/I2bQQmx.png - size 72, TF Hearts ported by freyhoe
https://imgur.com/AXmkUf5.png - size 32, Original by thickBut
https://i.imgur.com/SXofYhh.png - size 32, Original reskin by sinewave
https://imgur.com/63GaAvd.png - size 24, TF Classic port by thickBut
https://imgur.com/gIvjYdH.png - size 24, TF Chocolate ported by Lythine
https://imgur.com/k00Iirh.png - size 24, TF Fusion ported by Lythine*/
const skinURL="https://i.imgur.com/XIUXVdQ.png"
const skinSize = 32
// use WebGL option on jstris by?by freyhoe
/*
