Skip to content

Instantly share code, notes, and snippets.

View mikhailbot's full-sized avatar
🐺

Mikhail mikhailbot

🐺
View GitHub Profile
@mikhailbot
mikhailbot / index.js
Created March 20, 2017 12:37
AWS Lambda Unfluff Test
'use strict';
const unfluff = require('unfluff');
const fetch = require('node-fetch');
const TEST_URL = 'http://www.theverge.com/2017/3/17/14957460/the-legend-of-zelda-breath-of-the-wild-nintendo-switch-future-games';
const extract = (html) => {
console.log('Got HTML');
const results = unfluff(html);
@mikhailbot
mikhailbot / script.js
Created February 1, 2017 19:56
Remove "Dining" option for residence tour
$(document).ready(function () {
$('iframe').ready(function () {
var interval = setInterval(function () {
var menuItem = $('iframe').contents().find('.kolorMenuItem')[3];
// Remove dining option if present and clear interval
if (menuItem) {
menuItem.remove();