-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathShowMoreShijuResultShicimingju.user.js
41 lines (38 loc) · 1.32 KB
/
ShowMoreShijuResultShicimingju.user.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
34
35
36
37
38
39
40
41
// ==UserScript==
// @id zunsthy-show-more-shiju-result-shicimingju
// @name Show More ShiJu Result (shicimingju.com)
// @icon http://www.shicimingju.com/favicon.ico
// @category utils
// @version 1.0.0
// @updateURL https://raw.githubusercontent.com/zunsthy/userscripts/master/ShowMoreShijuResultShicimingju.meta.js
// @downloadURL https://raw.githubusercontent.com/zunsthy/userscripts/master/ShowMoreShijuResultShicimingju.user.js
// @author ZunSThy <zunsthy@gmail.com>
// @description default unfold 'show more result' on shiju result page in shicimiju.com
// @namespace https://github.com/zunsthy
// @match http://www.shicimingju.com/chaxun/shiju/*
// @include http://www.shicimingju.com/chaxun/shiju/*
// @grant none
// ==/UserScript==
(() => {
Array.prototype.forEach.call(
document.querySelectorAll('.sub-item.sub-item-hide'),
(el) => {
el.classList.remove('sub-item-hide');
el.classList.add('sub-item-show');
}
);
Array.prototype.forEach.call(
document.querySelectorAll('.more-chaxun-result'),
(el) => {
el.href = '#';
el.target = '';
el.onclick = ev => ev.preventDefault();
}
);
Array.prototype.forEach.call(
document.querySelectorAll('.ddd-div'),
(el) => {
el.style.display = 'none';
}
);
})();