Created
March 22, 2016 16:15
-
-
Save rummik/99f6008c62a41c30b57b to your computer and use it in GitHub Desktop.
BTSync upgrade dismisser - Automatically dismisses BTSync's update notification in 1.4.111
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 BTSync upgrade dismisser | |
// @namespace http://www.rummik.com/ | |
// @version 1.0 | |
// @description Automatically dismisses BTSync's update notification in 1.4.111 | |
// @author rummik | |
// @match http://localhost:9999/gui/ | |
// @grant WTFPL / CC0 / Public Domain | |
// ==/UserScript== | |
/* jshint -W097 */ | |
'use strict'; | |
!function dismiss() { | |
let button = document.querySelector('.updateTaskNotification .dismiss.btn'); | |
button ? button.click() : setTimeout(dismiss, 1); | |
}(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment