This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SessionVar = function(key, initialValue){ | |
if (! (this instanceof SessionVar)) | |
// called without `new` | |
return new SessionVar(key, initialValue); | |
this.key = key; | |
// check if already defined | |
if( SessionVar.keys.indexOf(key) !== -1 ) | |
console.log('SessionVar(' + key + ') defined twice!'); | |
SessionVar.keys.push(key); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name New Userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://workflowy.com/* | |
// @grant none | |
// ==/UserScript== | |
/* jshint -W097 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
i like it | |
</body> | |
</html> |