Skip to content

Instantly share code, notes, and snippets.

@Illyism
Illyism / gist:3552285
Created August 31, 2012 12:47
Folder Creation On Tabs.
var bStrm = new ActiveXObject("Adodb.Stream");
var wShell = new ActiveXObject("Wscript.Shell");
var fso = new ActiveXObject("Scripting.FileSystemObject");
var ForReading = 1, ForWriting = 2, ForAppending = 8;
var TristateUseDefault = -2, TristateTrue = -1, TristateFalse = 0;
var debug = false;
if (typeof XMLHttpRequest == "undefined")
XMLHttpRequest = function () {
try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); }
catch (e) {}
try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); }
catch (e) {}
try { return new ActiveXObject("Msxml2.XMLHTTP"); }
catch (e) {}
//Microsoft.XMLHTTP points to Msxml2.XMLHTTP.3.0 and is redundant
throw new Error("This browser does not support XMLHttpRequest.");
@Illyism
Illyism / wikiHow userscript
Created August 3, 2010 11:40
An userscript/greasemonkey script for wikiHow
// ==UserScript==
// @name wikiHow Plus
// @namespace http://www.wikihow.com
// @description Does nifty stuff on wikiHow, like autowelcome.
// @include http://*wikihow.com/*
// @version 0.2
// ==/UserScript==
// Options:
// - Plus -
@Illyism
Illyism / PSD to HTML slicer
Created August 3, 2010 11:37
Creates a HTML file from Photoshop layers.
/*
Create HTML
Code: Ilias Ismanalijev
Arlo Rose
*/
var isCS2 = (app.version.split(".")[0] > 8) ? true : false;
var nonNormalAlert = false;
function makeDialog(htmlInfo)
{