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