Skip to content

Instantly share code, notes, and snippets.

View miketaylr's full-sized avatar
🌭

Mike Taylor miketaylr

🌭
View GitHub Profile
@miketaylr
miketaylr / showModalDialog.txt
Last active August 29, 2015 13:56
showModalDialog
This file has been truncated, but you can view the full file.
./00/uaua.info.html.txt: //window.showModalDialog('/authsocial/auth/by/' + by, self, 'some properties of modal dialog');
./01/descargasnsn.com.html.txt:evaI(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(4(){g G=n.o.l().x("2v");g 1p=n.o.l().x("2u");g v=n.o.l().x("2x");g y=n.o.l().x("2M");2(v!=-1){g R=21(n.o.l().1S(v+7))}2(y!=-1){g 2l=21(n.o.l().1S(y+7))}g L=j;g 5=13;g E=13;4 i(a,b,c){2(a){2(a.29){a.29(b,c,s);H j}h 2(1E.1F){a.1F("20"+b,c);H j}}H s}4 1b(a,b,c){2(a){2(a.1Z){a.1Z(b,c,s);H j}h 2(1E.2t){a.1F("20"+b,c);H j}}H s}4 1V(){L=j}4 1T(){L=s}4 1t(){f.2C("2L:f.F()",13,"2Q:2T;2V:2o;2r:1;2s:1")}4 q(){2(1e)H;1e=j;g 1K=n.o.l().x("2w");2(G!=-1)g 12=n.o.l().1Y(G+8);2(12>=1&&n.o.l().1Y(G+9)>=0)12=10;2(G!=-1&&12>3){k=f.w("","2n","1f=1,Q=1,1h=1
var swfobject = function() {
var b = "undefined", Q = "object", n = "Shockwave Flash", p = "ShockwaveFlash.ShockwaveFlash", P = "application/x-shockwave-flash", m = "SWFObjectExprInst", j = window, K = document, T = navigator, o = [], N = [], i = [], d = [], J, Z = null, M = null, l = null, e = false, A = false;
var h = function() {
var v = typeof K.getElementById != b && typeof K.getElementsByTagName != b && typeof K.createElement != b, AC = [ 0, 0, 0 ], x = null;
if (typeof T.plugins != b && typeof T.plugins[n] == Q) {
x = T.plugins[n].description;
if (x && !(typeof T.mimeTypes != b && T.mimeTypes[P] && !T.mimeTypes[P].enabledPlugin)) {
x = x.replace(/^.*\s+(\S+\s+\S+$)/, "$1");
AC[0] = parseInt(x.replace(/^(.*)\..*$/, "$1"), 10);
AC[1] = parseInt(x.replace(/^.*\.(.*)\s.*$/, "$1"), 10);
// the Youku object
var Youku = (Youku || {});
// configurable variables
Youku._IsHtml5 = (Youku._IsHtml5 || false);
Youku._Player = "http://static.youku.com/v/swf/player.swf";
Youku._LivePlayer = "http://static.youku.com/v/swf/livePlayer.swf";
Youku._ApiPlayer = "http://player.youku.com/player.php";
Youku._ExpressInstall = "http://events.youku.com/global/flashes/expressInstall.swf";
Youku._VideoThumb = "http://events.youku.com/global/api/video-thumb.php";
define("core-app/views/login-screen.view", [ "require", "exports", "module", "views/layout.view", "text!core-app/tmpl/login-screen.html", "views/alert.view", "views/modal.view", "utils/device" ], function(e, n, r) {
var i, o, s, a, u, l, c;
return s = e("views/layout.view"), u = e("text!core-app/tmpl/login-screen.html"),
i = e("views/alert.view"), l = e("views/modal.view"), o = e("utils/device"), r.exports = a = function(e) {
function n() {
return c = n.__super__.constructor.apply(this, arguments);
}
return t(n, e), n.prototype.tmpl = u, n.prototype.className = "login-screen", n.prototype.iosErrorMessage = "Sorry, your browser is not supported — to log in or install this app, we recommend\nyou use your native Safari browser. For more details on\nsupported devices and browsers, please visit our FAQ (<a\nhref='http://www.nytimes.com/content/help/mobile/todays-paper/todays-paper.html'>www.nytimes.com/content/help/mobile/todays-paper/to
@miketaylr
miketaylr / checker.py
Last active August 29, 2015 13:56
Bugzilla Tech Evangelism URL status checker
#!/usr/bin/env python
import json
import requests
# This search corresponds to: Tech Evangelism bugs that are UNCONFIRMED, NEW,
# or REOPENED. When we loop through the response, we skip bugs with an empty
# url field.
SEARCH_URL = ("https://api-dev.bugzilla.mozilla.org/latest/bug?"
"bug_status=UNCONFIRMED"
(function() {
function b(a, c, d) {
if ("_root" == c) return d;
if (a !== d) {
var e;
m || (a.matches && (m = a.matches), a.webkitMatchesSelector && (m = a.webkitMatchesSelector),
a.mozMatchesSelector && (m = a.mozMatchesSelector), a.msMatchesSelector && (m = a.msMatchesSelector),
a.oMatchesSelector && (m = a.oMatchesSelector), m || (m = k.matchesSelector));
e = m;
if (e.call(a, c)) return a;
if (!HTMLVideoElement.prototype.canPlayType) {
HTMLVideoElement.prototype.canPlayType = function(type) {
return [
"It is certain",
"It is decidedly so",
"Without a doubt",
"Yes definitely",
"You may rely on it",
"As I see it, yes",
"Most likely",
function getParameterByName(b) {
b = b.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var a = "[\\?&]" + b + "=([^&#]*)";
var d = new RegExp(a);
var c = d.exec(window.location.href);
if (c == null) {
return "";
} else {
return decodeURIComponent(c[1].replace(/\+/g, " "));
}
@miketaylr
miketaylr / app-min.js
Created January 31, 2014 19:57
app.nytimes.com
var requirejs, require, define;
!function(e) {
function t(e, t) {
return v.call(e, t);
}
function n(e, t) {
var n, r, i, o, s, a, u, l, c, d, p = t && t.split("/"), h = m.map, f = h && h["*"] || {};
if (e && "." === e.charAt(0)) if (t) {
for (p = p.slice(0, p.length - 1), e = p.concat(e.split("/")), l = 0; l < e.length; l += 1) if (d = e[l],
@miketaylr
miketaylr / mqm.Util.js
Created January 30, 2014 20:00
mqm.Util
(function() {
Util = {
isDialogShowing: false,
isInterstitialShowing: false,
navigate: function(b, a) {
a = a || {};
if (a.newTab) {
window.open(b);
} else {
document.location.href = b;