-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcleanread.js
More file actions
86 lines (69 loc) · 2.14 KB
/
cleanread.js
File metadata and controls
86 lines (69 loc) · 2.14 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
// alert(location.location.host())
var CleanRead = {};
CleanRead["www.infoq.com"] = function($){
$("#rightbar").remove();
$("#sidebar").remove();
$("#columns_container").css({padding: "0"});
}
CleanRead["www.zreading.cn"] = function($){
$("#header").remove();
$("#sidebar").remove();
$("#menuBox").remove();
$("#content").css({width: "auto"});
$(".entry").css({width: "auto"});
}
CleanRead["*.cyzone.cn"] = function($){
$($(".Main_Content").get(0)).remove();
$(".right").remove();
$("div", $(".left").css({width: "935px"})).css({width: "935px"});
$(".content div").css({width: "910px"});
}
CleanRead["speckyboy.com"] = function($){
$("#sidebar").remove();
$("#contentmiddle").css({width: "auto"});
}
CleanRead["architects.dzone.com"] = function($){
$("#header").remove();
$(".sidebar").remove();
$("#squeeze").css({margin: "0"});
}
CleanRead["www.railsinside.com"] = function($){
$("#sidebar").remove();
$("#content").css({width: "auto"});
}
CleanRead["*.pcauto.com.cn"] = function($){
$(".mainNav").remove();
$("#header").remove();
$(".ivy990x90").remove();
$(".guide").remove();
$(".subMark").remove();
$("#sideMain").remove();
$("#artExt").remove();
$("#sideExt").remove();
$("#footer").remove();
$(".left650").css({width: "950px"});
$("#artText").css({width: "auto"});
}
CleanRead["www.techweb.com.cn"] = function($){
$(".partA").remove();
$(".xxbox_news").remove();
$("#right").remove();
$("#main").css({background: "transparent"});
$("#left div").css({width: "950px", background: "transparent"});
}
CleanRead["news.iresearch.cn"] = function($){
$(".header").remove();
$(".c_160").remove();
$(".m_x_0").remove();
$(".c_800").css({width: "auto"});
$(".b_caption").css({width: "auto"});
$(".b_content").css({width: "auto", background: "transparent"});
}
CleanRead["sheddingbikes.com"] = function($){
$("#sidebar").remove();
$("#feed-entry").css({width: "900px"});
}
CleanRead.broad_funcname = location.host.replace(/^\w+\./gm, "*.");
CleanRead.exact_funcname = location.host;
CleanRead.func = CleanRead[CleanRead.exact_funcname] || CleanRead[CleanRead.broad_funcname];
if(CleanRead.func) CleanRead.func(jQuery);