-
Notifications
You must be signed in to change notification settings - Fork 11
/
popup.html
81 lines (68 loc) · 5.37 KB
/
popup.html
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
<!doctype html>
<html>
<head>
<title>Fuzbal</title>
<link href="./css/bootstrap.min.css" rel="stylesheet">
<link href="./css/popup.css" rel="stylesheet">
</head>
<body>
<p><span id="help" class="glyphicon glyphicon-question-sign"></span></p>
<div class="top">
<div class="header">
<img src="./icons/fuzbal_popup.png"/>
<h1>Fuzbal</h1>
</div>
<img id="loadingIcon" src="data:image/gif;base64,R0lGODlhEAAQAPQAAP///wAAAPDw8IqKiuDg4EZGRnp6egAAAFhYWCQkJKysrL6+vhQUFJycnAQEBDY2NmhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAAFdyAgAgIJIeWoAkRCCMdBkKtIHIngyMKsErPBYbADpkSCwhDmQCBethRB6Vj4kFCkQPG4IlWDgrNRIwnO4UKBXDufzQvDMaoSDBgFb886MiQadgNABAokfCwzBA8LCg0Egl8jAggGAA1kBIA1BAYzlyILczULC2UhACH5BAkKAAAALAAAAAAQABAAAAV2ICACAmlAZTmOREEIyUEQjLKKxPHADhEvqxlgcGgkGI1DYSVAIAWMx+lwSKkICJ0QsHi9RgKBwnVTiRQQgwF4I4UFDQQEwi6/3YSGWRRmjhEETAJfIgMFCnAKM0KDV4EEEAQLiF18TAYNXDaSe3x6mjidN1s3IQAh+QQJCgAAACwAAAAAEAAQAAAFeCAgAgLZDGU5jgRECEUiCI+yioSDwDJyLKsX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ABXkgIAICKZzkqJ4nQZxLqZKv4NqNLKK2/Q4Ek4lFXChsg5ypJjs1II3gEDUSRInEGYAw6B6zM4JhrDAtEosVkLUtHA7RHaHAGJQEjsODcEg0FBAFVgkQJQ1pAwcDDw8KcFtSInwJAowCCA6RIwqZAgkPNgVpWndjdyohACH5BAkKAAAALAAAAAAQABAAAAV5ICACAimc5KieLEuUKvm2xAKLqDCfC2GaO9eL0LABWTiBYmA06W6kHgvCqEJiAIJiu3gcvgUsscHUERm+kaCxyxa+zRPk0SgJEgfIvbAdIAQLCAYlCj4DBw0IBQsMCjIqBAcPAooCBg9pKgsJLwUFOhCZKyQDA3YqIQAh+QQJCgAAACwAAAAAEAAQAAAFdSAgAgIpnOSonmxbqiThCrJKEHFbo8JxDDOZYFFb+A41E4H4OhkOipXwBElYITDAckFEOBgMQ3arkMkUBdxIUGZpEb7kaQBRlASPg0FQQHAbEEMGDSVEAA1QBhAED1E0NgwFAooCDWljaQIQCE5qMHcNhCkjIQAh+QQJCgAAACwAAAAAEAAQAAAFeSAgAgIpnOSoLgxxvqgKLEcCC65KEAByKK8cSpA4DAiHQ/DkKhGKh4ZCtCyZGo6F6iYYPAqFgYy02xkSaLEMV34tELyRYNEsCQyHlvWkGCzsPgMCEAY7Cg04Uk48LAsDhRA8MVQPEF0GAgqYYwSRlycNcWskCkApIyEAOwAAAAAAAAAAAA==" alt="Loading..."/>
<form action="javascript:void(0);">
<input type="text" id="searchText" autocomplete="off" placeholder="Search for similar words on this page"/>
</form>
</div>
<br/>
<div id="middle">
<div id="resultsList" style="display:none">
</div>
<div id="helpTips" style="display:none">
<h1>Fuzbal
</h1>
<p>Fuzbal gives Ctrl+F like find results which include non-exact (fuzzy) matches and matching by regular expression (surround your regex with '/'s). The fuzziness comes from trying to match potentially
misspelled words and words that are often seen together in context (synonyms). The former uses <a href="https://en.wikipedia.org/wiki/Damerau%E2%80%93Levenshtein_distance">
Damerau-Levenshtein string edit distance</a> while
the latter uses <a href="http://nlp.stanford.edu/projects/glove/">GloVe</a> pre-trained word vectors. The language file is included
with the extension and so all searches are done locally.
</p>
<p>Use UP/DOWN arrow keys to cycle through results.
</p>
<p>Try <b>Ctrl+Shift+K</b> (<b>Command</b> on a Mac) to open/close the extension or <a href="http://lifehacker.com/add-custom-keyboard-shortcuts-to-chrome-extensions-for-1595322121">
set a custom shortcut</a> if this combination is already taken.
</p>
<p>To search using regular expressions, start and end with "/" (e.g. <b>/foob[ae]r/</b>).
</p>
<p>Use double quotes for exact results (e.g. <b>"exact terms here" and not exact terms here</b>).
</p>
<p><a href="https://github.com/ijkilchenko/Fuzbal">Fuzbal is open source</a>
</p>
</div>
<div id="template" style="display:none">
{{#msg}}
<p>{{numResults}} matches</p>
{{#resultsBeforeSelected}}
<span id="{{id}}" class="resultItem"><li><b>{{thisResult}}: </b>{{{context}}}</li></span>
{{/resultsBeforeSelected}}
{{#resultsSelected}}
<span id="{{id}}" class="resultItem"><li><b><span style="background-color:#00FF00">{{thisResult}}</span>: </b>{{{context}}}</li></span>
{{/resultsSelected}}
{{#resultsAfterSelected}}
<span id="{{id}}" class="resultItem"><li><b>{{thisResult}}: </b>{{{context}}}</li></span>
{{/resultsAfterSelected}}
{{/msg}}
</div>
</div>
<br/>
<div id="footer">
</div>
<script src="./libraries/mustache.min.js"></script>
<script src="./libraries/jquery-2.1.4.min.js"></script>
<script src="./popup.js"></script>
<script src="./libraries/bootstrap.min.js"></script>
</body>
</html>