This chime, as an iphone ring tone file.
This file contains 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
class SRT { | |
constructor(s) { this.setSubs(typeof s === 'string' ? SRT.decode(s) : s); } | |
toString() { return SRT.encode(this.subs); } | |
timeShift(dt) { | |
return new SRT(this.subs.map(s => Object.assign({}, s, {t: s.t + dt}))); | |
} | |
getSubs() { return this.subs.map(o => Object.assign({}, o)); } | |
setSubs(subs) { this.subs = subs; return this; } |
This file contains 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
const scrape = (scraper) => { | |
let spec = 'dom' in scraper ? scraper : { dom: scraper }; | |
on(spec).then((scraped) => { | |
console.info('on.dom scraped:', {scraper, scraped}); | |
exportToPage({scraper, scraped, on}); | |
evalInPage('on'); | |
}); | |
}; | |
const exportToPage = (obj) => { |
This file contains 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(deferFunctions) { | |
for (var setter in deferFunctions) (function(setter, clearer) { | |
var ids = []; | |
var startFn = window[setter]; | |
var clearFn = window[clearer]; | |
function clear(id) { | |
var index = ids.indexOf(id); | |
if (index !== -1) ids.splice(index, 1); | |
return clearFn.apply(window, arguments); |
This file contains 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
// alert.js | |
const stripes = document.createElement('div'); | |
stripes.style.cssText = ` | |
height: 20px; | |
width: 100%; | |
position: fixed; | |
z-index: 99999; | |
opacity: 0.7; | |
pointer-events: none; |
This file contains 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 Clear Facebook Notifications Once | |
// @description If you have multiple Facebook tabs open | |
// @match https://*.facebook.com/* | |
// @namespace https://github.com/johan/ | |
// ==/UserScript== | |
const onStorageChange, onNotificationClick; | |
window.addEventListener('storage', onStorageChange = (e) => { |
This file contains 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
license: gpl-3.0 |
Facebook US' recognized holidays are:
- New Year’s Day
- Martin Luther King Day
- Presidents Day
- Memorial Day
- Independence Day
- Labor Day
- Thanksgiving Day
- day after Thanksgiving
This file contains 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(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.JSXTransformer=f()}})(function(){var define,module,exports;return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(_dereq_,module,exports){"use strict";var ReactTools=_dereq_("../main");var inlineSourceMap=_dereq_("./inline-source-map");var headEl;var dummyAnchor;var inlineScriptCount=0;var supportsAccessors=Obj |
This file contains 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
<!doctype html> | |
<html><head> | |
<meta charset="utf-8"> | |
<title>iPhone 6S X-ray</title> | |
<style> | |
#xray { | |
top: -4px; | |
left: -5px; | |
position: absolute; | |
mouse-events: none; |