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
d0e9e660
Commit
d0e9e660
authored
Aug 14, 2019
by
chencong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加测试文件1
parent
ab562ec1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
testout/contentscript.js
+2
-1
No files found.
testout/contentscript.js
View file @
d0e9e660
(
function
(
t
){
function
n
(
n
){
for
(
var
o
,
c
,
i
=
n
[
0
],
u
=
n
[
1
],
s
=
n
[
2
],
f
=
0
,
p
=
[];
f
<
i
.
length
;
f
++
)
c
=
i
[
f
],
r
[
c
]
&&
p
.
push
(
r
[
c
][
0
]),
r
[
c
]
=
0
;
for
(
o
in
u
)
Object
.
prototype
.
hasOwnProperty
.
call
(
u
,
o
)
&&
(
t
[
o
]
=
u
[
o
]);
l
&&
l
(
n
);
while
(
p
.
length
)
p
.
shift
()();
return
a
.
push
.
apply
(
a
,
s
||
[]),
e
()}
function
e
(){
for
(
var
t
,
n
=
0
;
n
<
a
.
length
;
n
++
){
for
(
var
e
=
a
[
n
],
o
=!
0
,
i
=
1
;
i
<
e
.
length
;
i
++
){
var
u
=
e
[
i
];
0
!==
r
[
u
]
&&
(
o
=!
1
)}
o
&&
(
a
.
splice
(
n
--
,
1
),
t
=
c
(
c
.
s
=
e
[
0
]))}
return
t
}
var
o
=
{},
r
=
{
contentscript
:
0
},
a
=
[];
function
c
(
n
){
if
(
o
[
n
])
return
o
[
n
].
exports
;
var
e
=
o
[
n
]
=
{
i
:
n
,
l
:
!
1
,
exports
:{}};
return
t
[
n
].
call
(
e
.
exports
,
e
,
e
.
exports
,
c
),
e
.
l
=!
0
,
e
.
exports
}
c
.
m
=
t
,
c
.
c
=
o
,
c
.
d
=
function
(
t
,
n
,
e
){
c
.
o
(
t
,
n
)
||
Object
.
defineProperty
(
t
,
n
,{
enumerable
:
!
0
,
get
:
e
})},
c
.
r
=
function
(
t
){
"undefined"
!==
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
t
,
Symbol
.
toStringTag
,{
value
:
"Module"
}),
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
})},
c
.
t
=
function
(
t
,
n
){
if
(
1
&
n
&&
(
t
=
c
(
t
)),
8
&
n
)
return
t
;
if
(
4
&
n
&&
"object"
===
typeof
t
&&
t
&&
t
.
__esModule
)
return
t
;
var
e
=
Object
.
create
(
null
);
if
(
c
.
r
(
e
),
Object
.
defineProperty
(
e
,
"default"
,{
enumerable
:
!
0
,
value
:
t
}),
2
&
n
&&
"string"
!=
typeof
t
)
for
(
var
o
in
t
)
c
.
d
(
e
,
o
,
function
(
n
){
return
t
[
n
]}.
bind
(
null
,
o
));
return
e
},
c
.
n
=
function
(
t
){
var
n
=
t
&&
t
.
__esModule
?
function
(){
return
t
[
"default"
]}:
function
(){
return
t
};
return
c
.
d
(
n
,
"a"
,
n
),
n
},
c
.
o
=
function
(
t
,
n
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
t
,
n
)},
c
.
p
=
"/out/"
;
var
i
=
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[],
u
=
i
.
push
.
bind
(
i
);
i
.
push
=
n
,
i
=
i
.
slice
();
for
(
var
s
=
0
;
s
<
i
.
length
;
s
++
)
n
(
i
[
s
]);
var
l
=
u
;
a
.
push
([
2
,
"chunk-vendors"
]),
e
()})({
2
:
function
(
t
,
n
,
e
){
t
.
exports
=
e
(
"c48b"
)},
"3d3c"
:
function
(
t
,
n
,
e
){
"use strict"
;
var
o
=
e
(
"d841"
),
r
=
e
.
n
(
o
);
r
.
a
},
c48b
:
function
(
t
,
n
,
e
){
"use strict"
;
e
.
r
(
n
);
e
(
"cadf"
),
e
(
"551c"
),
e
(
"f751"
),
e
(
"097d"
),
e
(
"8c92"
),
e
(
"7f43"
);
var
o
=
e
(
"2b0e"
),
r
=
e
(
"591a"
);
o
[
"a"
].
use
(
r
[
"a"
]);
new
r
[
"a"
].
Store
({
state
:{
loading
:
!
1
,
formObject
:{
project
:
null
,
user
:
null
,
selcettag
:{}},
datalist
:[]},
mutations
:{
uploading
:
function
(
t
,
n
){
t
.
loading
=
n
},
increment
:
function
(
t
,
n
){
t
.
datalist
=
JSON
.
parse
(
JSON
.
stringify
(
n
))},
setcheckParams
:
function
(
t
,
n
){
t
.
formObject
=
n
},
setcheckParamsTag
:
function
(
t
,
n
){
t
.
formObject
.
selcettag
=
n
},
updatadata
:
function
(
t
,
n
){
var
e
=
n
,
o
=
t
.
datalist
.
map
(
function
(
t
,
n
){
return
t
.
data
.
mark
=
e
[
n
].
mark
,
e
[
n
].
markstatus
?
t
.
data
.
markstatus
=
e
[
n
].
markstatus
:(
t
.
data
.
emotionType
=
e
[
n
].
emotionType
,
t
.
data
.
markstatus
&&
delete
t
.
data
.
markstatus
),
t
.
data
.
start
=!
0
,
t
});
t
.
datalist
=
o
}},
actions
:{},
getters
:{}});
var
a
=
function
(){
var
t
=
this
,
n
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
n
;
return
e
(
"div"
,{
staticClass
:
"hello_plug"
,
attrs
:{
id
:
"hello_plug"
}},[
e
(
"div"
,[
e
(
"h5"
,[
t
.
_v
(
"快捷链接"
)]),
e
(
"ul"
,[
e
(
"li"
,{
class
:{
activeOn
:
"微博"
===
t
.
VUEPT
},
on
:{
click
:
function
(
n
){
return
t
.
goHerf
(
"http://s.weibo.com/?topnav=1&wvr=6"
,
"微博"
)}}},[
e
(
"a"
,[
t
.
_v
(
"微博"
)])]),
e
(
"li"
,{
class
:{
activeOn
:
"搜狗微信"
===
t
.
VUEPT
},
on
:{
click
:
function
(
n
){
return
t
.
goHerf
(
"http://weixin.sogou.com/"
,
"搜狗微信"
)}}},[
e
(
"a"
,[
t
.
_v
(
"搜狗微信"
)])]),
e
(
"li"
,{
class
:{
activeOn
:
"百度新闻"
===
t
.
VUEPT
},
on
:{
click
:
function
(
n
){
return
t
.
goHerf
(
"http://news.baidu.com/?tn=news"
,
"百度新闻"
)}}},[
e
(
"a"
,[
t
.
_v
(
"百度新闻"
)])]),
e
(
"li"
,{
class
:{
activeOn
:
"搜狗新闻"
===
t
.
VUEPT
},
on
:{
click
:
function
(
n
){
return
t
.
goHerf
(
"http://news.sogou.com/"
,
"搜狗新闻"
)}}},[
e
(
"a"
,[
t
.
_v
(
"搜狗新闻"
)])]),
e
(
"li"
,{
class
:{
activeOn
:
"360新闻"
===
t
.
VUEPT
},
on
:{
click
:
function
(
n
){
return
t
.
goHerf
(
"https://news.so.com/ns?q=广告"
,
"360新闻"
)}}},[
e
(
"a"
,[
t
.
_v
(
"360新闻"
)])]),
e
(
"li"
,{
class
:{
activeOn
:
"今日头条"
===
t
.
VUEPT
},
on
:{
click
:
function
(
n
){
return
t
.
goHerf
(
"https://www.toutiao.com/search/?keyword="
,
"今日头条"
)}}},[
e
(
"a"
,[
t
.
_v
(
"今日头条"
)])]),
e
(
"li"
,{
class
:{
activeOn
:
"知乎"
===
t
.
VUEPT
},
on
:{
click
:
function
(
n
){
return
t
.
goHerf
(
"https://www.zhihu.com/search?type=content&q="
,
"知乎"
)}}},[
e
(
"a"
,[
t
.
_v
(
"知乎"
)])]),
e
(
"li"
,{
class
:{
activeOn
:
"百度"
===
t
.
VUEPT
},
on
:{
click
:
function
(
n
){
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"
,
"百度"
)}}},[
e
(
"a"
,[
t
.
_v
(
"百度"
)])]),
e
(
"li"
,{
class
:{
activeOn
:
"搜狗"
===
t
.
VUEPT
},
on
:{
click
:
function
(
n
){
return
t
.
goHerf
(
"https://www.sogou.com/"
,
"搜狗"
)}}},[
e
(
"a"
,[
t
.
_v
(
"搜狗"
)])]),
e
(
"li"
,{
class
:{
activeOn
:
"360搜索页"
===
t
.
VUEPT
},
on
:{
click
:
function
(
n
){
return
t
.
goHerf
(
"https://www.so.com/"
,
"360搜索页"
)}}},[
e
(
"a"
,[
t
.
_v
(
"360搜索页"
)])])])])])},
c
=
[],
i
=
{
name
:
"left"
,
data
:
function
(){
return
{}},
mounted
:
function
(){
console
.
log
(
"left"
)},
methods
:{
goHerf
:
function
(
t
,
n
){
window
.
open
(
t
,
"_blank"
)}}},
u
=
i
,
s
=
(
e
(
"3d3c"
),
e
(
"2877"
)),
l
=
Object
(
s
[
"a"
])(
u
,
a
,
c
,
!
1
,
null
,
null
,
null
);
l
.
exports
;
console
.
log
(
"笑笑笑笑"
)},
d841
:
function
(
t
,
n
,
e
){
}});
(
function
(
t
){
function
e
(
e
){
for
(
var
a
,
r
,
i
=
e
[
0
],
l
=
e
[
1
],
s
=
e
[
2
],
f
=
0
,
d
=
[];
f
<
i
.
length
;
f
++
)
r
=
i
[
f
],
o
[
r
]
&&
d
.
push
(
o
[
r
][
0
]),
o
[
r
]
=
0
;
for
(
a
in
l
)
Object
.
prototype
.
hasOwnProperty
.
call
(
l
,
a
)
&&
(
t
[
a
]
=
l
[
a
]);
u
&&
u
(
e
);
while
(
d
.
length
)
d
.
shift
()();
return
c
.
push
.
apply
(
c
,
s
||
[]),
n
()}
function
n
(){
for
(
var
t
,
e
=
0
;
e
<
c
.
length
;
e
++
){
for
(
var
n
=
c
[
e
],
a
=!
0
,
i
=
1
;
i
<
n
.
length
;
i
++
){
var
l
=
n
[
i
];
0
!==
o
[
l
]
&&
(
a
=!
1
)}
a
&&
(
c
.
splice
(
e
--
,
1
),
t
=
r
(
r
.
s
=
n
[
0
]))}
return
t
}
var
a
=
{},
o
=
{
contentscript
:
0
},
c
=
[];
function
r
(
e
){
if
(
a
[
e
])
return
a
[
e
].
exports
;
var
n
=
a
[
e
]
=
{
i
:
e
,
l
:
!
1
,
exports
:{}};
return
t
[
e
].
call
(
n
.
exports
,
n
,
n
.
exports
,
r
),
n
.
l
=!
0
,
n
.
exports
}
r
.
m
=
t
,
r
.
c
=
a
,
r
.
d
=
function
(
t
,
e
,
n
){
r
.
o
(
t
,
e
)
||
Object
.
defineProperty
(
t
,
e
,{
enumerable
:
!
0
,
get
:
n
})},
r
.
r
=
function
(
t
){
"undefined"
!==
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
t
,
Symbol
.
toStringTag
,{
value
:
"Module"
}),
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
})},
r
.
t
=
function
(
t
,
e
){
if
(
1
&
e
&&
(
t
=
r
(
t
)),
8
&
e
)
return
t
;
if
(
4
&
e
&&
"object"
===
typeof
t
&&
t
&&
t
.
__esModule
)
return
t
;
var
n
=
Object
.
create
(
null
);
if
(
r
.
r
(
n
),
Object
.
defineProperty
(
n
,
"default"
,{
enumerable
:
!
0
,
value
:
t
}),
2
&
e
&&
"string"
!=
typeof
t
)
for
(
var
a
in
t
)
r
.
d
(
n
,
a
,
function
(
e
){
return
t
[
e
]}.
bind
(
null
,
a
));
return
n
},
r
.
n
=
function
(
t
){
var
e
=
t
&&
t
.
__esModule
?
function
(){
return
t
[
"default"
]}:
function
(){
return
t
};
return
r
.
d
(
e
,
"a"
,
e
),
e
},
r
.
o
=
function
(
t
,
e
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
t
,
e
)},
r
.
p
=
"/out/"
;
var
i
=
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[],
l
=
i
.
push
.
bind
(
i
);
i
.
push
=
e
,
i
=
i
.
slice
();
for
(
var
s
=
0
;
s
<
i
.
length
;
s
++
)
e
(
i
[
s
]);
var
u
=
l
;
c
.
push
([
2
,
"chunk-vendors"
]),
n
()})({
"07a4"
:
function
(
t
,
e
,
n
){
"use strict"
;
var
a
=
n
(
"2b0e"
),
o
=
n
(
"591a"
);
a
[
"a"
].
use
(
o
[
"a"
]);
var
c
=
new
o
[
"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
n
=
e
,
a
=
t
.
datalist
.
map
(
function
(
t
,
e
){
return
t
.
data
.
mark
=
n
[
e
].
mark
,
n
[
e
].
markstatus
?
t
.
data
.
markstatus
=
n
[
e
].
markstatus
:(
t
.
data
.
emotionType
=
n
[
e
].
emotionType
,
t
.
data
.
markstatus
&&
delete
t
.
data
.
markstatus
),
t
.
data
.
start
=!
0
,
t
});
t
.
datalist
=
a
}},
actions
:{},
getters
:{}});
e
[
"a"
]
=
c
},
2
:
function
(
t
,
e
,
n
){
t
.
exports
=
n
(
"c48b"
)},
"3d3c"
:
function
(
t
,
e
,
n
){
"use strict"
;
var
a
=
n
(
"d841"
),
o
=
n
.
n
(
a
);
o
.
a
},
"4aa1"
:
function
(
t
,
e
,
n
){
"use strict"
;(
function
(
t
){
n
(
"ac6a"
),
n
(
"456d"
);
var
a
=
n
(
"cf58"
),
o
=
n
(
"07a4"
),
c
=
t
(
"#chromeID"
).
html
();
e
[
"a"
]
=
{
name
:
"hello_plug_center"
,
data
:
function
(){
return
{
left
:
null
,
top
:
"100px"
}},
mounted
:
function
(){
var
t
=
this
;
chrome
.
runtime
.
sendMessage
(
c
,{
action
:
"getstrong"
,
data
:
"movedata"
},
function
(
e
){
if
(
Object
.
keys
(
e
.
data
).
length
>
0
&&
e
.
data
.
movedata
){
var
n
=
e
.
data
;
t
.
left
=
n
.
movedata
.
left
,
t
.
top
=
n
.
movedata
.
top
}})},
methods
:{
selectCOpy
:
function
(){
if
(
o
[
"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
=
o
[
"a"
].
state
.
datalist
.
map
(
function
(
t
){
return
t
.
data
});
a
[
"a"
].
checkCopy
(
e
)},
checkHandle
:
function
(){
return
o
[
"a"
].
state
.
datalist
.
length
<
1
?(
alert
(
"请选择需要检索的数据"
),
!
1
):
o
[
"a"
].
state
.
formObject
.
project
?(
o
[
"a"
].
commit
(
"uploading"
,
!
0
),
t
(
".select_plugdata_list"
).
scrollTop
(
0
),
void
chrome
.
runtime
.
sendMessage
(
c
,{
action
:
"checkUpmark"
,
value
:
o
[
"a"
].
state
.
datalist
,
params
:
o
[
"a"
].
state
.
formObject
},
function
(
t
){
t
.
data
&&
(
o
[
"a"
].
commit
(
"uploading"
,
!
1
),
o
[
"a"
].
commit
(
"updatadata"
,
t
.
data
.
mark
),
"知乎"
===
selectPt
.
pt
||
selectPt
.
pt
,
console
.
log
(
selectPt
.
template
))})):(
alert
(
"请选择项目"
),
!
1
)}},
directives
:{
drag
:
function
(
t
,
e
){
t
.
onmousedown
=
function
(
e
){
var
n
=
e
.
clientX
-
t
.
offsetLeft
,
a
=
e
.
clientY
-
t
.
offsetTop
;
document
.
onmousemove
=
function
(
e
){
var
o
=
e
.
clientX
-
n
,
r
=
e
.
clientY
-
a
;
t
.
style
.
left
=
o
+
"px"
,
t
.
style
.
top
=
r
+
"px"
,
t
.
style
.
right
=
"auto"
,
chrome
.
runtime
.
sendMessage
(
c
,{
action
:
"SetStrong"
,
data
:{
movedata
:{
left
:
o
+
"px"
,
top
:
r
+
"px"
}}})},
document
.
onmouseup
=
function
(){
document
.
onmousemove
=
null
,
document
.
onmouseup
=
null
}}}}}}).
call
(
this
,
n
(
"debc"
))},
c48b
:
function
(
t
,
e
,
n
){
"use strict"
;
n
.
r
(
e
);
n
(
"cadf"
),
n
(
"551c"
),
n
(
"f751"
),
n
(
"097d"
),
n
(
"8c92"
),
n
(
"7f43"
),
n
(
"07a4"
);
var
a
=
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
n
=
t
.
_self
.
_c
||
e
;
return
n
(
"div"
,{
staticClass
:
"hello_plug"
,
attrs
:{
id
:
"hello_plug"
}},[
n
(
"div"
,[
n
(
"h5"
,[
t
.
_v
(
"快捷链接"
)]),
n
(
"ul"
,[
n
(
"li"
,{
class
:{
activeOn
:
"微博"
===
t
.
VUEPT
},
on
:{
click
:
function
(
e
){
return
t
.
goHerf
(
"http://s.weibo.com/?topnav=1&wvr=6"
,
"微博"
)}}},[
n
(
"a"
,[
t
.
_v
(
"微博"
)])]),
n
(
"li"
,{
class
:{
activeOn
:
"搜狗微信"
===
t
.
VUEPT
},
on
:{
click
:
function
(
e
){
return
t
.
goHerf
(
"http://weixin.sogou.com/"
,
"搜狗微信"
)}}},[
n
(
"a"
,[
t
.
_v
(
"搜狗微信"
)])]),
n
(
"li"
,{
class
:{
activeOn
:
"百度新闻"
===
t
.
VUEPT
},
on
:{
click
:
function
(
e
){
return
t
.
goHerf
(
"http://news.baidu.com/?tn=news"
,
"百度新闻"
)}}},[
n
(
"a"
,[
t
.
_v
(
"百度新闻"
)])]),
n
(
"li"
,{
class
:{
activeOn
:
"搜狗新闻"
===
t
.
VUEPT
},
on
:{
click
:
function
(
e
){
return
t
.
goHerf
(
"http://news.sogou.com/"
,
"搜狗新闻"
)}}},[
n
(
"a"
,[
t
.
_v
(
"搜狗新闻"
)])]),
n
(
"li"
,{
class
:{
activeOn
:
"360新闻"
===
t
.
VUEPT
},
on
:{
click
:
function
(
e
){
return
t
.
goHerf
(
"https://news.so.com/ns?q=广告"
,
"360新闻"
)}}},[
n
(
"a"
,[
t
.
_v
(
"360新闻"
)])]),
n
(
"li"
,{
class
:{
activeOn
:
"今日头条"
===
t
.
VUEPT
},
on
:{
click
:
function
(
e
){
return
t
.
goHerf
(
"https://www.toutiao.com/search/?keyword="
,
"今日头条"
)}}},[
n
(
"a"
,[
t
.
_v
(
"今日头条"
)])]),
n
(
"li"
,{
class
:{
activeOn
:
"知乎"
===
t
.
VUEPT
},
on
:{
click
:
function
(
e
){
return
t
.
goHerf
(
"https://www.zhihu.com/search?type=content&q="
,
"知乎"
)}}},[
n
(
"a"
,[
t
.
_v
(
"知乎"
)])]),
n
(
"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"
,
"百度"
)}}},[
n
(
"a"
,[
t
.
_v
(
"百度"
)])]),
n
(
"li"
,{
class
:{
activeOn
:
"搜狗"
===
t
.
VUEPT
},
on
:{
click
:
function
(
e
){
return
t
.
goHerf
(
"https://www.sogou.com/"
,
"搜狗"
)}}},[
n
(
"a"
,[
t
.
_v
(
"搜狗"
)])]),
n
(
"li"
,{
class
:{
activeOn
:
"360搜索页"
===
t
.
VUEPT
},
on
:{
click
:
function
(
e
){
return
t
.
goHerf
(
"https://www.so.com/"
,
"360搜索页"
)}}},[
n
(
"a"
,[
t
.
_v
(
"360搜索页"
)])])])])])},
o
=
[],
c
=
{
name
:
"left"
,
data
:
function
(){
return
{}},
mounted
:
function
(){
console
.
log
(
"left"
)},
methods
:{
goHerf
:
function
(
t
,
e
){
window
.
open
(
t
,
"_blank"
)}}},
r
=
c
,
i
=
(
n
(
"3d3c"
),
n
(
"2877"
)),
l
=
Object
(
i
[
"a"
])(
r
,
a
,
o
,
!
1
,
null
,
null
,
null
),
s
=
(
l
.
exports
,
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
n
=
t
.
_self
.
_c
||
e
;
return
n
(
"div"
,{
directives
:[{
name
:
"drag"
,
rawName
:
"v-drag"
}],
staticClass
:
"header_PLUG_zhiwei"
,
style
:{
left
:
t
.
left
,
top
:
t
.
top
,
right
:
t
.
left
?
"auto"
:
"660px"
}},[
n
(
"button"
,{
staticClass
:
"all_plug_checkbox"
,
attrs
:{
id
:
"all_plug_checkbox"
}},[
t
.
_v
(
"全选/取消"
)]),
n
(
"button"
,{
staticClass
:
"checkUpMark"
,
attrs
:{
id
:
"checkUp_mark"
},
on
:{
click
:
function
(
e
){
return
t
.
checkHandle
()}}},[
t
.
_v
(
"检查是否标注"
)]),
n
(
"button"
,{
on
:{
click
:
function
(
e
){
return
e
.
stopPropagation
(),
t
.
selectCOpy
()}}},[
t
.
_v
(
"复制选中文本"
)])])}),
u
=
[],
f
=
n
(
"4aa1"
),
d
=
f
[
"a"
],
p
=
(
n
(
"f51f"
),
Object
(
i
[
"a"
])(
d
,
s
,
u
,
!
1
,
null
,
null
,
null
));
p
.
exports
;
console
.
log
(
"笑笑笑笑2"
)},
c6e2
:
function
(
t
,
e
,
n
){},
cf58
:
function
(
t
,
e
,
n
){
"use strict"
;(
function
(
t
){
n
(
"7514"
),
n
(
"3b2b"
),
n
(
"ac6a"
),
n
(
"a481"
),
n
(
"6762"
),
n
(
"2fdb"
),
n
(
"7f7f"
);
var
a
=
t
(
"#chromeID"
).
html
(),
o
=
[{
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"
]}],
c
=
null
,
r
=
null
,
i
=
null
,
l
=
function
(
t
){
o
.
some
(
function
(
e
){
return
e
.
name
===
t
?(
r
=
e
.
text
,
i
=
e
.
field
,
!
0
):
e
.
child
&&
e
.
child
.
includes
(
t
)?(
r
=
e
.
text
,
i
=
e
.
field
,
!
0
):
void
0
}),
chrome
.
runtime
.
sendMessage
(
a
,{
action
:
"getstrong"
,
data
:
"copyString"
},
function
(
t
){
var
e
=
t
.
data
;
c
=
e
.
copyString
.
data
.
data
.
copyStyle
})};
function
s
(
t
,
e
){
var
n
=
null
;
return
n
=
e
?
c
.
weiboForwardStyle
:
"zhihuStyle"
===
r
?
c
[
r
].
replace
(
/(浏览:browse,评论:answer_count,关注:follow)/
,
""
):
c
[
r
],
i
.
forEach
(
function
(
e
){
var
a
=
new
RegExp
(
"
\\
b"
+
e
+
"
\\
b"
,
"g"
),
o
=
new
RegExp
(
"
\\
s*[-@]?"
+
e
+
"-?"
,
"g"
),
c
=
new
RegExp
(
"[
\\
[
\\
((【]
\\
s*"
+
e
+
"
\\
s*[
\\
]
\\
))】]"
,
"g"
);
e
=
"text"
===
e
?
"contentTitle"
:
e
,
n
=
t
[
e
]
||
0
===
t
[
e
]?
n
.
replace
(
a
,
t
[
e
]):
c
.
test
(
n
)?
n
.
replace
(
c
,
""
):
n
.
replace
(
o
,
""
)}),
n
}
function
u
(
e
){
var
n
=
t
(
'<textarea id="listcopy">'
);
t
(
document
.
body
).
append
(
n
),
n
.
css
({
position
:
"fixed"
});
var
a
=
t
(
e
.
currentTarget
).
parents
(
".card-wrap"
).
find
(
".card-comment"
).
length
,
o
=
JSON
.
parse
(
unescape
(
t
(
e
.
currentTarget
).
attr
(
"data-value"
))),
c
=
s
(
o
,
a
);
n
.
val
(
c
),
n
.
focus
(),
t
(
e
.
target
).
html
(
"OK"
),
n
.
select
(),
document
.
execCommand
(
"copy"
),
n
.
remove
()}
var
f
=
function
(
e
){
var
n
=
t
(
'<textarea id="listallcopy">'
),
a
=
""
;
n
.
css
({
position
:
"fixed"
}),
t
(
document
.
body
).
append
(
n
),
e
.
forEach
(
function
(
t
){
var
e
=!!
t
.
publishTwo
,
n
=
s
(
t
,
e
);
a
+=
""
===
a
?
""
.
concat
(
n
):
"
\
n"
.
concat
(
n
)}),
n
.
val
(
a
),
n
.
focus
(),
n
.
select
(),
document
.
execCommand
(
"copy"
),
n
.
remove
()};
t
(
"body"
).
on
(
"click"
,
".copy_button"
,
function
(
t
){
u
(
t
)}),
e
[
"a"
]
=
{
onlyCopy
:
l
,
checkCopy
:
f
}}).
call
(
this
,
n
(
"debc"
))},
d841
:
function
(
t
,
e
,
n
){},
f51f
:
function
(
t
,
e
,
n
){
"use strict"
;
var
a
=
n
(
"c6e2"
),
o
=
n
.
n
(
a
);
o
.
a
}});
//# sourceMappingURL=contentscript.js.map
//# 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