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
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
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
function filteredNewNodeCallback(root, selector, callback) { | |
var obs, i; | |
if (!root || !selector || !callback) { | |
return; | |
} | |
function filterAndCallback(node) { | |
var matches = [], childMatches; | |
if (node.matches(selector)){ |
NewerOlder