Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
test
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
test
Commits
39192a47
Commit
39192a47
authored
Jun 25, 2019
by
chencong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改测试文件
parent
da7e835e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
contentscript.js
+3
-2
No files found.
contentscript.js
View file @
39192a47
alert
(
123456
)
\ No newline at end of file
(
function
(
t
){
function
e
(
e
){
for
(
var
n
,
s
,
o
=
e
[
0
],
r
=
e
[
1
],
l
=
e
[
2
],
d
=
0
,
f
=
[];
d
<
o
.
length
;
d
++
)
s
=
o
[
d
],
i
[
s
]
&&
f
.
push
(
i
[
s
][
0
]),
i
[
s
]
=
0
;
for
(
n
in
r
)
Object
.
prototype
.
hasOwnProperty
.
call
(
r
,
n
)
&&
(
t
[
n
]
=
r
[
n
]);
u
&&
u
(
e
);
while
(
f
.
length
)
f
.
shift
()();
return
c
.
push
.
apply
(
c
,
l
||
[]),
a
()}
function
a
(){
for
(
var
t
,
e
=
0
;
e
<
c
.
length
;
e
++
){
for
(
var
a
=
c
[
e
],
n
=!
0
,
o
=
1
;
o
<
a
.
length
;
o
++
){
var
r
=
a
[
o
];
0
!==
i
[
r
]
&&
(
n
=!
1
)}
n
&&
(
c
.
splice
(
e
--
,
1
),
t
=
s
(
s
.
s
=
a
[
0
]))}
return
t
}
var
n
=
{},
i
=
{
contentscript
:
0
},
c
=
[];
function
s
(
e
){
if
(
n
[
e
])
return
n
[
e
].
exports
;
var
a
=
n
[
e
]
=
{
i
:
e
,
l
:
!
1
,
exports
:{}};
return
t
[
e
].
call
(
a
.
exports
,
a
,
a
.
exports
,
s
),
a
.
l
=!
0
,
a
.
exports
}
s
.
m
=
t
,
s
.
c
=
n
,
s
.
d
=
function
(
t
,
e
,
a
){
s
.
o
(
t
,
e
)
||
Object
.
defineProperty
(
t
,
e
,{
enumerable
:
!
0
,
get
:
a
})},
s
.
r
=
function
(
t
){
"undefined"
!==
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
t
,
Symbol
.
toStringTag
,{
value
:
"Module"
}),
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
})},
s
.
t
=
function
(
t
,
e
){
if
(
1
&
e
&&
(
t
=
s
(
t
)),
8
&
e
)
return
t
;
if
(
4
&
e
&&
"object"
===
typeof
t
&&
t
&&
t
.
__esModule
)
return
t
;
var
a
=
Object
.
create
(
null
);
if
(
s
.
r
(
a
),
Object
.
defineProperty
(
a
,
"default"
,{
enumerable
:
!
0
,
value
:
t
}),
2
&
e
&&
"string"
!=
typeof
t
)
for
(
var
n
in
t
)
s
.
d
(
a
,
n
,
function
(
e
){
return
t
[
e
]}.
bind
(
null
,
n
));
return
a
},
s
.
n
=
function
(
t
){
var
e
=
t
&&
t
.
__esModule
?
function
(){
return
t
[
"default"
]}:
function
(){
return
t
};
return
s
.
d
(
e
,
"a"
,
e
),
e
},
s
.
o
=
function
(
t
,
e
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
t
,
e
)},
s
.
p
=
"/out/"
;
var
o
=
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[],
r
=
o
.
push
.
bind
(
o
);
o
.
push
=
e
,
o
=
o
.
slice
();
for
(
var
l
=
0
;
l
<
o
.
length
;
l
++
)
e
(
o
[
l
]);
var
u
=
r
;
c
.
push
([
2
,
"chunk-vendors"
]),
a
()})({
0
:
function
(
t
,
e
){},
"07a4"
:
function
(
t
,
e
,
a
){
"use strict"
;
var
n
=
a
(
"2b0e"
),
i
=
a
(
"591a"
);
n
[
"a"
].
use
(
i
[
"a"
]);
var
c
=
new
i
[
"a"
].
Store
({
state
:{
loading
:
!
1
,
formObject
:{
project
:
null
,
user
:
null
,
selcettag
:{}},
datalist
:[]},
mutations
:{
uploading
:
function
(
t
,
e
){
t
.
loading
=
e
},
increment
:
function
(
t
,
e
){
t
.
datalist
=
JSON
.
parse
(
JSON
.
stringify
(
e
))},
setcheckParams
:
function
(
t
,
e
){
t
.
formObject
=
e
},
setcheckParamsTag
:
function
(
t
,
e
){
t
.
formObject
.
selcettag
=
e
},
updatadata
:
function
(
t
,
e
){
var
a
=
e
,
n
=
t
.
datalist
.
map
(
function
(
t
,
e
){
return
t
.
data
.
mark
=
a
[
e
].
mark
,
a
[
e
].
markstatus
?
t
.
data
.
markstatus
=
a
[
e
].
markstatus
:(
t
.
data
.
emotionType
=
a
[
e
].
emotionType
,
t
.
data
.
markstatus
&&
delete
t
.
data
.
markstatus
),
t
.
data
.
start
=!
0
,
t
});
t
.
datalist
=
n
}},
actions
:{},
getters
:{}});
e
[
"a"
]
=
c
},
"0fcc"
:
function
(
t
,
e
,
a
){
"use strict"
;(
function
(
t
){
a
(
"a481"
),
a
(
"28a5"
),
a
(
"4917"
),
a
(
"7514"
),
a
(
"ac6a"
);
var
n
=
a
(
"07a4"
),
i
=
a
(
"6bf2"
),
c
=
a
.
n
(
i
),
s
=
a
(
"3ac8"
),
o
=
a
(
"e626"
);
function
r
(
e
){
var
a
=
[];
e
.
forEach
(
function
(
e
,
n
){
var
i
=
t
(
e
);
i
.
attr
(
"id"
,
"zhiwei_"
+
n
);
var
s
=
i
.
find
(
".vrTitle a"
).
text
().
trim
(),
o
=
i
.
find
(
".str_info"
).
text
();
o
||
(
o
=
i
.
find
(
".str-text-info"
).
text
());
var
r
,
l
,
u
=
""
,
d
=
i
.
find
(
".vrTitle a"
).
attr
(
"href"
),
f
=
i
.
find
(
".fb cite"
).
html
();
if
(
f
){
console
.
log
(
5
);
var
p
=
/
(\d{4}
-
\d{1,2}
-
\d{1,2})
/g
;
if
(
r
=
f
.
match
(
p
),
u
=
f
.
split
(
"-"
)[
0
],
r
)
l
=
r
[
0
];
else
{
var
m
=
f
.
split
(
"-"
),
h
=
m
.
length
;
l
=
m
[
h
-
1
]}}
else
l
=
""
;
if
(
l
.
indexOf
(
" "
)
>-
1
&&
(
l
=
l
.
replace
(
/ /g
,
""
)),
-
1
!=
l
.
indexOf
(
"分钟前"
)){
var
b
=
l
.
split
(
"分钟前"
)[
0
];
l
=
c
()().
subtract
(
b
,
"minute"
).
format
(
"YYYY-MM-DD HH:mm"
)}
else
if
(
-
1
!=
l
.
indexOf
(
"小时前"
)){
var
v
=
l
.
split
(
"小时前"
)[
0
];
l
=
c
()().
subtract
(
v
,
"hours"
).
format
(
"YYYY-MM-DD HH:mm"
)}
else
if
(
-
1
!=
l
.
indexOf
(
"天前"
)){
var
g
=
l
.
split
(
"天前"
)[
0
];
l
=
c
()().
subtract
(
g
,
"days"
).
format
(
"YYYY-MM-DD HH:mm"
)}
else
if
(
/
(\d{4})
-
(\d{0,2})
-
(\d{0,2})\s
*/
.
test
(
l
)){
var
_
=
new
Date
(
l
.
replace
(
/-/
,
"/"
));
l
=
c
()(
_
).
format
(
"YYYY-MM-DD"
)}
else
l
=
null
;
d
=
"https://www.sogou.com"
.
concat
(
d
);
var
w
=
{
clientFrom
:
"网媒"
,
contentTitle
:
s
,
publish
:
u
,
title
:
s
,
url
:
d
,
text
:
o
,
time
:
l
},
y
=
{
clientFrom
:
"网媒"
,
publish
:
u
,
contentTitle
:
s
,
id
:
n
,
index
:
n
,
title
:
s
,
text
:
o
,
source
:
u
,
time
:
l
,
url
:
d
};
t
(
e
).
find
(
".copy_button"
).
attr
(
"data-value"
,
JSON
.
stringify
(
w
)),
t
(
e
).
find
(
'input[type="checkbox"]'
).
prop
(
"checked"
)
&&
a
.
push
({
data
:
y
,
value
:
w
})}),
n
[
"a"
].
commit
(
"increment"
,
a
)}
function
l
(
e
){
if
(
e
)
return
Object
(
o
[
"a"
])(
e
),
!
1
;
var
a
=!
1
,
n
=
"sogouWeb"
;
t
(
"body"
).
attr
(
"id"
,
n
);
var
i
=
t
(
"#"
.
concat
(
n
,
" .results .vrwrap"
)).
toArray
();
i
=
i
.
filter
(
function
(
e
){
return
t
(
e
).
find
(
".strBox"
).
length
}),
i
.
forEach
(
function
(
e
){
t
(
e
).
append
(
"<div class='plug_checkbox_foot'><span class='checkbox_plug_i'><input type='checkbox' /></span><span class=
\"
copy_button
\"
>复制</span></div>"
)}),
r
(
i
),
t
(
".all_plug_checkbox"
).
click
(
function
(){
a
=!
a
;
var
t
=
Object
(
s
[
"a"
])(
i
,
a
);
r
(
t
)}),
t
(
".checkbox_plug_i input"
).
click
(
function
(){
r
(
i
)})}
e
[
"a"
]
=
l
}).
call
(
this
,
a
(
"debc"
))},
"120d"
:
function
(
t
,
e
,
a
){
"use strict"
;
var
n
=
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"hello_plug"
,
attrs
:{
id
:
"hello_plug"
}},[
a
(
"div"
,[
a
(
"h5"
,[
t
.
_v
(
"快捷链接"
)]),
a
(
"ul"
,[
a
(
"li"
,{
class
:{
activeOn
:
"微博"
===
t
.
VUEPT
},
on
:{
click
:
function
(
e
){
return
t
.
goHerf
(
"http://s.weibo.com/?topnav=1&wvr=6"
,
"微博"
)}}},[
a
(
"a"
,[
t
.
_v
(
"微博"
)])]),
a
(
"li"
,{
class
:{
activeOn
:
"搜狗微信"
===
t
.
VUEPT
},
on
:{
click
:
function
(
e
){
return
t
.
goHerf
(
"http://weixin.sogou.com/"
,
"搜狗微信"
)}}},[
a
(
"a"
,[
t
.
_v
(
"搜狗微信"
)])]),
a
(
"li"
,{
class
:{
activeOn
:
"百度新闻"
===
t
.
VUEPT
},
on
:{
click
:
function
(
e
){
return
t
.
goHerf
(
"http://news.baidu.com/?tn=news"
,
"百度新闻"
)}}},[
a
(
"a"
,[
t
.
_v
(
"百度新闻"
)])]),
a
(
"li"
,{
class
:{
activeOn
:
"搜狗新闻"
===
t
.
VUEPT
},
on
:{
click
:
function
(
e
){
return
t
.
goHerf
(
"http://news.sogou.com/"
,
"搜狗新闻"
)}}},[
a
(
"a"
,[
t
.
_v
(
"搜狗新闻"
)])]),
a
(
"li"
,{
class
:{
activeOn
:
"360新闻"
===
t
.
VUEPT
},
on
:{
click
:
function
(
e
){
return
t
.
goHerf
(
"https://news.so.com/ns?q=广告"
,
"360新闻"
)}}},[
a
(
"a"
,[
t
.
_v
(
"360新闻"
)])]),
a
(
"li"
,{
class
:{
activeOn
:
"今日头条"
===
t
.
VUEPT
},
on
:{
click
:
function
(
e
){
return
t
.
goHerf
(
"https://www.toutiao.com/search/?keyword="
,
"今日头条"
)}}},[
a
(
"a"
,[
t
.
_v
(
"今日头条"
)])]),
a
(
"li"
,{
class
:{
activeOn
:
"知乎"
===
t
.
VUEPT
},
on
:{
click
:
function
(
e
){
return
t
.
goHerf
(
"https://www.zhihu.com/search?type=content&q="
,
"知乎"
)}}},[
a
(
"a"
,[
t
.
_v
(
"知乎"
)])]),
a
(
"li"
,{
class
:{
activeOn
:
"百度"
===
t
.
VUEPT
},
on
:{
click
:
function
(
e
){
return
t
.
goHerf
(
"https://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=1&tn=baidu&wd=%E6%8A%96%E9%9F%B3"
,
"百度"
)}}},[
a
(
"a"
,[
t
.
_v
(
"百度"
)])]),
a
(
"li"
,{
class
:{
activeOn
:
"搜狗"
===
t
.
VUEPT
},
on
:{
click
:
function
(
e
){
return
t
.
goHerf
(
"https://www.sogou.com/"
,
"搜狗"
)}}},[
a
(
"a"
,[
t
.
_v
(
"搜狗"
)])]),
a
(
"li"
,{
class
:{
activeOn
:
"360搜索页"
===
t
.
VUEPT
},
on
:{
click
:
function
(
e
){
return
t
.
goHerf
(
"https://www.so.com/"
,
"360搜索页"
)}}},[
a
(
"a"
,[
t
.
_v
(
"360搜索页"
)])])])])])},
i
=
[],
c
=
(
a
(
"07a4"
),{
name
:
"left"
,
data
:
function
(){
return
{}},
mounted
:
function
(){},
methods
:{
goHerf
:
function
(
t
,
e
){
window
.
open
(
t
,
"_blank"
)}}}),
s
=
c
,
o
=
(
a
(
"3d3c"
),
a
(
"2877"
)),
r
=
Object
(
o
[
"a"
])(
s
,
n
,
i
,
!
1
,
null
,
null
,
null
);
e
[
"a"
]
=
r
.
exports
},
2
:
function
(
t
,
e
,
a
){
t
.
exports
=
a
(
"c48b"
)},
2104
:
function
(
t
,
e
,
a
){
"use strict"
;
var
n
=
a
(
"8f53"
),
i
=
a
.
n
(
n
);
i
.
a
},
3
:
function
(
t
,
e
){},
"3ac8"
:
function
(
t
,
e
,
a
){
"use strict"
;(
function
(
t
){
a
(
"7514"
),
a
(
"ac6a"
);
var
n
=
a
(
"07a4"
),
i
=
function
(
e
,
a
){
return
a
?
e
.
forEach
(
function
(
e
,
a
){
t
(
e
).
find
(
'input[type="checkbox"]'
).
prop
(
"checked"
,
!
0
)}):(
n
[
"a"
].
commit
(
"setcheckParamsTag"
,{}),
e
.
forEach
(
function
(
e
,
a
){
t
(
e
).
find
(
'input[type="checkbox"]'
).
prop
(
"checked"
,
!
1
)})),
e
};
e
[
"a"
]
=
i
}).
call
(
this
,
a
(
"debc"
))},
"3cbe"
:
function
(
t
,
e
,
a
){
"use strict"
;(
function
(
t
){
a
(
"4917"
),
a
(
"28a5"
),
a
(
"a481"
),
a
(
"7514"
),
a
(
"ac6a"
);
var
n
=
a
(
"07a4"
),
i
=
a
(
"6bf2"
),
c
=
a
.
n
(
i
),
s
=
a
(
"3ac8"
),
o
=
a
(
"e626"
),
r
=
a
(
"cf58"
);
function
l
(
e
){
t
(
".m-con-r"
).
remove
();
var
a
=
[];
e
.
forEach
(
function
(
e
,
n
){
var
i
=
t
(
e
);
i
.
attr
(
"id"
,
"zhiwei_"
+
n
);
var
s
=
i
.
find
(
".card-comment"
).
length
,
o
=
"普通用户"
,
r
=
null
;
i
.
find
(
".info"
).
children
(
"div"
).
eq
(
1
).
find
(
"a:last-child"
)
&&
(
r
=
i
.
find
(
".info"
).
children
(
"div"
).
eq
(
1
).
find
(
"a:last-child"
).
attr
(
"title"
)),
"微博官方认证"
===
r
?
o
=
"机构"
:
"微博达人"
===
r
?
o
=
"达人"
:
"微博个人认证"
===
r
&&
(
o
=
"名人"
);
var
l
=
s
?
"https:"
+
t
(
i
.
find
(
".card-comment"
).
find
(
".from a"
)[
0
]).
attr
(
"href"
):
"https:"
+
t
(
i
.
find
(
".from a"
)[
0
]).
attr
(
"href"
),
u
=
s
?
"https:"
+
t
(
i
.
find
(
".card-comment"
).
siblings
(
".from"
)).
find
(
"a"
).
attr
(
"href"
):
null
,
d
=
s
?
i
.
find
(
".card-comment a.name"
).
text
().
trim
().
replace
(
/^@/
,
""
):
i
.
find
(
".info a.name"
).
text
().
trim
(),
f
=
s
?
i
.
find
(
".info a.name"
).
text
().
trim
():
null
,
p
=
s
?
i
.
find
(
'.card-comment .txt:not(:has([action-type="fl_unfold"]))'
).
text
().
trim
():
i
.
find
(
'.card-feed .content .txt:not(:has([action-type="fl_unfold"]))'
).
text
().
trim
(),
m
=
s
?
i
.
find
(
".info"
).
siblings
(
'.txt:not(:has([action-type="fl_unfold"]))'
).
text
().
trim
():
null
,
h
=
t
(
i
.
find
(
".from a"
)[
0
]).
text
().
trim
();
h
.
indexOf
(
"转赞人数"
)
>-
1
&&
(
h
=
h
.
split
(
"转赞人数"
)[
0
].
trim
());
var
b
=
"YYYY-MM-DD HH:mm"
;
if
(
-
1
!=
h
.
indexOf
(
"秒前"
)){
var
v
=
h
.
split
(
"秒前"
)[
0
];
h
=
c
()().
subtract
(
v
,
"seconds"
).
format
(
b
)}
else
if
(
-
1
!=
h
.
indexOf
(
"分钟前"
)){
var
g
=
h
.
split
(
"分钟前"
)[
0
];
h
=
c
()().
subtract
(
g
,
"minutes"
).
format
(
b
)}
else
if
(
-
1
!=
h
.
indexOf
(
"小时前"
)){
var
_
=
h
.
split
(
"小时前"
)[
0
];
h
=
c
()().
subtract
(
_
,
"hours"
).
format
(
b
)}
else
if
(
-
1
!=
h
.
indexOf
(
"今天"
))
h
=
""
.
concat
(
c
()().
format
(
"YYYY-MM-DD"
),
" "
).
concat
(
h
.
split
(
"天"
)[
1
]);
else
if
(
-
1
!=
h
.
indexOf
(
"天前"
)){
var
w
=
h
.
split
(
"天前"
)[
0
];
h
=
c
()().
subtract
(
w
,
"days"
).
format
(
b
)}
else
if
(
-
1
!=
h
.
indexOf
(
"天内"
)){
h
.
split
(
"天内"
)[
0
];
h
=
""
}
else
if
(
/
\d{2,4}
-
\d{1,2}
-
\d{1,2}
/
.
test
(
h
)){
var
y
=
h
.
split
(
/-/
).
filter
(
function
(
t
){
return
""
!==
t
});
2
===
y
.
length
&&
y
.
unshift
((
new
Date
).
getFullYear
()),
h
=
y
.
map
(
function
(
t
){
return
(
+
t
<
10
?
"0"
:
""
)
+
t
}).
join
(
"-"
)
+
" 00:00"
}
else
/
(\d{4}
年
)?\d{1,2}
月
\d{1,2}
日/
.
test
(
h
)?(
-
1
===
h
.
indexOf
(
"年"
)
&&
(
h
=
""
.
concat
(
c
()().
format
(
"YYYY"
),
"年"
).
concat
(
h
)),
h
=
h
.
replace
(
"年"
,
"-"
).
replace
(
"月"
,
"-"
).
replace
(
"日"
,
""
)):
h
=
"时间解析格式错误"
;
var
j
=
i
.
attr
(
"mid"
),
k
=
i
.
find
(
".avator a"
).
attr
(
"href"
),
x
=
/
\d
+/
,
O
=
k
.
match
(
x
);
O
=
O
[
0
];
var
Y
=
i
.
find
(
'a[action-type="feed_list_forward"]'
).
text
().
match
(
x
),
T
=
Y
?
parseInt
(
Y
[
0
]):
0
,
M
=
i
.
find
(
'a[action-type="feed_list_comment"]'
).
text
().
match
(
x
),
N
=
M
?
parseInt
(
M
[
0
]):
0
,
P
=
i
.
find
(
".avator img"
).
attr
(
"src"
);
-
1
!==
l
.
indexOf
(
"refer_flag"
)
&&
(
l
=
l
.
split
(
"?refer_flag"
)[
0
]),
u
&&-
1
!==
u
.
indexOf
(
"refer_flag"
)
&&
(
u
=
u
.
split
(
"?refer_flag"
)[
0
]);
var
D
=
h
,
E
=
s
?{
clientFrom
:
"微博"
,
vType
:
o
,
publish
:
f
,
publishTwo
:
d
,
title
:
p
,
text
:
m
,
contentTitle
:
m
,
textTwo
:
p
,
time
:
D
,
url
:
u
,
urlTwo
:
l
}:{
clientFrom
:
"微博"
,
vType
:
o
,
publish
:
d
,
title
:
p
,
url
:
l
,
text
:
p
,
contentTitle
:
p
,
time
:
D
},
H
=
{
vType
:
o
,
clientFrom
:
"微博"
,
id
:
n
,
source
:
d
,
publish
:
s
?
f
:
d
,
publishTwo
:
s
?
d
:
""
,
text
:
s
?
m
:
p
,
contentTitle
:
s
?
m
:
p
,
textTwo
:
s
?
p
:
""
,
url
:
s
?
u
:
l
,
urlTwo
:
s
?
l
:
""
,
title
:
p
,
time
:
h
,
mid
:
j
,
uid
:
O
,
repost
:
T
,
replay
:
N
,
imgUrl
:
P
};
t
(
e
).
find
(
".wb_copy_button"
).
attr
(
"data-value"
,
JSON
.
stringify
(
E
)),
t
(
e
).
find
(
".wb_copy_button"
).
attr
(
"data-origin"
,
JSON
.
stringify
(
H
)),
t
(
e
).
find
(
'.checkbox_plug_i input[type="checkbox"]'
).
prop
(
"checked"
)
&&
a
.
push
({
data
:
H
,
value
:
E
})}),
n
[
"a"
].
commit
(
"increment"
,
a
)}
function
u
(
e
){
if
(
e
)
return
Object
(
o
[
"a"
])(
e
),
!
1
;
var
a
=
"weiboSearch"
,
n
=!
1
;
t
(
"body"
).
attr
(
"id"
,
a
);
var
i
=
t
(
"#"
.
concat
(
a
,
" .card-wrap:has(.card-feed)"
)).
toArray
();
i
.
forEach
(
function
(
e
){
var
a
=
t
(
e
).
find
(
".card-comment"
).
length
,
n
=
null
;
n
=
a
?
"<div class='plug_checkbox_foot'>
\
n <span class=
\"
wb_copy_button
\"
>复制</span></div>"
:
"<div class='plug_checkbox_foot'>
\
n <span class='checkbox_plug_i'><input type='checkbox' /></span>
\
n <span class=
\"
wb_copy_button
\"
>复制</span></div>"
,
t
(
e
).
append
(
n
)}),
l
(
i
),
t
(
".all_plug_checkbox"
).
click
(
function
(
t
){
n
=!
n
;
var
e
=
Object
(
s
[
"a"
])(
i
,
n
);
l
(
e
)}),
t
(
".checkbox_plug_i input"
).
click
(
function
(){
l
(
i
)})}
t
(
"body"
).
on
(
"click"
,
".wb_copy_button"
,
function
(
e
){
var
a
=
t
(
e
.
target
).
parents
(
".card-wrap"
).
find
(
".avator a"
).
attr
(
"href"
).
match
(
/
\d
+/
)[
0
],
n
=
"100505"
+
a
,
i
=
"https://m.weibo.cn/api/container/getIndex?type=uid&containerid="
.
concat
(
n
);
chrome
.
runtime
.
sendMessage
({
action
:
"weiboxhttp"
,
url
:
i
},
function
(
a
){
var
n
=
a
.
data
;
if
(
n
.
ok
){
var
i
=
n
.
data
.
userInfo
,
c
=
JSON
.
parse
(
unescape
(
t
(
e
.
currentTarget
).
attr
(
"data-origin"
))),
s
=
Object
.
assign
({},
c
,{
fans
:
i
.
followers_count
});
t
(
e
.
target
).
siblings
(
".copy_button"
).
attr
(
"data-value"
,
escape
(
JSON
.
stringify
(
s
))),
t
(
e
.
target
).
attr
(
"data-value"
,
escape
(
JSON
.
stringify
(
s
))),
r
[
"a"
].
smallCOPY
(
e
)}
else
t
(
"body"
).
append
(
"<div class='zhiwei_toast showtoast errortoast'>获取粉丝数失败</div>"
),
r
[
"a"
].
smallCOPY
(
e
),
setTimeout
(
function
(){
t
(
".zhiwei_toast"
).
remove
()},
3
e3
)})}),
e
[
"a"
]
=
u
}).
call
(
this
,
a
(
"debc"
))},
"3d3c"
:
function
(
t
,
e
,
a
){
"use strict"
;
var
n
=
a
(
"d841"
),
i
=
a
.
n
(
n
);
i
.
a
},
4
:
function
(
t
,
e
){},
4256
:
function
(
t
,
e
,
a
){
"use strict"
;
var
n
=
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"toutiao_plug_box"
},[
a
(
"div"
,{
staticClass
:
"header_tt_radio"
},[
a
(
"span"
,[
a
(
"input"
,{
directives
:[{
name
:
"model"
,
rawName
:
"v-model"
,
value
:
t
.
pd
,
expression
:
"pd"
}],
attrs
:{
type
:
"radio"
,
name
:
"type"
,
value
:
"synthesis"
},
domProps
:{
checked
:
t
.
_q
(
t
.
pd
,
"synthesis"
)},
on
:{
change
:
function
(
e
){
t
.
pd
=
"synthesis"
}}}),
t
.
_v
(
"综合"
)]),
a
(
"span"
,[
a
(
"input"
,{
directives
:[{
name
:
"model"
,
rawName
:
"v-model"
,
value
:
t
.
pd
,
expression
:
"pd"
}],
attrs
:{
type
:
"radio"
,
name
:
"type"
,
value
:
"video"
},
domProps
:{
checked
:
t
.
_q
(
t
.
pd
,
"video"
)},
on
:{
change
:
function
(
e
){
t
.
pd
=
"video"
}}}),
t
.
_v
(
"视频"
)]),
a
(
"span"
,[
a
(
"input"
,{
directives
:[{
name
:
"model"
,
rawName
:
"v-model"
,
value
:
t
.
pd
,
expression
:
"pd"
}],
attrs
:{
type
:
"radio"
,
name
:
"type"
,
value
:
"user"
},
domProps
:{
checked
:
t
.
_q
(
t
.
pd
,
"user"
)},
on
:{
change
:
function
(
e
){
t
.
pd
=
"user"
}}}),
t
.
_v
(
"用户"
)])]),
a
(
"div"
,{
staticClass
:
"search_plug_input"
},[
a
(
"img"
,{
attrs
:{
src
:
"//s3.pstatp.com/toutiao/resource/ntoutiao_web/static/image/logo_271e845.png"
}}),
a
(
"input"
,{
directives
:[{
name
:
"model"
,
rawName
:
"v-model"
,
value
:
t
.
keyword
,
expression
:
"keyword"
}],
attrs
:{
type
:
"search"
,
placeholder
:
"请输入关键字"
},
domProps
:{
value
:
t
.
keyword
},
on
:{
keyup
:
function
(
e
){
return
e
.
type
.
indexOf
(
"key"
)
||
13
===
e
.
keyCode
?
t
.
search
():
null
},
input
:
function
(
e
){
e
.
target
.
composing
||
(
t
.
keyword
=
e
.
target
.
value
)}}}),
a
(
"button"
,{
on
:{
click
:
function
(
e
){
return
t
.
search
()}}},[
t
.
_v
(
"搜索"
)])]),
t
.
selectList
?
a
(
"div"
,{
staticClass
:
"toutiao_contents"
},[
a
(
"ul"
,
t
.
_l
(
t
.
selectList
,
function
(
e
,
n
){
return
a
(
"li"
,{
key
:
e
.
data
.
item_id
,
attrs
:{
id
:
"zhiwei_"
+
n
}},[
e
.
data
.
has_image
?
a
(
"img"
,{
attrs
:{
src
:
e
.
data
.
image_url
}}):
t
.
_e
(),
a
(
"div"
,{
staticClass
:
"content"
},[
a
(
"a"
,{
attrs
:{
href
:
e
.
data
.
url
,
target
:
"_blank"
}},[
a
(
"h3"
,{
domProps
:{
innerHTML
:
t
.
_s
(
e
.
data
.
title
)}})]),
a
(
"div"
,{
staticClass
:
"timeAndsouse"
},[
a
(
"span"
,{
domProps
:{
innerHTML
:
t
.
_s
(
e
.
data
.
source
)}}),
a
(
"span"
,[
t
.
_v
(
t
.
_s
(
e
.
data
.
time
))])]),
a
(
"div"
,{
staticClass
:
"contents_text wordelices"
,
domProps
:{
innerHTML
:
t
.
_s
(
e
.
data
.
abstract
)}}),
a
(
"div"
,{
staticClass
:
"plug_checkbox_foot"
},[
a
(
"span"
,{
staticClass
:
"checkbox_plug_i"
},[
a
(
"input"
,{
directives
:[{
name
:
"model"
,
rawName
:
"v-model"
,
value
:
t
.
checkedNames
,
expression
:
"checkedNames"
}],
attrs
:{
type
:
"checkbox"
,
name
:
"checkbox"
},
domProps
:{
value
:
e
,
checked
:
Array
.
isArray
(
t
.
checkedNames
)?
t
.
_i
(
t
.
checkedNames
,
e
)
>-
1
:
t
.
checkedNames
},
on
:{
change
:
function
(
a
){
var
n
=
t
.
checkedNames
,
i
=
a
.
target
,
c
=!!
i
.
checked
;
if
(
Array
.
isArray
(
n
)){
var
s
=
e
,
o
=
t
.
_i
(
n
,
s
);
i
.
checked
?
o
<
0
&&
(
t
.
checkedNames
=
n
.
concat
([
s
])):
o
>-
1
&&
(
t
.
checkedNames
=
n
.
slice
(
0
,
o
).
concat
(
n
.
slice
(
o
+
1
)))}
else
t
.
checkedNames
=
c
}}})]),
a
(
"span"
,{
staticClass
:
"copy_button"
,
attrs
:{
"data-value"
:
JSON
.
stringify
(
e
.
value
)}},[
t
.
_v
(
"复制"
)])])])])}),
0
)]):
t
.
_e
(),
a
(
"div"
,{
staticClass
:
"pages"
},[
a
(
"div"
,[
t
.
curentPage
>
1
?
a
(
"button"
,{
on
:{
click
:
function
(
e
){
return
t
.
prev
()}}},[
t
.
_v
(
"Prev"
)]):
t
.
_e
(),
t
.
hasMore
?
a
(
"button"
,{
on
:{
click
:
function
(
e
){
return
t
.
next
()}}},[
t
.
_v
(
"Next"
)]):
t
.
_e
()]),
t
.
hasMore
?
t
.
_e
():
a
(
"span"
,[
t
.
_v
(
"没有更多信息了"
)])])])},
i
=
[],
c
=
(
a
(
"ac6a"
),
a
(
"386d"
),
a
(
"07a4"
)),
s
=
a
(
"6bf2"
),
o
=
a
.
n
(
s
),
r
=
a
(
"e626"
),
l
=
a
(
"fed1"
),
u
=
a
.
n
(
l
),
f
=
{
name
:
"toutiao"
,
data
:
function
(){
return
{
isALL
:
!
1
,
curentPage
:
1
,
hasMore
:
!
0
,
selectList
:
null
,
checkedNames
:[],
resultList
:
null
,
pd
:
"synthesis"
,
keyword
:
u
.
a
.
parse
(
window
.
location
.
search
.
slice
(
1
)).
keyword
,
params
:{
aid
:
24
,
app_name
:
"web_search"
,
offset
:
0
,
format
:
"json"
,
keyword
:
u
.
a
.
parse
(
window
.
location
.
search
.
slice
(
1
)).
keyword
,
autoload
:
!
0
,
count
:
20
,
en_qc
:
1
,
cur_tab
:
1
,
pd
:
"synthesis"
,
from
:
"search_tab"
,
timestamp
:
o
()().
unix
()}}},
filters
:{
filtertime
:
function
(
t
){
return
t
?
o
()(
t
).
format
(
"YYYY-MM-DD HH:mm"
):
o
()(
1
e3
*
d
.
behot_time
).
format
(
"YYYY-MM-DD HH:mm"
)}},
mounted
:
function
(){
console
.
log
(
"pppp"
);
var
t
=
this
;
document
.
getElementById
(
"all_plug_checkbox"
).
onclick
=
function
(){
t
.
isALL
=!
t
.
isALL
,
t
.
isALL
?
t
.
checkedNames
=
t
.
selectList
:(
t
.
checkedNames
=
[],
c
[
"a"
].
commit
(
"setcheckParamsTag"
,{}))},
this
.
getdata
()},
watch
:{
checkedNames
:
function
(
t
){
c
[
"a"
].
commit
(
"increment"
,
t
)},
pd
:
function
(){
this
.
curentPage
=
1
,
this
.
getdata
()}},
methods
:{
setBg
:
function
(
t
){
Object
(
r
[
"a"
])(
t
)},
prev
:
function
(){
this
.
curentPage
-=
1
,
this
.
getdata
()},
next
:
function
(){
this
.
curentPage
+=
1
,
this
.
getdata
()},
search
:
function
(){
this
.
curentPage
=
1
,
this
.
getdata
()},
getdata
:
function
(){
var
t
=
this
;
this
.
checkedNames
=
[],
this
.
isALL
=!
1
;
var
e
=
[];
this
.
params
=
{
aid
:
24
,
app_name
:
"web_search"
,
offset
:
20
*
this
.
curentPage
-
20
,
format
:
"json"
,
keyword
:
this
.
keyword
,
autoload
:
!
0
,
count
:
20
,
en_qc
:
1
,
cur_tab
:
"synthesis"
===
this
.
pd
?
1
:
"video"
===
this
.
pd
?
2
:
4
,
pd
:
this
.
pd
,
from
:
"synthesis"
===
this
.
pd
?
"search_tab"
:
"video"
===
this
.
pd
?
"video"
:
"media"
,
timestamp
:
o
()().
unix
()},
this
.
$axios
.
get
(
"/api/search/content"
,{
params
:
this
.
params
,
headers
:{
"x-requested-with"
:
"XMLHttpRequest"
,
"content-type"
:
"application/x-www-form-urlencoded"
}}).
then
(
function
(
a
){
var
n
=
{
keyword
:
t
.
params
.
keyword
},
i
=
window
.
location
.
origin
+
window
.
location
.
pathname
+
"?"
+
u
.
a
.
stringify
(
n
);
history
.
pushState
(
t
.
params
,
t
.
keyword
,
i
);
var
c
=
a
.
data
;
0
===
c
.
has_more
?
t
.
hasMore
=!
1
:
t
.
hasMore
=!
0
;
var
s
=
c
.
data
?
c
.
data
:[],
r
=
s
.
filter
(
function
(
t
){
return
t
[
"abstract"
]
&&
t
.
id
});
r
.
forEach
(
function
(
t
,
a
){
var
n
=
null
;
n
=
t
.
behot_time
?
o
()(
1
e3
*
t
.
behot_time
).
format
(
"YYYY-MM-DD HH:mm"
):
o
()(
1
e3
*
t
.
create_time
).
format
(
"YYYY-MM-DD HH:mm"
),
t
.
time
=
n
,
t
.
url
=
"https://www.toutiao.com"
.
concat
(
t
.
source_url
);
var
i
=
{
clientFrom
:
"今日头条"
,
url
:
"https://www.toutiao.com"
.
concat
(
t
.
source_url
),
publish
:
t
.
source
,
text
:
t
.
abstract
,
contentTitle
:
t
.
title
},
c
=
{
clientFrom
:
"今日头条"
,
contentTitle
:
t
.
title
,
title
:
t
.
title
,
text
:
t
.
abstract
,
url
:
"https://www.toutiao.com"
.
concat
(
t
.
source_url
),
time
:
n
,
source
:
t
.
source
,
id
:
a
,
index
:
a
};
e
.
push
({
data
:
c
,
value
:
i
})}),
t
.
selectList
=
e
}).
catch
(
function
(
t
){
console
.
log
(
t
)})}}},
p
=
f
,
m
=
(
a
(
"fd99"
),
a
(
"2877"
)),
h
=
Object
(
m
[
"a"
])(
p
,
n
,
i
,
!
1
,
null
,
"557d0f2c"
,
null
);
e
[
"a"
]
=
h
.
exports
},
"4aa1"
:
function
(
t
,
e
,
a
){
"use strict"
;(
function
(
t
){
a
(
"ac6a"
),
a
(
"456d"
);
var
n
=
a
(
"c62c"
),
i
=
a
(
"cf58"
),
c
=
a
(
"07a4"
);
e
[
"a"
]
=
{
name
:
"hello_plug_center"
,
data
:
function
(){
return
{
left
:
null
,
top
:
"100px"
}},
mounted
:
function
(){
var
t
=
this
;
chrome
.
storage
.
local
.
get
(
"movedata"
,
function
(
e
){
Object
.
keys
(
e
).
length
>
0
&&
e
.
movedata
&&
(
t
.
left
=
e
.
movedata
.
left
,
t
.
top
=
e
.
movedata
.
top
)})},
methods
:{
selectCOpy
:
function
(){
if
(
c
[
"a"
].
state
.
datalist
.
length
<
1
)
return
alert
(
"未选中任何数据"
),
!
1
;
t
(
"body"
).
append
(
"<div class='zhiwei_toast showtoast'>已复制成功</div>"
),
setTimeout
(
function
(){
t
(
".zhiwei_toast"
).
remove
()},
3
e3
);
var
e
=
c
[
"a"
].
state
.
datalist
.
map
(
function
(
t
){
return
t
.
data
});
i
[
"a"
].
checkCopy
(
e
)},
checkHandle
:
function
(){
return
c
[
"a"
].
state
.
datalist
.
length
<
1
?(
alert
(
"请选择需要检索的数据"
),
!
1
):
c
[
"a"
].
state
.
formObject
.
project
?(
c
[
"a"
].
commit
(
"uploading"
,
!
0
),
t
(
".select_plugdata_list"
).
scrollTop
(
0
),
void
chrome
.
runtime
.
sendMessage
({
action
:
"checkUpmark"
,
value
:
c
[
"a"
].
state
.
datalist
,
params
:
c
[
"a"
].
state
.
formObject
},
function
(
t
){
t
.
data
&&
(
c
[
"a"
].
commit
(
"uploading"
,
!
1
),
c
[
"a"
].
commit
(
"updatadata"
,
t
.
data
.
mark
),
"知乎"
===
n
[
"a"
].
pt
||
n
[
"a"
].
pt
,
n
[
"a"
].
template
(
t
.
data
.
mark
),
console
.
log
(
n
[
"a"
].
template
))})):(
alert
(
"请选择项目"
),
!
1
)}},
directives
:{
drag
:
function
(
t
,
e
){
t
.
onmousedown
=
function
(
e
){
var
a
=
e
.
clientX
-
t
.
offsetLeft
,
n
=
e
.
clientY
-
t
.
offsetTop
;
document
.
onmousemove
=
function
(
e
){
var
i
=
e
.
clientX
-
a
,
c
=
e
.
clientY
-
n
;
t
.
style
.
left
=
i
+
"px"
,
t
.
style
.
top
=
c
+
"px"
,
t
.
style
.
right
=
"auto"
,
chrome
.
storage
.
local
.
set
({
movedata
:{
left
:
i
+
"px"
,
top
:
c
+
"px"
}})},
document
.
onmouseup
=
function
(){
document
.
onmousemove
=
null
,
document
.
onmouseup
=
null
}}}}}}).
call
(
this
,
a
(
"debc"
))},
"4b62"
:
function
(
t
,
e
,
a
){
"use strict"
;
var
n
=
a
(
"6ad3"
),
i
=
a
.
n
(
n
);
i
.
a
},
6837
:
function
(
t
,
e
,
a
){
"use strict"
;
var
n
=
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"hello_plug_right"
,
class
:{
littleWidth
:
!
t
.
status
},
attrs
:{
id
:
"hello_plug_right"
}},[
a
(
"div"
,{
staticClass
:
"toggleSHOW"
,
on
:{
click
:
t
.
activeToggle
}},[
t
.
_v
(
t
.
_s
(
t
.
status
?
">"
:
"<"
))]),
a
(
"div"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
t
.
status
,
expression
:
"status"
}],
staticClass
:
"plug_content"
},[
a
(
"div"
,{
staticClass
:
"input_select_box"
},[
t
.
projectList
?
a
(
"select"
,{
directives
:[{
name
:
"model"
,
rawName
:
"v-model"
,
value
:
t
.
formObject
.
project
,
expression
:
"formObject.project"
}],
attrs
:{
name
:
"project"
},
on
:{
change
:
function
(
e
){
var
a
=
Array
.
prototype
.
filter
.
call
(
e
.
target
.
options
,
function
(
t
){
return
t
.
selected
}).
map
(
function
(
t
){
var
e
=
"_value"
in
t
?
t
.
_value
:
t
.
value
;
return
e
});
t
.
$set
(
t
.
formObject
,
"project"
,
e
.
target
.
multiple
?
a
:
a
[
0
])}}},
t
.
_l
(
t
.
projectList
,
function
(
e
){
return
a
(
"option"
,[
t
.
_v
(
t
.
_s
(
e
.
groupName
))])}),
0
):
t
.
_e
(),
a
(
"select"
,{
directives
:[{
name
:
"model"
,
rawName
:
"v-model"
,
value
:
t
.
formObject
.
user
,
expression
:
"formObject.user"
}],
attrs
:{
name
:
"project"
},
on
:{
change
:
function
(
e
){
var
a
=
Array
.
prototype
.
filter
.
call
(
e
.
target
.
options
,
function
(
t
){
return
t
.
selected
}).
map
(
function
(
t
){
var
e
=
"_value"
in
t
?
t
.
_value
:
t
.
value
;
return
e
});
t
.
$set
(
t
.
formObject
,
"user"
,
e
.
target
.
multiple
?
a
:
a
[
0
])}}},
t
.
_l
(
t
.
list
.
userList
,
function
(
e
){
return
a
(
"option"
,[
t
.
_v
(
t
.
_s
(
e
))])}),
0
)]),
"搜狗"
!==
t
.
VUEPT
&&
"360搜索页"
!==
t
.
VUEPT
&&
"百度"
!==
t
.
VUEPT
&&
"知乎"
!==
t
.
VUEPT
?
a
(
"div"
,{
staticClass
:
"tag_select_box"
},
t
.
_l
(
t
.
list
.
tagGroup
,
function
(
e
){
return
t
.
list
.
tagGroup
?
a
(
"div"
,{
staticClass
:
"taggROUP"
},[
a
(
"label"
,[
t
.
_v
(
t
.
_s
(
e
.
tagName
))]),
a
(
"h6"
),
a
(
"ul"
,{
staticClass
:
"plug_taglist"
},[
t
.
_l
(
e
.
emotionList
,
function
(
n
){
return
a
(
"li"
,{
key
:
n
.
emotionId
,
class
:{
onActive
:
t
.
formObject
.
selcettag
[
e
.
tagName
]
===
n
.
emotionId
},
on
:{
click
:
function
(
a
){
return
t
.
selectTAG
(
e
.
tagName
,
n
)}}},[
t
.
_v
(
"
\
n "
+
t
.
_s
(
n
.
emotionName
)
+
"
\
n "
)])}),
a
(
"li"
,{
class
:{
onActive
:
""
===
t
.
formObject
.
selcettag
[
e
.
tagName
]},
on
:{
click
:
function
(
a
){
return
t
.
selectTAG
(
e
.
tagName
)}}},[
t
.
_v
(
"无"
)])],
2
)]):
t
.
_e
()}),
0
):
t
.
_e
(),
a
(
"p"
,[
a
(
"span"
,[
t
.
_v
(
"已选择:"
),
a
(
"em"
,[
t
.
_v
(
t
.
_s
(
t
.
store
.
state
.
datalist
.
length
))]),
t
.
_v
(
"条信息"
)])]),
a
(
"div"
,{
staticClass
:
"handle_plug_button"
},[
"搜狗"
!==
t
.
VUEPT
&&
"360搜索页"
!==
t
.
VUEPT
&&
"百度"
!==
t
.
VUEPT
&&
"知乎"
!==
t
.
VUEPT
?
a
(
"button"
,{
staticClass
:
"zhiwei_Mark"
,
on
:{
click
:
function
(
e
){
return
t
.
doingMark
()}}},[
t
.
_v
(
"标注"
)]):
t
.
_e
(),
a
(
"button"
,{
on
:{
click
:
function
(
e
){
return
t
.
downloadExcel
()}}},[
t
.
_v
(
"Excel下载"
)])]),
a
(
"div"
,{
staticClass
:
"select_plugdata_list"
,
style
:{
"overflow-y"
:
t
.
loading
?
"hidden"
:
"auto"
}},[
t
.
loading
?
a
(
"div"
,{
staticClass
:
"loading_icon"
},[
t
.
_v
(
"
\
n 拼命加载中
\
n "
)]):
t
.
_e
(),
t
.
datalist
?
a
(
"ul"
,
t
.
_l
(
t
.
datalist
,
function
(
e
){
return
a
(
"li"
,[
a
(
"h6"
,[
e
.
data
.
start
&&!
e
.
data
.
markstatus
?
a
(
"label"
,{
staticClass
:
"icon_plug_Tagging"
,
class
:{
ISplugmark
:
e
.
data
.
mark
}},[
t
.
_v
(
t
.
_s
(
e
.
data
.
mark
?
"已标注"
:
"未标注"
)
+
t
.
_s
(
e
.
data
.
tagname
?
"-"
+
e
.
data
.
tagname
:
null
))]):
t
.
_e
(),
e
.
data
.
markstatus
?
a
(
"label"
,{
staticClass
:
"icon_plug_Tagging"
,
class
:{
ISplugmark
:
e
.
data
.
mark
,
errormark
:
"标注失败"
===
e
.
data
.
markstatus
,
successmark
:
"标注成功"
===
e
.
data
.
markstatus
}},[
t
.
_v
(
t
.
_s
(
e
.
data
.
markstatus
))]):
t
.
_e
(),
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
data
.
title
)
+
"
\
n "
)]),
a
(
"div"
,[
a
(
"span"
,[
t
.
_v
(
"来源:"
+
t
.
_s
(
e
.
data
.
source
))]),
a
(
"span"
,[
t
.
_v
(
"时间:"
+
t
.
_s
(
e
.
data
.
time
))])])])}),
0
):
t
.
_e
()])])])},
i
=
[],
c
=
a
(
"e5e6"
),
s
=
c
[
"a"
],
o
=
(
a
(
"2104"
),
a
(
"2877"
)),
r
=
Object
(
o
[
"a"
])(
s
,
n
,
i
,
!
1
,
null
,
null
,
null
);
e
[
"a"
]
=
r
.
exports
},
"6ad3"
:
function
(
t
,
e
,
a
){},
"77d2"
:
function
(
t
,
e
,
a
){
var
n
=
{
"./af"
:
"fbac"
,
"./af.js"
:
"fbac"
,
"./ar"
:
"f96f"
,
"./ar-dz"
:
"e63c"
,
"./ar-dz.js"
:
"e63c"
,
"./ar-kw"
:
"b7bd"
,
"./ar-kw.js"
:
"b7bd"
,
"./ar-ly"
:
"968f"
,
"./ar-ly.js"
:
"968f"
,
"./ar-ma"
:
"9f9d"
,
"./ar-ma.js"
:
"9f9d"
,
"./ar-sa"
:
"aea5"
,
"./ar-sa.js"
:
"aea5"
,
"./ar-tn"
:
"d44b"
,
"./ar-tn.js"
:
"d44b"
,
"./ar.js"
:
"f96f"
,
"./az"
:
"c7ed"
,
"./az.js"
:
"c7ed"
,
"./be"
:
"5a28"
,
"./be.js"
:
"5a28"
,
"./bg"
:
"1251"
,
"./bg.js"
:
"1251"
,
"./bm"
:
"2809"
,
"./bm.js"
:
"2809"
,
"./bn"
:
"b4fc"
,
"./bn.js"
:
"b4fc"
,
"./bo"
:
"5484"
,
"./bo.js"
:
"5484"
,
"./br"
:
"5adc"
,
"./br.js"
:
"5adc"
,
"./bs"
:
"ac10"
,
"./bs.js"
:
"ac10"
,
"./ca"
:
"e381"
,
"./ca.js"
:
"e381"
,
"./cs"
:
"aef2"
,
"./cs.js"
:
"aef2"
,
"./cv"
:
"6566"
,
"./cv.js"
:
"6566"
,
"./cy"
:
"1390"
,
"./cy.js"
:
"1390"
,
"./da"
:
"1ece"
,
"./da.js"
:
"1ece"
,
"./de"
:
"5f10"
,
"./de-at"
:
"09c4"
,
"./de-at.js"
:
"09c4"
,
"./de-ch"
:
"89a2"
,
"./de-ch.js"
:
"89a2"
,
"./de.js"
:
"5f10"
,
"./dv"
:
"e662"
,
"./dv.js"
:
"e662"
,
"./el"
:
"196b"
,
"./el.js"
:
"196b"
,
"./en-SG"
:
"0a32"
,
"./en-SG.js"
:
"0a32"
,
"./en-au"
:
"94ed"
,
"./en-au.js"
:
"94ed"
,
"./en-ca"
:
"2806"
,
"./en-ca.js"
:
"2806"
,
"./en-gb"
:
"b0dd"
,
"./en-gb.js"
:
"b0dd"
,
"./en-ie"
:
"7a6e"
,
"./en-ie.js"
:
"7a6e"
,
"./en-il"
:
"1f0f"
,
"./en-il.js"
:
"1f0f"
,
"./en-nz"
:
"1606"
,
"./en-nz.js"
:
"1606"
,
"./eo"
:
"f214"
,
"./eo.js"
:
"f214"
,
"./es"
:
"7d58"
,
"./es-do"
:
"737b"
,
"./es-do.js"
:
"737b"
,
"./es-us"
:
"a894"
,
"./es-us.js"
:
"a894"
,
"./es.js"
:
"7d58"
,
"./et"
:
"a888"
,
"./et.js"
:
"a888"
,
"./eu"
:
"1357"
,
"./eu.js"
:
"1357"
,
"./fa"
:
"0a48"
,
"./fa.js"
:
"0a48"
,
"./fi"
:
"c2b1"
,
"./fi.js"
:
"c2b1"
,
"./fo"
:
"52c4"
,
"./fo.js"
:
"52c4"
,
"./fr"
:
"04e6"
,
"./fr-ca"
:
"6ad1"
,
"./fr-ca.js"
:
"6ad1"
,
"./fr-ch"
:
"b12f"
,
"./fr-ch.js"
:
"b12f"
,
"./fr.js"
:
"04e6"
,
"./fy"
:
"ad13"
,
"./fy.js"
:
"ad13"
,
"./ga"
:
"369e"
,
"./ga.js"
:
"369e"
,
"./gd"
:
"22de"
,
"./gd.js"
:
"22de"
,
"./gl"
:
"f808"
,
"./gl.js"
:
"f808"
,
"./gom-latn"
:
"50d5"
,
"./gom-latn.js"
:
"50d5"
,
"./gu"
:
"e67a"
,
"./gu.js"
:
"e67a"
,
"./he"
:
"037c"
,
"./he.js"
:
"037c"
,
"./hi"
:
"3d53"
,
"./hi.js"
:
"3d53"
,
"./hr"
:
"678b"
,
"./hr.js"
:
"678b"
,
"./hu"
:
"1783"
,
"./hu.js"
:
"1783"
,
"./hy-am"
:
"2873"
,
"./hy-am.js"
:
"2873"
,
"./id"
:
"de99"
,
"./id.js"
:
"de99"
,
"./is"
:
"6aa2"
,
"./is.js"
:
"6aa2"
,
"./it"
:
"1f93"
,
"./it-ch"
:
"2db9"
,
"./it-ch.js"
:
"2db9"
,
"./it.js"
:
"1f93"
,
"./ja"
:
"6bf8"
,
"./ja.js"
:
"6bf8"
,
"./jv"
:
"6e55"
,
"./jv.js"
:
"6e55"
,
"./ka"
:
"e65f"
,
"./ka.js"
:
"e65f"
,
"./kk"
:
"7167"
,
"./kk.js"
:
"7167"
,
"./km"
:
"4668"
,
"./km.js"
:
"4668"
,
"./kn"
:
"e3d2"
,
"./kn.js"
:
"e3d2"
,
"./ko"
:
"b058"
,
"./ko.js"
:
"b058"
,
"./ku"
:
"017e"
,
"./ku.js"
:
"017e"
,
"./ky"
:
"b2bd"
,
"./ky.js"
:
"b2bd"
,
"./lb"
:
"e50c"
,
"./lb.js"
:
"e50c"
,
"./lo"
:
"ca14"
,
"./lo.js"
:
"ca14"
,
"./lt"
:
"3e84"
,
"./lt.js"
:
"3e84"
,
"./lv"
:
"ce1d"
,
"./lv.js"
:
"ce1d"
,
"./me"
:
"9d38"
,
"./me.js"
:
"9d38"
,
"./mi"
:
"3e2e"
,
"./mi.js"
:
"3e2e"
,
"./mk"
:
"d532"
,
"./mk.js"
:
"d532"
,
"./ml"
:
"db61"
,
"./ml.js"
:
"db61"
,
"./mn"
:
"7493"
,
"./mn.js"
:
"7493"
,
"./mr"
:
"52d8"
,
"./mr.js"
:
"52d8"
,
"./ms"
:
"b559"
,
"./ms-my"
:
"7462"
,
"./ms-my.js"
:
"7462"
,
"./ms.js"
:
"b559"
,
"./mt"
:
"c055"
,
"./mt.js"
:
"c055"
,
"./my"
:
"49e0"
,
"./my.js"
:
"49e0"
,
"./nb"
:
"eb1c"
,
"./nb.js"
:
"eb1c"
,
"./ne"
:
"0acb"
,
"./ne.js"
:
"0acb"
,
"./nl"
:
"7497"
,
"./nl-be"
:
"3114"
,
"./nl-be.js"
:
"3114"
,
"./nl.js"
:
"7497"
,
"./nn"
:
"9a9c"
,
"./nn.js"
:
"9a9c"
,
"./pa-in"
:
"c595"
,
"./pa-in.js"
:
"c595"
,
"./pl"
:
"801c"
,
"./pl.js"
:
"801c"
,
"./pt"
:
"5b08"
,
"./pt-br"
:
"155f"
,
"./pt-br.js"
:
"155f"
,
"./pt.js"
:
"5b08"
,
"./ro"
:
"05fc"
,
"./ro.js"
:
"05fc"
,
"./ru"
:
"90b3"
,
"./ru.js"
:
"90b3"
,
"./sd"
:
"99bf"
,
"./sd.js"
:
"99bf"
,
"./se"
:
"20d6"
,
"./se.js"
:
"20d6"
,
"./si"
:
"7c0b"
,
"./si.js"
:
"7c0b"
,
"./sk"
:
"90fc"
,
"./sk.js"
:
"90fc"
,
"./sl"
:
"871b"
,
"./sl.js"
:
"871b"
,
"./sq"
:
"b045"
,
"./sq.js"
:
"b045"
,
"./sr"
:
"ac81"
,
"./sr-cyrl"
:
"a2d0"
,
"./sr-cyrl.js"
:
"a2d0"
,
"./sr.js"
:
"ac81"
,
"./ss"
:
"b093"
,
"./ss.js"
:
"b093"
,
"./sv"
:
"12e5"
,
"./sv.js"
:
"12e5"
,
"./sw"
:
"38a0"
,
"./sw.js"
:
"38a0"
,
"./ta"
:
"a462"
,
"./ta.js"
:
"a462"
,
"./te"
:
"18cb"
,
"./te.js"
:
"18cb"
,
"./tet"
:
"0c11"
,
"./tet.js"
:
"0c11"
,
"./tg"
:
"d707"
,
"./tg.js"
:
"d707"
,
"./th"
:
"883f"
,
"./th.js"
:
"883f"
,
"./tl-ph"
:
"6cc0"
,
"./tl-ph.js"
:
"6cc0"
,
"./tlh"
:
"ab53"
,
"./tlh.js"
:
"ab53"
,
"./tr"
:
"e523"
,
"./tr.js"
:
"e523"
,
"./tzl"
:
"b192"
,
"./tzl.js"
:
"b192"
,
"./tzm"
:
"5604"
,
"./tzm-latn"
:
"9f95"
,
"./tzm-latn.js"
:
"9f95"
,
"./tzm.js"
:
"5604"
,
"./ug-cn"
:
"9f4f"
,
"./ug-cn.js"
:
"9f4f"
,
"./uk"
:
"8bd6"
,
"./uk.js"
:
"8bd6"
,
"./ur"
:
"9a78"
,
"./ur.js"
:
"9a78"
,
"./uz"
:
"4d4c"
,
"./uz-latn"
:
"da73"
,
"./uz-latn.js"
:
"da73"
,
"./uz.js"
:
"4d4c"
,
"./vi"
:
"b766"
,
"./vi.js"
:
"b766"
,
"./x-pseudo"
:
"2a69"
,
"./x-pseudo.js"
:
"2a69"
,
"./yo"
:
"fd2e"
,
"./yo.js"
:
"fd2e"
,
"./zh-cn"
:
"35d0"
,
"./zh-cn.js"
:
"35d0"
,
"./zh-hk"
:
"7b45"
,
"./zh-hk.js"
:
"7b45"
,
"./zh-tw"
:
"fa66"
,
"./zh-tw.js"
:
"fa66"
};
function
i
(
t
){
var
e
=
c
(
t
);
return
a
(
e
)}
function
c
(
t
){
var
e
=
n
[
t
];
if
(
!
(
e
+
1
)){
var
a
=
new
Error
(
"Cannot find module '"
+
t
+
"'"
);
throw
a
.
code
=
"MODULE_NOT_FOUND"
,
a
}
return
e
}
i
.
keys
=
function
(){
return
Object
.
keys
(
n
)},
i
.
resolve
=
c
,
t
.
exports
=
i
,
i
.
id
=
"77d2"
},
"7d36"
:
function
(
t
,
e
,
a
){
"use strict"
;(
function
(
t
){
a
(
"7514"
),
a
(
"ac6a"
);
var
n
=
a
(
"07a4"
),
i
=
a
(
"6bf2"
),
c
=
a
.
n
(
i
),
s
=
a
(
"3ac8"
),
o
=
a
(
"e626"
);
function
r
(
e
){
var
a
=
[];
e
.
forEach
(
function
(
e
,
n
){
var
i
=
t
(
e
);
i
.
attr
(
"id"
,
"zhiwei_"
+
n
);
var
s
=
i
.
find
(
"h3 a"
).
text
().
trim
(),
o
=
i
.
find
(
".txt-info"
).
text
().
trim
(),
r
=
i
.
find
(
".account"
).
text
().
trim
(),
l
=
i
.
find
(
".s-p"
).
attr
(
"t"
);
l
=
1
e3
*
parseInt
(
l
),
l
=
c
()(
l
).
format
(
"YYYY-MM-DD HH:mm"
);
var
u
=
i
.
find
(
".txt-box h3 a"
).
attr
(
"data-share"
),
d
=
{
clientFrom
:
"微信"
,
contentTitle
:
s
,
publish
:
r
,
title
:
s
,
url
:
u
,
text
:
o
,
time
:
l
},
f
=
{
clientFrom
:
"微信"
,
contentTitle
:
s
,
id
:
n
,
index
:
n
,
title
:
s
,
text
:
o
,
publish
:
r
,
source
:
r
,
time
:
l
,
url
:
u
,
mark
:
!
1
};
i
.
find
(
".copy_button"
).
attr
(
"data-value"
,
JSON
.
stringify
(
d
)),
t
(
e
).
find
(
'input[type="checkbox"]'
).
prop
(
"checked"
)
&&
a
.
push
({
data
:
f
,
value
:
d
})}),
n
[
"a"
].
commit
(
"increment"
,
a
)}
function
l
(
e
){
if
(
e
)
return
Object
(
o
[
"a"
])(
e
),
!
1
;
var
a
=!
1
,
n
=
"sogouWeixin"
;
t
(
"body"
).
attr
(
"id"
,
n
);
var
i
=
t
(
"#"
.
concat
(
n
,
" .news-list li"
)).
toArray
();
t
(
"#"
.
concat
(
n
,
" .news-list li"
)).
append
(
"<div class='plug_checkbox_foot'><span class='checkbox_plug_i'><input type='checkbox' /></span><span class=
\"
copy_button
\"
>复制</span></div>"
),
r
(
i
),
t
(
".all_plug_checkbox"
).
click
(
function
(){
a
=!
a
;
var
t
=
Object
(
s
[
"a"
])(
i
,
a
);
r
(
t
)}),
t
(
".checkbox_plug_i input"
).
click
(
function
(){
r
(
i
)})}
e
[
"a"
]
=
l
}).
call
(
this
,
a
(
"debc"
))},
"811f"
:
function
(
t
,
e
,
a
){
"use strict"
;(
function
(
t
){
var
n
,
i
=
a
(
"2b0e"
),
c
=
a
(
"4256"
);
function
s
(
e
){
return
e
?(
n
.
$children
[
0
].
setBg
(
e
),
!
1
):(
t
(
".y-wrap"
).
remove
(),
t
(
"body"
).
prepend
(
'<div id="toutiaoTemplate"></div>'
),
n
=
new
i
[
"a"
]({
el
:
"#toutiaoTemplate"
,
render
:
function
(
t
){
return
t
(
c
[
"a"
])}}),
n
)}
e
[
"a"
]
=
s
}).
call
(
this
,
a
(
"debc"
))},
"88d0"
:
function
(
t
,
e
,
a
){
"use strict"
;
var
n
=
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"zhihu_plug_template"
},[
a
(
"div"
,{
staticClass
:
"search_plug_input"
},[
a
(
"span"
,[
t
.
_v
(
"知乎"
)]),
a
(
"input"
,{
directives
:[{
name
:
"model"
,
rawName
:
"v-model"
,
value
:
t
.
keyword
,
expression
:
"keyword"
}],
attrs
:{
type
:
"search"
,
placeholder
:
"请输入关键字"
},
domProps
:{
value
:
t
.
keyword
},
on
:{
keyup
:
function
(
e
){
return
e
.
type
.
indexOf
(
"key"
)
||
13
===
e
.
keyCode
?
t
.
searchMount
():
null
},
input
:
function
(
e
){
e
.
target
.
composing
||
(
t
.
keyword
=
e
.
target
.
value
)}}}),
a
(
"button"
,{
on
:{
click
:
function
(
e
){
return
t
.
searchMount
()}}},[
t
.
_v
(
"搜索"
)]),
a
(
"select"
,{
directives
:[{
name
:
"model"
,
rawName
:
"v-model"
,
value
:
t
.
timeValue
,
expression
:
"timeValue"
}],
staticClass
:
"timeselectbox"
,
on
:{
change
:
function
(
e
){
var
a
=
Array
.
prototype
.
filter
.
call
(
e
.
target
.
options
,
function
(
t
){
return
t
.
selected
}).
map
(
function
(
t
){
var
e
=
"_value"
in
t
?
t
.
_value
:
t
.
value
;
return
e
});
t
.
timeValue
=
e
.
target
.
multiple
?
a
:
a
[
0
]}}},[
a
(
"option"
,{
attrs
:{
value
:
"-1"
}},[
t
.
_v
(
"时间不限"
)]),
a
(
"option"
,{
attrs
:{
value
:
"a_day"
}},[
t
.
_v
(
"一天内"
)]),
a
(
"option"
,{
attrs
:{
value
:
"a_week"
}},[
t
.
_v
(
"一周内"
)]),
a
(
"option"
,{
attrs
:{
value
:
"three_months"
}},[
t
.
_v
(
"三个月内"
)])])]),
a
(
"div"
,{
staticClass
:
"content-list"
},[
a
(
"ul"
,{
attrs
:{
id
:
"list_zhihu"
}},
t
.
_l
(
t
.
selectList
,
function
(
e
,
n
){
return
t
.
selectList
.
length
&&
t
.
selectList
[
n
]
&&
t
.
dataList
[
n
]?
a
(
"li"
,{
attrs
:{
id
:
"zhiwei_"
+
n
}},[
a
(
"div"
,{
staticClass
:
"content"
},[
a
(
"a"
,{
attrs
:{
href
:
e
.
data
.
url
,
target
:
"_blank"
}},[
a
(
"h2"
,{
domProps
:{
innerHTML
:
t
.
_s
(
t
.
dataList
[
n
].
highlight
.
title
)}})]),
a
(
"p"
,[
t
.
_v
(
t
.
_s
(
e
.
data
.
time
))]),
a
(
"div"
,{
staticClass
:
"source_time"
},[
a
(
"span"
,[
a
(
"b"
,[
t
.
_v
(
t
.
_s
(
e
.
data
.
source
)
+
":"
)]),
a
(
"label"
,{
domProps
:{
innerHTML
:
t
.
_s
(
t
.
dataList
[
n
].
highlight
.
description
)}})])])]),
a
(
"div"
,{
staticClass
:
"plug_checkbox_foot"
},[
a
(
"span"
,{
staticClass
:
"checkbox_plug_i"
},[
a
(
"input"
,{
directives
:[{
name
:
"model"
,
rawName
:
"v-model"
,
value
:
t
.
checkedNames
,
expression
:
"checkedNames"
}],
attrs
:{
type
:
"checkbox"
,
name
:
"checkbox"
},
domProps
:{
value
:
e
,
checked
:
Array
.
isArray
(
t
.
checkedNames
)?
t
.
_i
(
t
.
checkedNames
,
e
)
>-
1
:
t
.
checkedNames
},
on
:{
change
:
function
(
a
){
var
n
=
t
.
checkedNames
,
i
=
a
.
target
,
c
=!!
i
.
checked
;
if
(
Array
.
isArray
(
n
)){
var
s
=
e
,
o
=
t
.
_i
(
n
,
s
);
i
.
checked
?
o
<
0
&&
(
t
.
checkedNames
=
n
.
concat
([
s
])):
o
>-
1
&&
(
t
.
checkedNames
=
n
.
slice
(
0
,
o
).
concat
(
n
.
slice
(
o
+
1
)))}
else
t
.
checkedNames
=
c
}}})]),
a
(
"span"
,{
staticClass
:
"copy_button"
,
attrs
:{
"data-value"
:
JSON
.
stringify
(
e
.
value
)}},[
t
.
_v
(
"复制"
)])])]):
t
.
_e
()}),
0
),
t
.
c_loading
?
a
(
"div"
,[
t
.
_v
(
"正在加载中..."
)]):
t
.
_e
()]),
a
(
"div"
,{
staticClass
:
"pages"
},[
a
(
"div"
,[
t
.
curentPage
>
1
?
a
(
"button"
,{
on
:{
click
:
function
(
e
){
return
t
.
prev
()}}},[
t
.
_v
(
"上一页"
)]):
t
.
_e
(),
t
.
isend
?
t
.
_e
():
a
(
"button"
,{
on
:{
click
:
function
(
e
){
return
t
.
next
()}}},[
t
.
_v
(
"下一页"
)])]),
t
.
isend
?
a
(
"span"
,[
t
.
_v
(
"没有更多信息了"
)]):
t
.
_e
()])])},
i
=
[],
c
=
(
a
(
"7f7f"
),
a
(
"75fc"
)),
s
=
(
a
(
"a481"
),
a
(
"ac6a"
),
a
(
"456d"
),
a
(
"28a5"
),
a
(
"6b54"
),
a
(
"07a4"
)),
o
=
a
(
"6bf2"
),
r
=
a
.
n
(
o
),
l
=
a
(
"e626"
),
u
=
(
a
(
"fed1"
),{
name
:
"zhihu"
,
data
:
function
(){
return
{
c_loading
:
!
1
,
baseList
:
null
,
isend
:
!
0
,
dataList
:[],
timeValue
:
"-1"
,
keyword
:
Math
.
random
().
toString
(
"36"
).
slice
(
-
2
),
curentPage
:
1
,
hasMore
:
!
0
,
checkedNames
:[],
selectList
:[],
searchParams
:{
lc_idx
:
2
,
show_all_topics
:
0
,
search_hash_id
:
null
,
vertical_info
:
null
}}},
filters
:{
filtertime
:
function
(
t
){
return
t
?
r
()(
t
).
format
(
"YYYY-MM-DD HH:mm"
):
r
()(
1
e3
*
d
.
behot_time
).
format
(
"YYYY-MM-DD HH:mm"
)}},
mounted
:
function
(){
var
t
=
this
,
e
=!
1
;
document
.
getElementById
(
"all_plug_checkbox"
).
onclick
=
function
(){
e
=!
e
,
e
?
t
.
checkedNames
=
t
.
selectList
:(
s
[
"a"
].
commit
(
"setcheckParamsTag"
,{}),
t
.
checkedNames
=
[])},
this
.
searchMount
()},
watch
:{
checkedNames
:
function
(
t
){
s
[
"a"
].
commit
(
"increment"
,
t
)},
timeValue
:
function
(
t
){
this
.
searchMount
()}},
methods
:{
setBg
:
function
(
t
){
Object
(
l
[
"a"
])(
t
)},
prev
:
function
(){
this
.
curentPage
-=
1
,
this
.
getDate
()},
next
:
function
(){
this
.
curentPage
+=
1
,
this
.
getDate
()},
searchMount
:
function
(){
var
t
=
this
;
this
.
checkedNames
=
[],
this
.
baseList
=
null
;
var
e
=
null
;
e
=
"a_day"
===
this
.
timeValue
?
"1d"
:
"a_week"
===
this
.
timeValue
?
"1w"
:
"three_months"
===
this
.
timeValue
?
"3m"
:
null
,
this
.
$axios
({
url
:
"https://www.zhihu.com/search"
,
params
:{
type
:
"content"
,
q
:
this
.
keyword
,
range
:
e
}}).
then
(
function
(
e
){
var
a
=
[],
n
=
e
.
data
.
split
(
'<script id="js-initialData" type="text/json">'
)[
1
].
split
(
'<script src="https://static.zhihu.com/heifetz/vendor.068f42571c2a44da057f.js">'
)[
0
].
split
(
"<
\
/script>"
)[
0
],
i
=
JSON
.
parse
(
n
).
initialState
.
entities
;
a
=
"a_day"
===
t
.
timeValue
?
JSON
.
parse
(
n
).
initialState
.
entities
.
searchAdvancedGeneralInOneDay
:
"a_week"
===
t
.
timeValue
?
JSON
.
parse
(
n
).
initialState
.
entities
.
searchAdvancedGeneralInOneWeek
:
"three_months"
===
t
.
timeValue
?
JSON
.
parse
(
n
).
initialState
.
entities
.
searchAdvancedGeneralInThreeMonths
:
JSON
.
parse
(
n
).
initialState
.
entities
.
searchAdvancedGeneral
,
t
.
baseList
=
Object
.
keys
(
a
).
map
(
function
(
t
){
var
e
=
a
[
t
];
if
(
!
e
.
object
)
return
e
;
var
n
=
"wiki_box"
===
e
.
object
.
schema
?
e
.
object
.
schema
:
e
.
object
.
schema
+
"s"
;
return
e
.
object
.
created_time
=
i
[
n
][
e
.
object
.
id
].
createdTime
,
e
.
object
.
author
=
i
[
n
][
e
.
object
.
id
].
author
?
i
[
n
][
e
.
object
.
id
].
author
:
""
,
e
.
object
.
type
=
"wiki_box"
===
e
.
object
.
schema
?
"topic"
:
e
.
object
.
schema
,
i
[
n
][
e
.
object
.
id
].
question
&&
(
e
.
object
.
question
=
i
[
n
][
e
.
object
.
id
].
question
),
t
=
e
,
t
}).
filter
(
function
(
t
){
return
"relevant_query"
!==
t
.
type
&&
"people"
!==
t
.
type
}),
t
.
searchParams
.
search_hash_id
=
e
.
data
.
split
(
"search_hash_id="
)[
1
].
split
(
"&"
)[
0
],
t
.
searchParams
.
vertical_info
=
e
.
data
.
split
(
"vertical_info="
)[
1
].
split
(
'"'
)[
0
],
t
.
searchParams
.
lc_idx
=
Object
.
keys
(
a
).
length
,
t
.
searchParams
.
show_all_topics
=
e
.
data
.
split
(
"show_all_topics="
)[
1
].
split
(
"&"
)[
0
],
t
.
getDate
(
!
0
)})},
handleScroll
:
function
(){},
removeEMTAG
:
function
(
t
){
return
t
?
t
.
replace
(
/<
\/?
em>/gi
,
""
):
""
},
detailsUrl
:
function
(
t
){
var
e
=
t
.
object
.
type
,
a
=
null
;
return
a
=
"answer"
===
e
||
"question"
===
e
?
t
.
object
.
question
?
"https://www.zhihu.com/question/"
.
concat
(
t
.
object
.
question
.
id
,
"/answer/"
).
concat
(
t
.
object
.
id
):
"https://www.zhihu.com/question/"
.
concat
(
t
.
object
.
id
):
"topic"
===
e
?
"https://www.zhihu.com/topic/"
.
concat
(
t
.
object
.
id
,
"/hot"
):
"column"
===
e
?
"https://zhuanlan.zhihu.com/"
.
concat
(
t
.
object
.
id
):
"https://zhuanlan.zhihu.com/p/"
.
concat
(
t
.
object
.
id
),
a
},
getDate
:
function
(){
var
t
=
this
,
e
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]
&&
arguments
[
0
];
this
.
c_loading
=!
0
,
this
.
dataList
=
[],
e
&&
(
this
.
curentPage
=
1
),
this
.
$axios
({
url
:
"https://www.zhihu.com/api/v4/search_v3"
,
method
:
"GET"
,
params
:{
t
:
"general"
,
q
:
this
.
keyword
,
correction
:
1
,
offset
:
20
+
20
*
(
this
.
curentPage
-
1
),
limit
:
20
,
lc_idx
:
this
.
searchParams
.
lc_idx
+
20
*
(
this
.
curentPage
-
1
),
show_all_topics
:
this
.
searchParams
.
show_all_topics
,
search_hash_id
:
this
.
searchParams
.
search_hash_id
,
vertical_info
:
this
.
searchParams
.
vertical_info
,
time_zone
:
"-1"
!=
this
.
timeValue
?
this
.
timeValue
:
null
}}).
then
(
function
(
a
){
t
.
c_loading
=!
1
;
var
n
=
a
.
data
;
t
.
isend
=
n
.
paging
.
is_end
;
var
i
=
[];
i
=
e
||
1
===
t
.
curentPage
?[].
concat
(
Object
(
c
[
"a"
])(
t
.
baseList
),
Object
(
c
[
"a"
])(
n
.
data
)):
Object
(
c
[
"a"
])(
n
.
data
);
var
s
=
i
;
t
.
dataList
=
s
.
filter
(
function
(
t
,
e
){
return
"people"
!==
t
.
object
.
type
});
var
o
=
[];
t
.
dataList
.
forEach
(
function
(
e
,
a
){
var
n
=
{
clientFrom
:
"知乎"
,
text
:
t
.
removeEMTAG
(
e
.
highlight
.
title
),
contentTitle
:
t
.
removeEMTAG
(
e
.
highlight
.
title
),
publish
:
e
.
object
.
author
?
e
.
object
.
author
.
name
:
"知乎"
,
textTwo
:
t
.
removeEMTAG
(
e
.
highlight
.
description
),
time
:
r
()(
1
e3
*
e
.
object
.
created_time
).
format
(
"YYYY-MM-DD HH:mm"
),
url
:
t
.
detailsUrl
(
e
)},
i
=
{
clientFrom
:
"知乎"
,
contentTitle
:
t
.
removeEMTAG
(
e
.
highlight
.
title
),
title
:
t
.
removeEMTAG
(
e
.
highlight
.
title
),
text
:
t
.
removeEMTAG
(
e
.
highlight
.
description
),
url
:
t
.
detailsUrl
(
e
),
time
:
r
()(
1
e3
*
e
.
object
.
created_time
).
format
(
"YYYY-MM-DD HH:mm"
),
source
:
e
.
object
.
author
?
e
.
object
.
author
.
name
:
"知乎"
,
id
:
a
,
index
:
a
};
o
.
push
({
data
:
i
,
value
:
n
})}),
t
.
selectList
=
o
}).
catch
(
function
(
t
){
console
.
log
(
"知乎接口报错提示:"
+
t
.
message
)})}}}),
f
=
u
,
p
=
(
a
(
"4b62"
),
a
(
"2877"
)),
m
=
Object
(
p
[
"a"
])(
f
,
n
,
i
,
!
1
,
null
,
"5d90c6f8"
,
null
);
e
[
"a"
]
=
m
.
exports
},
"8f53"
:
function
(
t
,
e
,
a
){},
"93e1"
:
function
(
t
,
e
,
a
){
"use strict"
;(
function
(
t
){
var
n
,
i
=
a
(
"2b0e"
),
c
=
a
(
"88d0"
);
function
s
(
e
){
return
e
?(
n
.
$children
[
0
].
setBg
(
e
),
!
1
):(
t
(
"#root"
).
remove
(),
t
(
"body"
).
prepend
(
'<div id="zhihuTemplate"></div>'
),
n
=
new
i
[
"a"
]({
el
:
"#zhihuTemplate"
,
render
:
function
(
t
){
return
t
(
c
[
"a"
])}}),
n
)}
e
[
"a"
]
=
s
}).
call
(
this
,
a
(
"debc"
))},
a28d
:
function
(
t
,
e
,
a
){
"use strict"
;(
function
(
t
){
a
(
"a481"
),
a
(
"4917"
),
a
(
"28a5"
),
a
(
"7514"
),
a
(
"ac6a"
);
var
n
=
a
(
"07a4"
),
i
=
a
(
"6bf2"
),
c
=
a
.
n
(
i
),
s
=
a
(
"3ac8"
),
o
=
a
(
"e626"
);
function
r
(
e
){
var
a
=
[];
e
.
forEach
(
function
(
e
,
n
){
var
i
=
t
(
e
);
i
.
attr
(
"id"
,
"zhiwei_"
+
n
);
var
s
=
i
.
find
(
".vrTitle a"
).
text
().
trim
(),
o
=
i
.
find
(
".news-txt span"
).
text
();
o
||
(
o
=
i
.
find
(
".news-txt"
).
text
());
var
r
=
i
.
find
(
".news-from"
).
text
(),
l
=
r
.
split
(
/
\s
/
);
r
=
l
.
shift
();
var
u
=
i
.
find
(
".vrTitle a"
).
attr
(
"href"
),
d
=
i
.
find
(
".news-from"
).
html
(),
f
=
/.*
\&
nbsp;
(
.*
)
<!--resultinfodate:.*-->$/
,
p
=
d
.
match
(
f
);
if
(
null
==
p
){
var
m
=
/.*
\&
nbsp;
(
.*
)
/
;
p
=
d
.
match
(
m
)}
var
h
=
p
[
1
];
if
(
-
1
!=
h
.
indexOf
(
"分钟前"
)){
var
b
=
h
.
split
(
"分钟前"
)[
0
];
h
=
c
()().
subtract
(
b
,
"minute"
).
format
(
"YYYY-MM-DD HH:mm"
)}
else
if
(
-
1
!=
h
.
indexOf
(
"小时前"
)){
var
v
=
h
.
split
(
"小时前"
)[
0
];
h
=
c
()().
subtract
(
v
,
"hours"
).
format
(
"YYYY-MM-DD HH:mm"
)}
else
if
(
-
1
!=
h
.
indexOf
(
"天前"
)){
var
g
=
h
.
split
(
"天前"
)[
0
];
h
=
c
()().
subtract
(
g
,
"days"
).
format
(
"YYYY-MM-DD"
)}
else
if
(
/
(\d{4})
-
(\d{0,2})
-
(\d{0,2})\s
*/
.
test
(
h
)){
var
_
=
new
Date
(
h
.
replace
(
/-/
,
"/"
));
h
=
c
()(
_
).
format
(
"YYYY-MM-DD"
)}
else
h
=
null
;
var
w
=
{
clientFrom
:
"网媒"
,
contentTitle
:
s
,
publish
:
r
,
title
:
s
,
url
:
u
,
text
:
o
,
time
:
h
},
y
=
{
clientFrom
:
"网媒"
,
contentTitle
:
s
,
publish
:
r
,
id
:
n
,
index
:
n
,
title
:
s
,
text
:
o
,
source
:
r
,
time
:
h
,
url
:
u
};
t
(
e
).
find
(
".copy_button"
).
attr
(
"data-value"
,
JSON
.
stringify
(
w
)),
t
(
e
).
find
(
'input[type="checkbox"]'
).
prop
(
"checked"
)
&&
a
.
push
({
data
:
y
,
value
:
w
})}),
n
[
"a"
].
commit
(
"increment"
,
a
)}
function
l
(
e
){
if
(
e
)
return
Object
(
o
[
"a"
])(
e
),
!
1
;
var
a
=!
1
,
n
=
"sogouNews"
;
t
(
"#right"
).
remove
(),
t
(
"body"
).
attr
(
"id"
,
n
);
var
i
=
t
(
"#"
.
concat
(
n
,
" .results .vrwrap"
)).
toArray
();
i
.
forEach
(
function
(
e
,
a
){
t
(
e
).
append
(
"<div class='plug_checkbox_foot'><span class='checkbox_plug_i'><input type='checkbox' /></span><span class=
\"
copy_button
\"
>复制</span></div>"
)}),
i
=
i
.
filter
(
function
(
e
){
return
console
.
log
(
t
(
e
)),
t
(
e
).
find
(
".vrTitle"
).
length
}),
r
(
i
),
t
(
".all_plug_checkbox"
).
click
(
function
(){
a
=!
a
;
var
t
=
Object
(
s
[
"a"
])(
i
,
a
);
r
(
t
)}),
t
(
"#"
.
concat
(
n
,
" .results .vrwrap .checkbox_plug_i input"
)).
click
(
function
(){
t
(
this
).
parents
(
".vrwrap"
).
index
();
r
(
i
)})}
e
[
"a"
]
=
l
}).
call
(
this
,
a
(
"debc"
))},
b19f
:
function
(
t
,
e
,
a
){},
b58b
:
function
(
t
,
e
,
a
){
"use strict"
;(
function
(
t
){
function
a
(
e
){
t
(
"#content_right"
).
remove
()}
e
[
"a"
]
=
a
}).
call
(
this
,
a
(
"debc"
))},
b66f
:
function
(
t
,
e
,
a
){
"use strict"
;
var
n
=
a
(
"c1a3"
),
i
=
a
.
n
(
n
);
i
.
a
},
c1a3
:
function
(
t
,
e
,
a
){},
c48b
:
function
(
t
,
e
,
a
){
"use strict"
;
a
.
r
(
e
),
function
(
t
){
a
(
"cadf"
),
a
(
"551c"
),
a
(
"f751"
),
a
(
"097d"
);
var
e
=
a
(
"2b0e"
),
n
=
a
(
"7f43"
),
i
=
a
.
n
(
n
),
c
=
(
a
(
"07a4"
),
a
(
"c62c"
)),
s
=
a
(
"120d"
),
o
=
a
(
"dcd2"
),
r
=
a
(
"6837"
);
a
(
"b19f"
);
e
[
"a"
].
prototype
.
$axios
=
i
.
a
;
var
l
=
document
.
createElement
(
"div"
);
l
.
setAttribute
(
"id"
,
"newbodyleft"
);
var
u
=
document
.
createElement
(
"div"
);
u
.
setAttribute
(
"id"
,
"all_plug_checkbox_center"
);
var
d
=
document
.
createElement
(
"div"
);
d
.
setAttribute
(
"id"
,
"newbodyright"
),
chrome
.
storage
.
local
.
get
([
"pluginSwitch"
],
function
(
a
){
!
a
.
hasOwnProperty
(
"pluginSwitch"
)
||
a
.
pluginSwitch
?(
t
(
"body"
).
attr
(
"class"
,
"zhiwei_plugs"
),
t
(
"body"
).
prepend
(
l
),
t
(
"body"
).
prepend
(
u
),
t
(
"body"
).
prepend
(
d
),
e
[
"a"
].
prototype
.
VUEPT
=
c
[
"a"
].
pt
,
e
[
"a"
].
prototype
.
VUETYPE
=
c
[
"a"
].
type
,
new
e
[
"a"
]({
render
:
function
(
t
){
return
t
(
s
[
"a"
])}}).
$mount
(
"#newbodyleft"
),
new
e
[
"a"
]({
render
:
function
(
t
){
return
t
(
o
[
"a"
])}}).
$mount
(
"#all_plug_checkbox_center"
),
new
e
[
"a"
]({
render
:
function
(
t
){
return
t
(
r
[
"a"
])}}).
$mount
(
"#newbodyright"
),
c
[
"a"
].
template
()):(
t
(
"#newbodyleft"
).
remove
(),
t
(
"#newbodyright"
).
remove
())}),
chrome
.
storage
.
onChanged
.
addListener
(
function
(
t
,
e
){
t
.
pluginSwitch
&&
window
.
location
.
reload
()}),
chrome
.
storage
.
sync
.
clear
()}.
call
(
this
,
a
(
"debc"
))},
c62c
:
function
(
t
,
e
,
a
){
"use strict"
;
a
(
"4917"
),
a
(
"ac6a"
);
var
n
=
a
(
"fe93"
),
i
=
a
(
"d137"
),
c
=
a
(
"811f"
),
s
=
a
(
"93e1"
),
o
=
a
(
"3cbe"
),
r
=
a
(
"7d36"
),
l
=
a
(
"a28d"
),
u
=
a
(
"0fcc"
),
d
=
a
(
"d2eb"
),
f
=
a
(
"b58b"
),
p
=
window
.
location
.
href
,
m
=
null
,
h
=
null
,
b
=
[
/http
\:\/\/(
news
\.
baidu
)\.
com
\/
.*/
,
/http
\:\/\/(
s
\.
weibo
)\.
com
\/
.*/
,
/https
\:\/\/(
s
\.
weibo
)\.
com
\/
.*/
,
/http
\:\/\/(
weixin
\.
sogou
)\.
com
\/
.*/
,
/https
\:\/\/(
weixin
\.
sogou
)\.
com
\/
.*/
,
/http
\:\/\/(
wx
\.
sogou
)\.
com
\/
.*/
,
/http
\:\/\/(
news
\.
sogou
)\.
com
\/
.*/
,
/https
\:\/\/(
news
\.
sogou
)\.
com
\/
.*/
,
/http
\:\/\/(
www
\.
toutiao
)\.
com
\/
.*/
,
/https
\:\/\/(
www
\.
toutiao
)\.
com
\/
.*/
,
/https
\:\/\/(
www
\.
baidu
)\.
com
\/
.*/
,
/https
\:\/\/(
www
\.
baidu
)\.
com
\/
.*
(
news
)
.*/
,
/http
\:\/\/(
www
\.
baidu
)\.
com
\/
.*/
,
/https
\:\/\/(
www
\.
sogou
)\.
com
\/
.*/
,
/http
\:\/\/(
www
\.
sogou
)\.
com
\/
.*/
,
/https
\:\/\/(
www
\.
so
)\.
com
\/
.*/
,
/http
\:\/\/(
news
\.
so
)\.
com
\/
.*/
,
/https
\:\/\/(
news
\.
so
)\.
com
\/
.*/
,
/https
\:\/\/(
www
\.
zhihu
)\.
com
\/
.*/
];
function
v
(){
switch
(
m
){
case
"www.baidu"
:
return
console
.
log
(
"baidu"
),
h
?{
template
:
d
[
"a"
],
pt
:
"百度新闻"
,
type
:
"网媒"
}:{
template
:
f
[
"a"
],
pt
:
"百度"
,
type
:
"网媒"
};
case
"news.baidu"
:
return
console
.
log
(
"news baidu"
),{
template
:
d
[
"a"
],
pt
:
"百度新闻"
,
type
:
"网媒"
};
case
"news.sogou"
:
return
console
.
log
(
"news sogou"
),{
template
:
l
[
"a"
],
pt
:
"搜狗新闻"
,
type
:
"网媒"
};
case
"weixin.sogou"
:
return
console
.
log
(
"weixin sogou"
),{
template
:
r
[
"a"
],
pt
:
"搜狗微信"
,
type
:
"微信"
};
case
"wx.sogou"
:
return
console
.
log
(
"wx sogou"
),{
template
:
r
[
"a"
],
pt
:
"搜狗微信"
,
type
:
"微信"
};
case
"www.sogou"
:
return
console
.
log
(
"sogou"
),{
template
:
u
[
"a"
],
pt
:
"搜狗"
,
type
:
"网媒"
};
case
"s.weibo"
:
return
console
.
log
(
"s weibo"
),{
template
:
o
[
"a"
],
pt
:
"微博"
,
type
:
"微博"
};
case
"www.so"
:
return
console
.
log
(
"so"
),{
template
:
n
[
"a"
],
pt
:
"360搜索页"
,
type
:
"网媒"
};
case
"news.so"
:
return
{
template
:
i
[
"a"
],
pt
:
"360新闻"
,
type
:
"网媒"
};
case
"www.toutiao"
:
return
console
.
log
(
"www.toutiao"
),{
template
:
c
[
"a"
],
pt
:
"今日头条"
,
type
:
"今日头条"
};
case
"www.zhihu"
:
return
console
.
log
(
"www.zhihu"
),{
template
:
s
[
"a"
],
pt
:
"知乎"
,
type
:
"知乎"
}}}
b
.
forEach
(
function
(
t
){
var
e
=
p
.
match
(
t
);
e
&&
(
m
=
e
[
1
],
h
=
e
[
2
])}),
console
.
log
(
v
()),
e
[
"a"
]
=
v
()},
cf58
:
function
(
t
,
e
,
a
){
"use strict"
;(
function
(
t
){
a
(
"7514"
),
a
(
"3b2b"
),
a
(
"ac6a"
),
a
(
"a481"
),
a
(
"6762"
),
a
(
"2fdb"
),
a
(
"7f7f"
);
var
n
=
[{
name
:
"微博"
,
text
:
"weiboStyle"
,
field
:[
"clientFrom"
,
"tag"
,
"publish"
,
"vType"
,
"fans"
,
"text"
,
"publishTwo"
,
"level"
,
"urlTwo"
,
"textTwo"
,
"txChannel"
,
"url"
]},{
name
:
"网媒"
,
child
:[
"微信"
,
"网媒"
,
"平媒"
,
"今日头条"
,
"自媒体"
,
"客户端"
,
"贴吧论坛"
,
"问答"
],
text
:
"mediaStyle"
,
field
:[
"rootPublish"
,
"clientFrom"
,
"tag"
,
"publish"
,
"level"
,
"text"
,
"txChannel"
,
"url"
]},{
name
:
"知乎"
,
text
:
"zhihuStyle"
,
field
:[
"clientFrom"
,
"tag"
,
"text"
,
"textTwo"
,
"publish"
,
"browse"
,
"answer_count"
,
"follow"
,
"txChannel"
,
"url"
]},{
name
:
"视频"
,
text
:
"videoStyle"
,
field
:[
"clientFrom"
,
"tag"
,
"publish"
,
"text"
,
"txChannel"
,
"url"
]}],
i
=
null
,
c
=
null
,
s
=
null
,
o
=
function
(
t
){
n
.
some
(
function
(
e
){
return
e
.
name
===
t
?(
c
=
e
.
text
,
s
=
e
.
field
,
!
0
):
e
.
child
&&
e
.
child
.
includes
(
t
)?(
c
=
e
.
text
,
s
=
e
.
field
,
!
0
):
void
0
}),
chrome
.
storage
.
sync
.
get
(
"copyString"
,
function
(
t
){
i
=
t
.
copyString
.
data
.
data
.
copyStyle
})};
function
r
(
t
,
e
){
var
a
=
null
;
return
a
=
e
?
i
.
weiboForwardStyle
:
"zhihuStyle"
===
c
?
i
[
c
].
replace
(
/(浏览:browse,评论:answer_count,关注:follow)/
,
""
):
i
[
c
],
s
.
forEach
(
function
(
e
){
var
n
=
new
RegExp
(
"
\\
b"
+
e
+
"
\\
b"
,
"g"
),
i
=
new
RegExp
(
"
\\
s*[-@]?"
+
e
+
"-?"
,
"g"
),
c
=
new
RegExp
(
"[
\\
[
\\
((【]
\\
s*"
+
e
+
"
\\
s*[
\\
]
\\
))】]"
,
"g"
);
e
=
"text"
===
e
?
"contentTitle"
:
e
,
a
=
t
[
e
]
||
0
===
t
[
e
]?
a
.
replace
(
n
,
t
[
e
]):
c
.
test
(
a
)?
a
.
replace
(
c
,
""
):
a
.
replace
(
i
,
""
)}),
a
}
function
l
(
e
){
var
a
=
t
(
'<textarea id="listcopy">'
);
t
(
document
.
body
).
append
(
a
),
a
.
css
({
position
:
"fixed"
});
var
n
=
t
(
e
.
currentTarget
).
parents
(
".card-wrap"
).
find
(
".card-comment"
).
length
,
i
=
JSON
.
parse
(
unescape
(
t
(
e
.
currentTarget
).
attr
(
"data-value"
))),
c
=
r
(
i
,
n
);
a
.
val
(
c
),
a
.
focus
(),
t
(
e
.
target
).
html
(
"OK"
),
a
.
select
(),
document
.
execCommand
(
"copy"
),
a
.
remove
()}
var
u
=
function
(
e
){
var
a
=
t
(
'<textarea id="listallcopy">'
),
n
=
""
;
a
.
css
({
position
:
"fixed"
}),
t
(
document
.
body
).
append
(
a
),
e
.
forEach
(
function
(
t
){
var
e
=!!
t
.
publishTwo
,
a
=
r
(
t
,
e
);
n
+=
""
===
n
?
""
.
concat
(
a
):
"
\
n"
.
concat
(
a
)}),
a
.
val
(
n
),
a
.
focus
(),
a
.
select
(),
document
.
execCommand
(
"copy"
),
a
.
remove
()};
t
(
"body"
).
on
(
"click"
,
".copy_button"
,
function
(
t
){
l
(
t
)}),
e
[
"a"
]
=
{
onlyCopy
:
o
,
checkCopy
:
u
,
smallCOPY
:
l
}}).
call
(
this
,
a
(
"debc"
))},
d137
:
function
(
t
,
e
,
a
){
"use strict"
;(
function
(
t
){
a
(
"28a5"
),
a
(
"7514"
),
a
(
"ac6a"
);
var
n
=
a
(
"07a4"
),
i
=
a
(
"6bf2"
),
c
=
a
.
n
(
i
),
s
=
a
(
"3ac8"
),
o
=
a
(
"e626"
);
function
r
(
e
){
var
a
=
[];
e
.
forEach
(
function
(
e
,
n
){
var
i
=
t
(
e
);
i
.
attr
(
"id"
,
"zhiwei_"
+
n
);
var
s
=
null
,
o
=
null
;
i
.
find
(
"h3 a"
).
text
()?(
s
=
i
.
find
(
"h3 a"
).
text
().
trim
(),
o
=
i
.
find
(
"h3 a"
).
attr
(
"href"
)):(
s
=
i
.
find
(
".js-title a"
).
text
().
trim
(),
o
=
i
.
find
(
".js-title a"
).
attr
(
"href"
));
var
r
=
i
.
find
(
".summary"
).
text
(),
l
=
i
.
find
(
".sitename"
).
text
(),
u
=
i
.
find
(
".info"
).
text
(),
d
=
u
.
split
(
"|"
)[
1
].
trim
(),
f
=
d
;
if
(
-
1
!=
f
.
indexOf
(
"分钟前"
)){
var
p
=
f
.
split
(
"分钟前"
)[
0
];
f
=
c
()().
subtract
(
p
,
"minute"
).
format
(
"YYYY-MM-DD HH:mm"
)}
else
if
(
-
1
!=
f
.
indexOf
(
"小时前"
)){
var
m
=
f
.
split
(
"小时前"
)[
0
];
f
=
c
()().
subtract
(
m
,
"hours"
).
format
(
"YYYY-MM-DD HH:mm"
)}
else
if
(
-
1
!=
f
.
indexOf
(
"天前"
)){
var
h
=
f
.
split
(
"天前"
)[
0
];
f
=
c
()().
subtract
(
h
,
"days"
).
format
(
"YYYY-MM-DD HH:mm"
)}
else
f
=
c
()(
d
).
format
(
"YYYY-MM-DD HH:mm"
);
var
b
=
{
clientFrom
:
"网媒"
,
publish
:
l
,
title
:
s
,
contentTitle
:
s
,
url
:
o
,
text
:
r
,
time
:
f
},
v
=
{
clientFrom
:
"网媒"
,
publish
:
l
,
contentTitle
:
s
,
id
:
n
,
index
:
n
,
title
:
s
,
text
:
r
,
source
:
l
,
time
:
f
,
url
:
o
,
mark
:
!
1
};
t
(
e
).
find
(
".copy_button"
).
attr
(
"data-value"
,
JSON
.
stringify
(
b
)),
t
(
e
).
find
(
'input[type="checkbox"]'
).
prop
(
"checked"
)
&&
a
.
push
({
data
:
v
,
value
:
b
})}),
n
[
"a"
].
commit
(
"increment"
,
a
)}
function
l
(
e
){
if
(
e
)
return
Object
(
o
[
"a"
])(
e
),
!
1
;
var
a
=
"soNews"
,
n
=!
1
;
t
(
"body"
).
attr
(
"id"
,
a
),
t
(
"body"
).
attr
(
"class"
,
"newsoNews"
),
t
(
".info-flow-scrollbar .info-flow"
).
remove
(),
t
(
".newsoNews #side"
).
remove
();
var
i
=
[];
t
(
".newsoNews #news li"
).
each
(
function
(
e
,
a
){
"news"
!==
t
(
this
).
attr
(
"data-from"
)
&&
"wemedia"
!==
t
(
this
).
attr
(
"data-from"
)
||
(
t
(
this
).
append
(
"<div class='plug_checkbox_foot'><span class='checkbox_plug_i'><input type='checkbox' /></span><span class=
\"
copy_button
\"
>复制</span></div>"
),
i
.
push
(
this
))}),
r
(
i
),
t
(
"#main"
).
addClass
(
"soxinwen_Plug"
),
t
(
".all_plug_checkbox"
).
click
(
function
(){
n
=!
n
;
var
t
=
Object
(
s
[
"a"
])(
i
,
n
);
r
(
t
)}),
t
(
".checkbox_plug_i input"
).
click
(
function
(){
r
(
i
)})}
e
[
"a"
]
=
l
}).
call
(
this
,
a
(
"debc"
))},
d2eb
:
function
(
t
,
e
,
a
){
"use strict"
;(
function
(
t
){
a
(
"28a5"
),
a
(
"a481"
),
a
(
"7514"
),
a
(
"ac6a"
);
var
n
=
a
(
"07a4"
),
i
=
a
(
"6bf2"
),
c
=
a
.
n
(
i
),
s
=
a
(
"3ac8"
),
o
=
a
(
"e626"
);
function
r
(
e
){
var
a
=
[];
e
.
forEach
(
function
(
e
,
n
){
var
i
=
t
(
e
);
i
.
attr
(
"id"
,
"zhiwei_"
+
n
);
var
s
=
i
.
find
(
".c-title a"
).
text
().
trim
(),
o
=
i
.
find
(
".c-summary .c-author"
).
text
().
trim
(),
r
=
i
.
find
(
".c-summary"
).
remove
(
"p"
).
remove
(
".c-info"
).
text
().
trim
().
replace
(
"百度快照"
,
""
);
r
=
r
.
substring
(
o
.
length
,
r
.
length
),
r
=
r
.
replace
(
"查看更多相关新闻>> -"
,
""
).
replace
(
/
\s
+/g
,
""
);
var
l
,
u
,
d
=
i
.
find
(
".c-summary .c-author"
).
text
().
trim
();
d
=
d
.
replace
(
/
\&
nbsp
\;
/gi
,
""
),
d
=
d
.
split
(
/
\s\s
/
),
d
=
d
.
filter
(
function
(
t
){
return
t
}),
d
.
length
>
1
?(
l
=
d
[
0
],
u
=
d
[
1
]):(
l
=
""
,
u
=
d
[
0
]);
var
f
=
i
.
find
(
".c-title a"
).
attr
(
"href"
).
trim
();
if
(
-
1
!=
u
.
indexOf
(
"分钟前"
)){
var
p
=
u
.
split
(
"分钟前"
)[
0
];
u
=
c
()().
subtract
(
p
,
"minute"
).
format
(
"YYYY-MM-DD HH:mm"
)}
else
if
(
-
1
!=
u
.
indexOf
(
"小时前"
)){
var
m
=
u
.
split
(
"小时前"
)[
0
];
u
=
c
()().
subtract
(
m
,
"hours"
).
format
(
"YYYY-MM-DD HH:mm"
)}
else
if
(
-
1
!=
u
.
indexOf
(
"天前"
)){
var
h
=
u
.
split
(
"天前"
)[
0
];
u
=
c
()().
subtract
(
h
,
"days"
).
format
(
"YYYY-MM-DD HH:mm"
)}
else
u
=
/
(\d{4})
年
(\d{0,2})
月
(\d{0,2})
日
(\s
*
)
/
.
test
(
u
)?
u
.
replace
(
/
(\d{4})
年
(\d{0,2})
月
(\d{0,2})
日
(\s
*
)
/
,
"$1-$2-$3 $4"
):
null
;
u
=
u
.
trim
();
var
b
=
{
clientFrom
:
"网媒"
,
publish
:
l
,
contentTitle
:
s
,
text
:
r
,
url
:
f
,
time
:
u
},
v
=
{
clientFrom
:
"网媒"
,
contentTitle
:
s
,
publish
:
l
,
id
:
n
,
index
:
n
,
title
:
s
,
text
:
r
,
source
:
l
,
time
:
u
,
url
:
f
};
t
(
e
).
find
(
".copy_button"
).
attr
(
"data-value"
,
JSON
.
stringify
(
b
)),
t
(
e
).
find
(
'input[type="checkbox"]'
).
prop
(
"checked"
)
&&
a
.
push
({
data
:
v
,
value
:
b
})}),
n
[
"a"
].
commit
(
"increment"
,
a
)}
function
l
(
e
){
if
(
e
)
return
Object
(
o
[
"a"
])(
e
),
!
1
;
var
a
=!
1
,
n
=
"zhiwei_baiduNews"
;
t
(
"body"
).
attr
(
"id"
,
n
);
var
i
=
t
(
"#"
.
concat
(
n
,
" #content_left .result"
)).
toArray
();
console
.
log
(
i
),
i
.
forEach
(
function
(
e
){
t
(
e
).
append
(
"<div class='plug_checkbox_foot'><span class='checkbox_plug_i'><input type='checkbox' /></span><span class=
\"
copy_button
\"
>复制</span></div>"
)}),
r
(
i
),
t
(
".all_plug_checkbox"
).
click
(
function
(
t
){
a
=!
a
;
var
e
=
Object
(
s
[
"a"
])(
i
,
a
);
r
(
e
)}),
t
(
".checkbox_plug_i input"
).
click
(
function
(){
r
(
i
)})}
e
[
"a"
]
=
l
}).
call
(
this
,
a
(
"debc"
))},
d841
:
function
(
t
,
e
,
a
){},
dcd2
:
function
(
t
,
e
,
a
){
"use strict"
;
var
n
=
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
directives
:[{
name
:
"drag"
,
rawName
:
"v-drag"
}],
staticClass
:
"header_PLUG_zhiwei"
,
style
:{
left
:
t
.
left
,
top
:
t
.
top
,
right
:
t
.
left
?
"auto"
:
"660px"
}},[
a
(
"button"
,{
staticClass
:
"all_plug_checkbox"
,
attrs
:{
id
:
"all_plug_checkbox"
}},[
t
.
_v
(
"全选/取消"
)]),
a
(
"button"
,{
staticClass
:
"checkUpMark"
,
on
:{
click
:
function
(
e
){
return
t
.
checkHandle
()}}},[
t
.
_v
(
"检查是否标注"
)]),
a
(
"button"
,{
on
:{
click
:
function
(
e
){
return
e
.
stopPropagation
(),
t
.
selectCOpy
()}}},[
t
.
_v
(
"复制选中文本"
)])])},
i
=
[],
c
=
a
(
"4aa1"
),
s
=
c
[
"a"
],
o
=
(
a
(
"b66f"
),
a
(
"2877"
)),
r
=
Object
(
o
[
"a"
])(
s
,
n
,
i
,
!
1
,
null
,
"62b15d88"
,
null
);
e
[
"a"
]
=
r
.
exports
},
e5e6
:
function
(
t
,
e
,
a
){
"use strict"
;(
function
(
t
){
a
(
"8615"
);
var
n
=
a
(
"75fc"
),
i
=
(
a
(
"4917"
),
a
(
"7514"
),
a
(
"ac6a"
),
a
(
"456d"
),
a
(
"cf58"
)),
c
=
a
(
"07a4"
),
s
=
a
(
"e429"
),
o
=
a
.
n
(
s
),
r
=
a
(
"6bf2"
),
l
=
a
.
n
(
r
);
e
[
"a"
]
=
{
name
:
"hello_plug_right"
,
data
:
function
(){
return
{
copystring
:
null
,
status
:
!
0
,
loading
:
!
1
,
excelData
:
null
,
excelTitle
:
null
,
store
:
c
[
"a"
],
datalist
:
null
,
projectList
:
null
,
formObject
:{
project
:
null
,
user
:
null
,
selcettag
:{}}}},
mounted
:
function
(){
var
t
=
this
;
chrome
.
storage
.
local
.
get
(
"configure"
,
function
(
e
){
t
.
projectList
=
e
.
configure
}),
chrome
.
storage
.
local
.
get
(
"project"
,
function
(
e
){
t
.
formObject
.
project
=
e
.
project
}),
chrome
.
storage
.
local
.
get
(
"user"
,
function
(
e
){
t
.
formObject
.
user
=
e
.
user
}),
chrome
.
storage
.
local
.
get
(
"rightStatue"
,
function
(
e
){
Object
.
keys
(
e
).
length
>
0
&&
(
t
.
status
=
e
.
rightStatue
)})},
computed
:{
storeformObject
:
function
(){
return
{
project
:
this
.
formObject
.
project
,
user
:
this
.
formObject
.
user
,
selcettag
:
this
.
formObject
.
selcettag
}},
list
:
function
(){
var
t
=
this
;
if
(
this
.
formObject
.
user
=
null
,
this
.
projectList
&&
this
.
formObject
.
project
){
var
e
=
this
.
projectList
.
find
(
function
(
e
){
return
e
.
groupName
===
t
.
formObject
.
project
});
return
e
}
return
{
userList
:[]}}},
watch
:{
storeformObject
:
function
(
t
){
c
[
"a"
].
commit
(
"setcheckParams"
,
t
)},
"store.state.loading"
:
function
(
t
){
this
.
loading
=
t
},
"store.state.datalist"
:
function
(
t
){
var
e
=
this
;
if
(
0
===
t
.
length
)
return
this
.
datalist
=
t
,
!
1
;
t
[
0
].
data
.
start
&&!
t
[
0
].
data
.
markstatus
?
this
.
datalist
=
t
.
map
(
function
(
t
){
if
(
t
.
data
.
mark
){
var
a
=
t
.
data
.
emotionType
.
match
(
/
(
,
\d
+=
\d
+
)
/gi
),
i
=
[];
e
.
list
.
tagGroup
.
forEach
(
function
(
t
){
i
.
push
.
apply
(
i
,
Object
(
n
[
"a"
])(
t
.
emotionList
))});
return
t
.
data
.
tagname
=
a
.
map
(
function
(
t
){
var
e
=
i
.
find
(
function
(
e
){
return
e
.
emotionId
===
t
}).
emotionName
;
return
e
}),
t
}
return
t
}):
this
.
datalist
=
t
},
"store.state.formObject.selcettag"
:
function
(
t
){
this
.
formObject
.
selcettag
=
t
},
"formObject.project"
:
function
(
t
){
chrome
.
storage
.
local
.
set
({
project
:
t
}),
this
.
sendbackground
(
t
)},
"formObject.user"
:
function
(
t
){
chrome
.
storage
.
local
.
set
({
user
:
t
})}},
methods
:{
sendbackground
:
function
(
t
){
var
e
=
this
,
a
=
t
||
""
;
chrome
.
runtime
.
sendMessage
({
action
:
"xhttp"
,
params
:{
project
:
a
},
url
:
"interface/getcopystyle"
},
function
(
t
){
var
a
=
t
;
chrome
.
storage
.
sync
.
set
({
copyString
:
a
}),
i
[
"a"
].
onlyCopy
(
e
.
VUETYPE
)})},
activeToggle
:
function
(){
this
.
status
=!
this
.
status
,
chrome
.
storage
.
local
.
set
({
rightStatue
:
this
.
status
})},
downloadExcel
:
function
(){
if
(
c
[
"a"
].
state
.
datalist
.
length
<
1
)
return
alert
(
"请选择需要下载的数据"
),
!
1
;
var
t
=
[
"title"
,
"source"
,
"text"
,
"url"
,
"time"
],
e
=
c
[
"a"
].
state
.
datalist
.
map
(
function
(
t
){
var
e
=
t
.
data
;
return
[
e
.
title
,
e
.
source
,
e
.
text
,
e
.
url
,
e
.
time
]});
this
.
excelData
=
[
t
].
concat
(
e
),
this
.
excelTitle
=
this
.
VUEPT
,
this
.
doit
()},
doit
:
function
(){
var
t
=
o
.
a
.
utils
.
book_new
(),
e
=
o
.
a
.
utils
.
aoa_to_sheet
(
this
.
excelData
);
o
.
a
.
utils
.
book_append_sheet
(
t
,
e
,
"sheet"
),
o
.
a
.
writeFile
(
t
,
""
.
concat
(
this
.
excelTitle
).
concat
(
l
()().
format
(
"YYYY-MM-DD HH:mm"
),
".xlsx"
),{
compression
:
!
0
})},
selectTAG
:
function
(
t
,
e
){
this
.
formObject
.
selcettag
[
t
]
=
e
?
e
.
emotionId
:
""
,
this
.
formObject
.
selcettag
=
Object
.
assign
({},
this
.
formObject
.
selcettag
)},
doingMark
:
function
(){
var
e
=
this
,
a
=
this
;
if
(
c
[
"a"
].
state
.
datalist
.
length
<
1
)
return
alert
(
"请选择数据"
),
!
1
;
var
n
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
formObject
.
selcettag
)),
i
=
Object
.
values
(
n
),
s
=
""
;
i
.
forEach
(
function
(
t
){
s
+=
t
});
var
o
=
c
[
"a"
].
state
.
datalist
.
map
(
function
(
t
){
return
t
.
data
}),
r
=
{
company
:
this
.
formObject
.
project
,
marks
:
o
,
name
:
this
.
formObject
.
user
,
type
:
s
,
pt
:
c
[
"a"
].
state
.
datalist
[
0
].
data
.
clientFrom
},
u
=
{};
if
(
Object
.
keys
(
this
.
formObject
.
selcettag
).
forEach
(
function
(
t
){
""
!==
e
.
formObject
.
selcettag
[
t
]
&&
(
u
[
t
]
=
e
.
formObject
.
selcettag
[
t
])}),
!
this
.
formObject
.
project
||!
this
.
formObject
.
user
)
return
alert
(
"请选择项目与操作者"
),
!
1
;
if
(
Object
.
keys
(
u
).
length
<
1
)
return
alert
(
"请选择标注类型"
),
!
1
;
this
.
loading
=!
0
,
t
(
".select_plugdata_list"
).
scrollTop
(
0
);
var
d
=
JSON
.
parse
(
JSON
.
stringify
(
r
));
d
.
marks
.
forEach
(
function
(
t
){
/
(
\
d
{
4
})
-
(
\
d
{
0
,
2
})
-
(
\
d
{
0
,
2
})
\
s
*
/.test
(
t.time
)
&&
(
console.log
(
t.time
)
,console.log
(
11111
)
,t.time=l
()(
t.time
)
.valueOf
())
}
)
,chrome.runtime.sendMessage
(
{action:"doingMark",value:d},function
(
t
)
{t.data&&
(
a.loading=!1,c
[
"a"
]
.commit
(
"updatadata",t.data.marks
))
}
)
}}}}
)
.call
(
this,a
(
"debc"
))
},e626:function
(
t,e,a
)
{"use strict";
(
function
(
t
)
{a
(
"ac6a"
)
;var n=function
(
e
)
{console.log
(
777777
)
,console.log
(
e
)
,e.filter
(
function
(
t
)
{return t.mark}
)
.forEach
(
function
(
e
)
{t
(
"#zhiwei_".concat
(
e.id
))
.removeClass
(
"notMark"
)
.addClass
(
"hasMark"
)
.css
(
{background:"rgba
(
140,190,178,0.2
)
",outline:"2px solid rgba
(
140,190,178,1
)
"}
)
}
)
};e
[
"a"
]
=n}
)
.call
(
this,a
(
"debc"
))
},ebea:function
(
t,e,a
)
{},fd99:function
(
t,e,a
)
{"use strict";var n=a
(
"ebea"
)
,i=a.n
(
n
)
;i.a},fe93:function
(
t,e,a
)
{"use strict";
(
function
(
t
)
{a
(
"28a5"
)
,a
(
"4917"
)
,a
(
"7514"
)
,a
(
"ac6a"
)
;var n=a
(
"07a4"
)
,i=a
(
"6bf2"
)
,c=a.n
(
i
)
,s=a
(
"3ac8"
)
,o=a
(
"e626"
)
;function r
(
e
)
{var a=
[]
;e.forEach
(
function
(
e,n
)
{var i=t
(
e
)
;i.attr
(
"id","zhiwei_"+n
)
;var s=i.find
(
".res-title a"
)
.text
()
.trim
()
,o=i.find
(
".res-rich.so-rich-news"
)
.text
()
,r=i.find
(
".mingpian"
)
.text
()
,l=i.find
(
".res-title a"
)
.attr
(
"data-url"
)
;l||
(
l=i.find
(
".res-title a"
)
.attr
(
"href"
))
;var u,d=i.find
(
".so-rich-news span.gray"
)
.html
()
,f=/
\
d
{
4
}
年\
d
{
1
,
2
}
月\
d
{
1
,
2
}
日
/
,
p
=
null
;
if
(
d
&&
(
p
=
d
.
match
(
f
)),
p
)
u
=
p
[
0
],
u
=
c
()(
u
,
"YYYY年MM月DD日"
).
format
(
"YYYY-MM-DD"
);
else
if
(
/
(
.*
)\&
nbsp;-
\&
nbsp;/
.
test
(
d
)){
var
m
=
/
(
.*
)\&
nbsp;-
\&
nbsp;/
;
p
=
d
.
match
(
m
),
u
=
p
[
1
]}
else
u
=
""
;
if
(
-
1
!=
u
.
indexOf
(
"分钟前"
)){
var
h
=
u
.
split
(
"分钟前"
)[
0
];
u
=
c
()().
subtract
(
h
,
"minute"
).
format
(
"YYYY年MM月DD日"
)}
else
if
(
-
1
!=
u
.
indexOf
(
"小时前"
)){
var
b
=
u
.
split
(
"小时前"
)[
0
];
u
=
c
()().
subtract
(
b
,
"hours"
).
format
(
"YYYY年MM月DD日"
)}
else
if
(
-
1
!=
u
.
indexOf
(
"天前"
)){
var
v
=
u
.
split
(
"天前"
)[
0
];
u
=
c
()().
subtract
(
v
,
"days"
).
format
(
"YYYY年MM月DD日"
)}
var
g
=
{
rootPublish
:
"网媒"
,
publish
:
r
,
title
:
s
,
contentTitle
:
s
,
url
:
l
,
text
:
o
,
time
:
u
},
_
=
{
rootPublish
:
"网媒"
,
publish
:
r
,
id
:
n
,
index
:
n
,
title
:
s
,
contentTitle
:
s
,
text
:
o
,
source
:
r
,
time
:
u
,
url
:
l
};
t
(
e
).
find
(
".copy_button"
).
attr
(
"data-value"
,
JSON
.
stringify
(
g
)),
t
(
e
).
find
(
'input[type="checkbox"]'
).
prop
(
"checked"
)
&&
a
.
push
({
data
:
_
,
value
:
g
})}),
n
[
"a"
].
commit
(
"increment"
,
a
)}
function
l
(
e
){
if
(
e
)
return
Object
(
o
[
"a"
])(
e
),
!
1
;
var
a
=
"soSearch"
,
n
=!
1
;
t
(
"#side"
).
remove
(),
t
(
"#res_news_flow"
).
remove
(),
t
(
"body"
).
attr
(
"id"
,
a
);
var
i
=
t
(
"#"
.
concat
(
a
,
" .result .res-list:has(.so-rich-news)"
)).
toArray
();
i
.
forEach
(
function
(
e
){
t
(
e
).
append
(
"<div class='plug_checkbox_foot'><span class='checkbox_plug_i'><input type='checkbox' /></span><span class=
\"
copy_button
\"
>复制</span></div>"
)}),
r
(
i
),
t
(
".all_plug_checkbox"
).
click
(
function
(){
n
=!
n
;
var
t
=
Object
(
s
[
"a"
])(
i
,
n
);
r
(
t
)}),
t
(
".checkbox_plug_i input"
).
click
(
function
(){
r
(
i
)})}
e
[
"a"
]
=
l
}).
call
(
this
,
a
(
"debc"
))}});
//# sourceMappingURL=contentscript.js.map
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment