-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathjust998.user.js
64 lines (58 loc) · 1.84 KB
/
just998.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// ==UserScript==
// @name Just998
// @version 0.8
// @author ytzong
// @description Just998
// @include http://*just998.com/*
// @include https://*just998.com/*
// @copyright 2017+
// @run-at document-end
// @grant GM_addStyle
// ==/UserScript==
GM_addStyle('.container{max-width:888px !important}#footer, .like_tip, .xianbao-tip, .declare, .swiper-top, .panel-footer, .side-qr, .hb_pop, .hb_pop_cover,.col-sm-3, #jGrowl, .swiper-slide{display:none !important}');
var pathname = location.pathname;
if (pathname.includes('xianbao/') && pathname.includes('.html')) {
GM_addStyle('.youhui-item, blockquote{display:none!important}.bottombar .favorite{top:0!important;left:auto!important;right:0!important}');
$('.panel').each(function(){
if ($(this).find('h1').length > 0) {
}
else $(this).hide();
})
$('.table-responsive').parent().hide()
}
if (pathname == '/') {
$('.xianbao-item.panel').prev().hide();
$('.panel-heading').each(function(i){
$(this).parent().hide();
});
}
$('.col-sm-9').removeClass('col-sm-9');
$('a[href="/xianbao/re"]').parent().parent().hide();
$('.pp-10').each(function(i){
var text = $(this).text();
if (text.includes('天猫双11预售会场导航')) {
$(this).parent().hide();
}
if (text.includes('完美支持手机端访问')) {
$(this).hide();
}
//$(this).hide().next().hide();
});
$('.content a').each(function(i){
var real = $(this).attr('onclick');
var reals = real.split(',');
real = reals[reals.length - 1];
reals = real.split("'");
var href = '';
if (reals.length > 2) {
href = reals[1];
}
else {
var text = $(this).text();
if (text.includes('http') && !text.includes('...')) {
href = text;
}
}
$(this).attr('href', href);
$(this).removeAttr('onclick');
});