Skip to content

Instantly share code, notes, and snippets.

View sienori's full-sized avatar

sienori

  • Tokyo, Japan
View GitHub Profile
/* Copyright (c) 2020 Sienori
* Released under the MIT license.
* see https://opensource.org/licenses/MIT */
// ==UserScript==
// @name showCardsForTweetDeck
// @version 1
// @grant none
// @match https://tweetdeck.twitter.com/
// ==/UserScript==
@sienori
sienori / MonitoringLocation.js
Last active May 3, 2018 16:21
Library that monitors changes in URL parameters
/* Copyright (c) 2018 Sienori All rights reserved.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
class MonitoringLocation {
constructor(intervalMS = 100) {
this.prevHref = location.href;
this.intervalMS = intervalMS;
}