This file contains hidden or 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
function filteredNewNodeCallback(root, selector, callback) { | |
var obs, i; | |
if (!root || !selector || !callback) { | |
return; | |
} | |
function filterAndCallback(node) { | |
var matches = [], childMatches; | |
if (node.matches(selector)){ |
This file contains hidden or 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
function formatTime(seconds) { | |
var fTime = []; | |
fTime[0] = Math.floor(seconds / 86400); | |
seconds %= 86400; | |
fTime[1] = Math.floor(seconds / 3600); | |
seconds %= 3600; | |
fTime[2] = Math.floor(seconds / 60); | |
seconds %= 60; | |
fTime[3] = seconds; | |
for (var i = 0; i < 4; i++) { |
This file contains hidden or 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
javascript: (function () { | |
var newTweets = 0, | |
modes = []; | |
function addMode(modeName) { | |
var title = 'Tweets ['; | |
modes.push(modeName); | |
title += modes.join(', ') + ']'; | |
$('#content-main-heading').text(title); | |
} |
This file contains hidden or 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
javascript:(function(){ | |
var jpReg = /[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g, modes = []; | |
function addMode(modeName) { | |
var title = 'Tweets ['; | |
modes.push(modeName); | |
title += modes.join(', ') + ']'; | |
$('#content-main-heading').text(title); | |
} | |
if (!window.addMode) { | |
window.addMode = addMode; |
This file contains hidden or 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
;(function(){ | |
'use strict'; | |
if (!window.createBatchStyler) { | |
window.createBatchStyler = createBatchStyler; | |
} | |
function createBatchStyler() { | |
var styles = {}; | |
function createStyleText(styles) { |
This file contains hidden or 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 Auto-Meiryo | |
// @namespace http://use.i.E.your.homepage/ | |
// @version 0.1 | |
// @description enter something useful | |
// @copyright 2012+, You | |
// ==/UserScript== | |
(function() { | |
var always = 'alwaysHost'; |
This file contains hidden or 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
(function() { | |
var dialog = document.createElement('div'), | |
shadow = dialog.createShadowRoot(), | |
style = document.createElement('style'), | |
paragraph = document.createElement('p'); | |
dialog.style.width = '500px'; | |
dialog.style.height = '500px'; | |
dialog.style.border = '3px solid gray'; | |
dialog.style.position = 'fixed'; |
This file contains hidden or 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 Wanikani Override | |
// @namespace wkoverride | |
// @description Adds an "Ignore Answer" button during reviews that makes WaniKani ignore the current answer (useful if, for example, you made a stupid typo) | |
// @include http://www.wanikani.com/review/session* | |
// @include https://www.wanikani.com/review/session* | |
// @version 1.1.3 | |
// @author Rui Pinheiro | |
// @grant GM_addStyle | |
// @grant unsafeWindow |
This file contains hidden or 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 WaniKani Real Numbers | |
// @namespace penx.scripts | |
// @description Replaces 42+ with the real number using WaniKani API v1.0 | |
// @include https://www.wanikani.com/* | |
// @version 2.8 | |
// @run-at document-end | |
// @grant GM_registerMenuCommand | |
// @grant GM_setValue | |
// @grant GM_getValue |
This file contains hidden or 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 Better Hangouts | |
// @namespace Jake Harrington | |
// @description Makes Hangouts better | |
// @include https://plus.google.com/*/hangouts | |
// @version 1.0 | |
// @run-at document-end | |
// @require https://code.jquery.com/jquery-1.11.2.min.js | |
// @require https://code.jquery.com/ui/1.11.3/jquery-ui.min.js | |
// @downloadURL https://gist.github.com/dbs727/e4def722691762c4c910/raw/2bf1936175459f6b6c0fefbe222f34d298234b82/betterhangouts.user.js |
OlderNewer