-
Notifications
You must be signed in to change notification settings - Fork 350
Expand file tree
/
Copy pathpopup.html
More file actions
166 lines (151 loc) · 5.44 KB
/
popup.html
File metadata and controls
166 lines (151 loc) · 5.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html>
<html id="stylus">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/icons.ttf" rel="preload" as="font" crossorigin="anonymous">
<%= htmlWebpackPlugin.tags.headTags %>
<template data-id="style">
<div class="entry">
<div class="entry-content">
<div class="main-controls">
<label class="style-name">
<input type=checkbox>
</label>
</div>
<div class="actions">
<a class="configure" tabindex="0">
<i class="i-config"></i>
</a>
<a class="style-edit-link" href="edit.html" i18n="title:editStyleLabel">
<i class=i-edit></i>
</a>
<a class="menu-button" i18n="title:popupMenuButtonTooltip" tabindex="0">
<i class=i-menu></i>
</a>
</div>
</div>
</div>
</template>
<template data-id="errEmpty">
<i class=i-empty data-cmd="note" tabindex="0" i18n="title:emptyCode"></i>
</template>
<template data-id="errCsp">
<a class="icon csp-problem-indicator" data-cmd="note" tabindex="0">!</a>
</template>
<template data-id="errRegexp">
<a class="icon regexp-problem-indicator" data-cmd="note" tabindex="0"
i18n="title:styleRegexpProblemTooltip">!</a>
</template>
<template data-id="unreachableInfo">
<div class="blocked-info">
<div i18n="unreachableContentScript"></div>
</div>
</template>
<template data-id="writeForFrames">
<div id="write-for-frames" tabindex="0"><iframe>...</div>
</template>
<template data-id="body">
<details class="blocked-info if-blocked">
<summary i18n="stylusUnavailableForURL"></summary>
<p i18n="stylusUnavailableForURLdetails"></p>
</details>
<details id="no-styles" class="if-no-styles if-not-blocked">
<summary><span> </span></summary>
</details>
<main id="installed" class="if-styles"></main>
<aside id="toggler" class="if-styles">
<details>
<summary i18n="toggleStylesHeading" class="non-touch-dimmed"></summary>
<% _.forEach([
/*i18n*/'toggleStylesPerm',
/*i18n*/'toggleStylesTab',
], (text, i) => { i = i ? 't' : ''; %>
<div>
<input type="checkbox" data-toggle="+<%= i %>" i18n="title:enableStyleLabel" checked>
<input type="checkbox" data-toggle="-<%= i %>" i18n="title:disableStyleLabel">
<label i18n="+<%= text %>, title:toggleStylesHint"><input type="checkbox" data-toggle="*<%= i %>"></label>
</div>
<% }) %>
</details>
<label id="disableAll-label" i18n="data-off:disableAllStylesOff">
<input id="disableAll" type="checkbox" class="slider">
<img srcset="icon/16.png, icon/32.png 2x">
</label>
</aside>
<div id="main-actions" class="flex">
<div id="write-wrapper" class="non-touch-dimmed">
<a class="icon">
<i class=i-plus></i>
</a>
<div id="write-style"></div>
</div>
</div>
<div id="popup-options">
<div class="split-btn" id="manage-split">
<button id="popup-manage-button" i18n="openManage" title="<Shift>: "
data-href="manage.html"></button
><button class="if-not-blocked split-btn-pedal" i18n="menu-site:popupManageSiteStyles"></button>
</div>
<div class="split-btn" id="find-split">
<button id="find-styles-btn" i18n="find" title="<Ctrl-F>"></button
><button class="split-btn-pedal"
menu-usoa="UserStyles Archive"
menu-usw="UserStyles World"
menu-uso="UserStyles"
menu-gf="GreasyFork"></button>
</div>
<button id="help" class="icon" data-cmd="note">
<i class="i-info"></i>
</button>
<button id="options-btn" i18n="title:openOptions" class="icon">
<svg class="hollow-gear" viewBox="0 0 20 20">
<text y="100%">⚙</text>
</svg>
</button>
</div>
</template>
<template data-id="menu">
<div id="menu">
<div>
<header>
<label class="ellipsis"><input type=checkbox><span></span></label>
<a id="home" class="icon" target="_blank"><i class="i-external"></i></a>
</header>
<main>
<% _.forEach([
['tab', /*i18n*/'styleForceTab'],
['domain', /*i18n*/'appliesDomainOption'],
['prefix', /*i18n*/'appliesUrlPrefixOption'],
['url', /*i18n*/'appliesUrlOption'],
], ([type, text], i) => { %>
<div data-ovr="<%= type %>" data-index="<%= i %>">
<span i18n="+<%= text %>"></span>
<label><input type="checkbox"><i class="i-plus"></i></label>
<label><input type="checkbox"><i class="i-minus"></i></label>
</div>
<% if (type == 'tab') { %><p i18n="styleSitesPopupHeading"></p><% } %>
<% }); %>
<p id="matchedOvr" i18n="title:styleSitesMatchingRules"></p>
</main>
<main class="delete">
<span i18n="deleteStyleConfirm"></span>
</main>
<footer>
<button data-cmd="delete" i18n="confirmDelete" title="<Delete>"></button>
<button data-cmd="edit" i18n="editStyleLabel"></button>
<button data-cmd="cancel" i18n="confirmClose" title="<Esc>"></button>
</footer>
</div>
</div>
</template>
<template data-id="incOvr">
<label id="incOvr" i18n="title:styleSitesIncludeNote">
<input type="checkbox"><span i18n="styleSitesIncludeOvr"></span>
</label>
</template>
</head>
<body id="stylus-popup">
<%= htmlWebpackPlugin.tags.bodyTags %>
</body>
</html>