Repository navigation
Expand file tree
/
Copy pathcontent_script.js
More file actions
65 lines (58 loc) · 2.02 KB
/
Copy pathcontent_script.js
File metadata and controls
65 lines (58 loc) · 2.02 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
(async () => {
// console.log("팝업 페이지의 DOM 접근 : ", $("header.Header").text());
const cetegoryDom = $(`
<div id="extensionApp">
<div class="vpBox" v-show="showBtnsBoxTag">
<disp-func-btn
v-for="func in funcButtons"
v-if="func.display"
:name="func.name"
:text="func.text"
:icon="func.icon"
@funcinfo="funcdo" />
</div>
<div class="vpBox">
<div style="font-size:0.6rem;word-break:break-word;width:50px;color:yellow;font-weight:bold;">{{account}}</div>
<disp-voting-power
v-for="scot in vpList"
v-if="scot.display"
:favicon="scot.favicon"
:url="scot.url"
:vpstyle="scot.style"
:unit="scot.unit"
:percent="scot.vpPercent" />
</div>
<transition name="slide-fade">
<md-content class="md-elevation-7 popupPanel">
<user-shortcut v-show="showUserShortcut" @closefunc="allClose" />
</md-content>
</transition>
<transition name="slide-fade">
<md-content class="md-elevation-7 popupPanel tagFilter">
<tag-shortcut v-show="showTagShortcut" @closefunc="allClose" />
</md-content>
</transition>
<transition name="slide-fade">
<md-content class="md-elevation-7 popupPanel tagFilter">
<tag-filter v-show="showTagFilter" @closefunc="allClose" />
</md-content>
</transition>
<transition name="slide-fade">
<md-content class="md-elevation-7 popupPanel">
<get-markdown v-show="showGetMarkdown" @closefunc="allClose" />
</md-content>
</transition>
<transition name="slide-fade">
<md-content class="md-elevation-7 popupPanel">
<go-family-site v-show="showFamilySite" @closefunc="allClose" />
</md-content>
</transition>
</div>
`);
sites.forEach(site => {
if (location.href.indexOf(site.site) > -1) {
$(site.contentArea).after(cetegoryDom);
return;
}
});
})();