-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathremover.js
33 lines (31 loc) · 885 Bytes
/
remover.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
var currentLocation = window.location;
var selector_name = '';
switch (currentLocation.hostname) {
case "www.aol.com":
case "aol.com":
selector_name = '.article-show-more';
break;
case "m.huffpost.com":
case "www.huffpost.com":
case "www.huffingtonpost.co.uk":
case "www.huffingtonpost.com":
case "huffpost.com":
case "huffingtonpost.co.uk":
case "huffingtonpost.com":
selector_name = '.read-more-link';
break;
case "www.inquisitr.com":
selector_name = '.inq-article-readmore--btn';
break;
case "www.qz.com":
case "qz.com":
selector_name = '.read-full-story-button';
break;
case "www.thejournal.ie":
selector_name = '#readmore';
break;
}
if (selector_name) {
var read_more = document.querySelector(selector_name);
read_more.click();
}