30
|
1 // ==UserScript==
|
|
2 // @name Medium popup disable
|
|
3 // @namespace https://myconan.net
|
|
4 // @version 1.0.0
|
|
5 // @description Strip out Medium's highlighting popup "feature"
|
|
6 // @author nanaya
|
|
7 // @match https://medium.com/*
|
|
8 // @match https://m.signalvnoise.com/*
|
|
9 // @grant none
|
|
10 // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanaya1/TK64/tip/files/medium-popup-disable.user.js
|
|
11 // ==/UserScript==
|
|
12
|
|
13 ;(function() {
|
|
14 'use strict';
|
|
15 var popups = document.getElementsByClassName("highlightMenu");
|
|
16 var killPopup = function(popup) {
|
|
17 popup.style.display = 'none';
|
|
18 };
|
|
19 var killPopups = function() {
|
|
20 Array.prototype.forEach.call(popups, killPopup);
|
|
21 };
|
|
22 document.addEventListener('click', killPopups);
|
|
23 }).call(); |