optional parser
This commit is contained in:
parent
dd9c11948c
commit
df861e16ca
8 changed files with 653 additions and 108 deletions
|
@ -6,6 +6,47 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
</head>
|
||||
<body>
|
||||
<div id="toast"></div>
|
||||
<table>
|
||||
<thead id="filter">
|
||||
<tr>
|
||||
<th>
|
||||
<select id="browser">
|
||||
<optgroup label="Populars">
|
||||
<option value="IE">Internet Explorer</option>
|
||||
<option value="Safari">Safari</option>
|
||||
<option value="Chrome">Chrome</option>
|
||||
<option value="Firefox">Firefox</option>
|
||||
<option value="Opera">Opera</option>
|
||||
<option value="Edge">Edge</option>
|
||||
<option value="Vivaldi">Vivaldi</option>
|
||||
</optgroup>
|
||||
<optgroup label="Others"></optgroup>
|
||||
</select>
|
||||
<select id="os">
|
||||
<optgroup label="Populars">
|
||||
<option value="Windows">Windows</option>
|
||||
<option value="Mac OS">Mac OS</option>
|
||||
<option value="Linux">Linux</option>
|
||||
<option value="Chromium OS">Chromium OS</option>
|
||||
<option value="Ubuntu">Ubuntu</option>
|
||||
<option value="Debian">Debian</option>
|
||||
<option value="Android">Android</option>
|
||||
<option value="iOS">iOS</option>
|
||||
</optgroup>
|
||||
<optgroup label="Others"></optgroup>
|
||||
</select>
|
||||
</th>
|
||||
<th>
|
||||
<input type="search" id="custom" placeholder="Filter items">
|
||||
<select id="sort">
|
||||
<option value="true">descending</option>
|
||||
<option value="false">ascending</option>
|
||||
</select>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
<div id="list" data-loading=true>
|
||||
<table>
|
||||
<colgroup>
|
||||
|
@ -14,44 +55,6 @@
|
|||
<col width="100">
|
||||
<col>
|
||||
</colgroup>
|
||||
<thead id="filter">
|
||||
<tr>
|
||||
<th colspan="3">
|
||||
<select id="browser">
|
||||
<optgroup label="Populars">
|
||||
<option value="IE">Internet Explorer</option>
|
||||
<option value="Safari">Safari</option>
|
||||
<option value="Chrome">Chrome</option>
|
||||
<option value="Firefox">Firefox</option>
|
||||
<option value="Opera">Opera</option>
|
||||
<option value="Edge">Edge</option>
|
||||
<option value="Vivaldi">Vivaldi</option>
|
||||
</optgroup>
|
||||
<optgroup label="Others"></optgroup>
|
||||
</select>
|
||||
<select id="os">
|
||||
<optgroup label="Populars">
|
||||
<option value="Windows">Windows</option>
|
||||
<option value="Mac OS">Mac OS</option>
|
||||
<option value="Linux">Linux</option>
|
||||
<option value="Chromium OS">Chromium OS</option>
|
||||
<option value="Ubuntu">Ubuntu</option>
|
||||
<option value="Debian">Debian</option>
|
||||
<option value="Android">Android</option>
|
||||
<option value="iOS">iOS</option>
|
||||
</optgroup>
|
||||
<optgroup label="Others"></optgroup>
|
||||
</select>
|
||||
</th>
|
||||
<th>
|
||||
User-Agent
|
||||
<select id="sort">
|
||||
<option value="true">descending</option>
|
||||
<option value="false">ascending</option>
|
||||
</select>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<template>
|
||||
<tr>
|
||||
<td><input type="radio" name="select"></td>
|
||||
|
@ -63,22 +66,70 @@
|
|||
<tbody></tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div hbox>
|
||||
<input type="search" id="custom" placeholder="Filter items">
|
||||
<input type="button" value="Options" title="Open options page" style="margin-left: 2px;" data-cmd="options">
|
||||
<input type="button" value="Refresh Tab" title="Refresh the current page" data-cmd="refresh">
|
||||
<input type="button" value="Restart" title="Click to reload the extension. This will cause all the window-based user-agent strings to be cleared" data-cmd="reload">
|
||||
<div id="view">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col width="10">
|
||||
<col>
|
||||
<col width="10">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tr>
|
||||
<td>userAgent</td>
|
||||
<td colspan="3">
|
||||
<div hbox>
|
||||
<input id="ua" type="text" placeholder="Your preferred user-agent string" title="To set blank user-agent string, use 'empty' keyword">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>appVersion</td>
|
||||
<td colspan="3">
|
||||
<div hbox>
|
||||
<input readonly id="appVersion" type="text" title="This is a readonly field. Use options page for custom parsing.">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>platform</td>
|
||||
<td>
|
||||
<div hbox>
|
||||
<input readonly id="platform" type="text" title="This is a readonly field. Use options page for custom parsing.">
|
||||
</div>
|
||||
</td>
|
||||
<td>vendor</td>
|
||||
<td>
|
||||
<div hbox>
|
||||
<input readonly id="vendor" type="text" title="This is a readonly field. Use options page for custom parsing.">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>product</td>
|
||||
<td>
|
||||
<div hbox>
|
||||
<input readonly id="product" type="text" title="This is a readonly field. Use options page for custom parsing.">
|
||||
</div>
|
||||
</td>
|
||||
<td>oscpu</td>
|
||||
<td>
|
||||
<div hbox>
|
||||
<input readonly id="oscpu" type="text" title="This is a readonly field. Use options page for custom parsing.">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div hbox id="agent" pack="center" align="center">
|
||||
<span id="info">User-Agent String:</span>
|
||||
<span flex="1"></span>
|
||||
<input type="button" value="Apply" title="Set this string as the browser's User-Agent string" data-cmd="apply">
|
||||
<input type="button" value="Window" title="Set this string as this window's User-Agent string" data-cmd="window">
|
||||
<input type="button" value="Reset" title="Reset User-Agent string to the default one. This will not reset window-based UA strings. To reset them, use the 'Restart' button" data-cmd="reset">
|
||||
<input type="button" value="Test" title="Test your user-agent string" data-cmd="test">
|
||||
</div>
|
||||
<input id="ua" type="text" placeholder="Your preferred user-agent string" title="To set blank user-agent string, use 'empty' keyword">
|
||||
<div id="explore" data-cols=4></div>
|
||||
<div hbox id="agent" align="center">
|
||||
<input flex="1" type="button" value="Options" title="Open options page" style="margin-left: 2px;" data-cmd="options">
|
||||
<input flex="1" type="button" value="Restart" title="Click to reload the extension. This will cause all the window-based user-agent strings to be cleared" data-cmd="reload">
|
||||
<input flex="1" type="button" value="Refresh Tab" title="Refresh the current page" data-cmd="refresh">
|
||||
<input flex="1" type="button" value="Reset" title="Reset User-Agent string to the default one. This will not reset window-based UA strings. To reset them, use the 'Restart' button" data-cmd="reset">
|
||||
<input flex="1" type="button" value="Test" title="Test your user-agent string" data-cmd="test">
|
||||
<input flex="1" type="button" value="Window" title="Set this string as this window's User-Agent string" data-cmd="window">
|
||||
<input flex="1" type="button" value="Apply" title="Set this string as the browser's User-Agent string" data-cmd="apply">
|
||||
</div>
|
||||
<script src="index.js"></script>
|
||||
<script async src="matched.js"></script>
|
||||
</body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue