Skip to content

Instantly share code, notes, and snippets.

View edg2s's full-sized avatar

Ed S edg2s

View GitHub Profile
new mw.Api().get( {
action: 'query',
list: 'recentchanges',
rcuser: mw.user.getName(),
rcprop: 'comment',
rctype: 'edit',
rclimit: 50
} ).then( function ( response ) {
var comments, usedComments = {},
changes = ve.getProp( response, 'query', 'recentchanges' ) || [];
/*!
* VisualEditor UserInterface my pattern transfer handler class.
*
* @copyright 2011-2015 VisualEditor Team and others; see http://ve.mit-license.org
*/
/**
* My pattern transfer handler.
*
* @class
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@edg2s
edg2s / sfdata.js
Created May 30, 2014 09:23
SF data
This file has been truncated, but you can view the full file.
window._sfdata = "<!DOCTYPE html>\n" +
"<html prefix=\"dc: http://purl.org/dc/terms/ mw: http://mediawiki.org/rdf/\" about=\"http://en.wikipedia.org/wiki/Special:Redirect/revision/610740247\">" +
"<head prefix=\"mwr: http://en.wikipedia.org/wiki/Special:Redirect/\">" +
"<meta property=\"mw:articleNamespace\" content=\"0\"/>" +
"<link rel=\"dc:replaces\" resource=\"mwr:revision/610724991\"/>" +
"<meta property=\"dc:modified\" content=\"2014-05-30T04:06:58.000Z\"/>" +
"<meta about=\"mwr:user/13135141\" property=\"dc:title\" content=\"Brycehughes\"/>" +
"<link rel=\"dc:contributor\" resource=\"mwr:user/13135141\"/>" +
"<meta property=\"mw:revisionSHA1\" content=\"bf53bfeaf6478b53c21a98ff2df907487661f018\"/>" +
"<meta property=\"dc:description\" content=\"Reverted 1 edit by [[Special:Contributions/2602:304:cdc3:9a90:d95e:a488:c1fa:60eb|2602:304:cdc3:9a90:d95e:a488:c1fa:60eb]] ([[User talk:2602:304:cdc3:9a90:d95e:a488:c1fa:60eb|talk]]): Why?\"/>" +
/**
* Focusable element.
*
* @abstract
* @class
*
* @constructor
*/
OO.ui.FocusableElement = function OoUiFocusableElement() {
// add tabindex