-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathWebGLazy.userscript.js
More file actions
29 lines (27 loc) · 866 Bytes
/
WebGLazy.userscript.js
File metadata and controls
29 lines (27 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// ==UserScript==
// @name WebGLazy
// @namespace https://seans.site/
// @version 1.1
// @description Run `new WebGLazy()`
// @author Sean S. LeBlanc
// @match *://*/*
// @run-at document-end
// @grant GM_registerMenuCommand
// @require https://raw.githubusercontent.com/seleb/WebGLazy/master/dist/WebGLazy.min.js
// ==/UserScript==
(function() {
'use strict';
GM_registerMenuCommand('WebGLazy on '+window.location, function(){
try{
new WebGLazy({
sources:['canvas'],
allowDownscaling:true,
disableFeedbackTexture:true
});
document.body.webkitRequestFullscreen();
}catch(err){
console.error('WebGLazy failed!',err);
alert('WebGLazy failed!\n'+err);
}
}, undefined);
})();