1 Star 0 Fork 1

yangyang12345/cat-catch

forked from 赵园园/cat-catch 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
options.html 26.04 KB
一键复制 编辑 原始数据 按行查看 历史
O2bmm 提交于 2024-08-05 06:19 . download icon
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>titleOption</title>
<link rel="stylesheet" type="text/css" href="css/public.css" media="all" />
<link rel="stylesheet" type="text/css" href="css/options.css" media="all" />
<script src="lib/jquery.min.js"></script>
<script src="js/init.js"></script>
<script src="js/function.js"></script>
</head>
<body>
<div class="wrapper">
<!-- 抓取后缀 -->
<section>
<h1 class="optionsTitle" data-i18n="suffix"></h1>
<div class="optionBox">
<span class="explain" data-i18n="suffixTip"></span>
<table id="extList">
<tr>
<th data-i18n="suffix"></th>
<th data-i18n="filterSize"></th>
<th data-i18n="enable"></th>
<th data-i18n="delete"></th>
</tr>
</table>
<div class="flex-end">
<button type="button" id="AddExt" class="button2" data-i18n="addSuffix"></button>
<button type="button" id="ResetExt" data-reset="Ext" data-i18n="resetSettings"></button>
<button type="button" id="allDisable" data-switch="Ext" data-i18n="disableAll"></button>
<button type="button" id="allEnable" data-switch="Ext" data-i18n="enableAll"></button>
</div>
</div>
</section>
<!-- 抓取类型 -->
<section>
<h1 class="optionsTitle" data-i18n="type"></h1>
<div class="optionBox">
<span class="explain" data-i18n="typeTip"></span>
<table id="typeList">
<tr>
<th data-i18n="type"></th>
<th data-i18n="filterSize"></th>
<th data-i18n="enable"></th>
<th data-i18n="delete"></th>
</tr>
</table>
<div class="flex-end">
<button type="button" id="AddType" class="button2" data-i18n="addType"></button>
<button type="button" id="ResetType" data-reset="Type" data-i18n="resetSettings"></button>
<button type="button" id="allDisable" data-switch="Type" data-i18n="disableAll"></button>
<button type="button" id="allEnable" data-switch="Type" data-i18n="enableAll"></button>
</div>
</div>
</section>
<!-- 正则匹配 -->
<section>
<h1 class="optionsTitle">
<img src="img/regex.png" style="width: 18px" class="regex"/><span data-i18n-outer="regexMatch"></span> / <span
data-i18n-outer="blockResource"></span>
</h1>
<div class="optionBox">
<span class="explain"><b data-i18n="blockResource"></b>
<p data-i18n-outer="blockResourceTip"></p>
</span><br>
<span class="explain"><b data-i18n="flag"></b>
</span><br>
<span class="explain"><b data-i18n="suffix"></b>
<p data-i18n-outer="regexSuffixTip"></p>
</span><br>
<span class="explain"><b data-i18n="regexTip"></b></span><br><br>
<table id="regexList">
<tr>
<th data-i18n="flag"></th>
<th data-i18n="regexExpression"></th>
<th data-i18n="suffix"></th>
<th data-i18n="blockResource"></th>
<th data-i18n="enable"></th>
<th data-i18n="delete"></th>
</tr>
</table>
<div class="flex-end">
<button type="button" id="AddRegex" class="button2" data-i18n="addRegex"></button>
<button type="button" id="ResetRegex" data-reset="Regex" data-i18n="resetSettings"></button>
<button type="button" id="allDisable" data-switch="Regex" data-i18n="disableAll"></button>
<button type="button" id="allEnable" data-switch="Regex" data-i18n="enableAll"></button>
</div>
<span style="font-weight: bold; font-size: 15px" data-i18n="regexTest"></span><br />
<span>URL</span><br />
<input type="text" id="testUrl" style="width: 590px" /><br />
<span data-i18n="regex"></span><br />
<input type="text" id="testRegex" style="width: 590px" /><br />
<span data-i18n="flag"></span><br />
<input type="text" id="testFlag" style="width: 20px" value="ig" />
<span style="color: #ff0000" id="testResult" data-i18n="noMatch"></span>
</div>
</section>
<!-- 复制选项 -->
<section>
<h1 class="optionsTitle">
<img src="img/copy.png" style="width: 18px" class="copy"/>
<p data-i18n-outer="copy"></p>
</h1>
<div class="optionBox">
<span class="explain">
<p data-i18n-outer="copyTip"></p><br />
<a href="https://o2bmm.gitbook.io/cat-catch/docs/settings#keywords" target="_blank"
data-i18n="replaceKeywordList"></a><br /><br />
<div class="item">
<div>HLS m3u8</div>
<textarea id="copyM3U8" save="input" type="text" class="width100"></textarea>
</div>
<div class="item" style="margin-top: 10px;">
<div>DASH mpb</div>
<textarea id="copyMPD" save="input" type="text" class="width100"></textarea>
</div>
<div class="item" style="margin-top: 10px;">
<div data-i18n="otherFiles"></div>
<textarea id="copyOther" save="input" type="text" class="width100"></textarea>
</div>
<div class="flex-end">
<button type="button" class="resetOption" data-i18n="resetSettings"></button>
</div>
</div>
</section>
<!-- Aria2 RPC -->
<section>
<h1 class="optionsTitle">
<img src="img/aria2.png" style="width: 18px" class="aria2"/>
Aria2 RPC
</h1>
<div class="optionBox">
<span class="explain">
<p data-i18n-outer="aria2Tip"></p>
<a href="https://aria2.github.io/manual/en/html/aria2c.html#rpc-interface" target="_blank"
data-i18n="documentation"></a>
</span>
<div class="list">
<div class="item">
<div><span data-i18n-outer="enable"></span> Aria2 RPC</div>
<div class="switch">
<label class="switchLabel switchRadius">
<input type="checkbox" id="enableAria2Rpc" save="click" class="switchInput" />
<span class="switchRound switchRadius"><em class="switchRoundBtn switchRadius"></em></span>
</label>
</div>
</div>
<div class="item">
<div data-i18n="autoSetRefererCookieParams"></div>
<div class="switch">
<label class="switchLabel switchRadius">
<input type="checkbox" id="enableAria2RpcReferer" save="click" class="switchInput" />
<span class="switchRound switchRadius"><em class="switchRoundBtn switchRadius"></em></span>
</label>
</div>
</div>
<div class="item">
<div data-i18n="secretKey"></div>
<input id="aria2RpcToken" save="input" type="text" class="width100"></input>
</div>
<div class="item">
<div>Aira2 RPC <span data-i18n-outer="address"></span></div>
<input id="aria2Rpc" save="input" type="text" class="width100"></input>
</div>
<div class="flex-end">
<button type="button" class="resetOption" data-i18n="resetSettings"></button>
</div>
</div>
</div>
</section>
<!-- 发送数据 -->
<section>
<h1 class="optionsTitle">
<p data-i18n-outer="send2local"></p>(beta)
</h1>
<div class="optionBox">
<span class="explain">
<a href="https://o2bmm.gitbook.io/cat-catch/docs/settings#send" target="_blank" data-i18n="documentation"></a>
</span>
<div class="list">
<div class="item">
<div><span data-i18n-outer="enable"></span>
<p data-i18n-outer="send2local"></p>
</div>
<div class="switch">
<label class="switchLabel switchRadius">
<input type="checkbox" id="send2local" save="click" class="switchInput" />
<span class="switchRound switchRadius"><em class="switchRoundBtn switchRadius"></em></span>
</label>
</div>
</div>
<div class="item">
<div><span data-i18n-outer="address"></span></div>
<input id="send2localURL" save="input" type="text" class="width100"></input>
</div>
<div class="flex-end">
<button type="button" class="resetOption" data-i18n="resetSettings"></button>
</div>
</div>
</section>
<!-- m3u8DL -->
<section>
<h1 class="optionsTitle">URL Protocol m3u8dl</h1>
<div class="optionBox" id="m3u8dlOption">
<span class="explain">
<a href="https://github.com/nilaoda/N_m3u8DL-CLI" target="_blank">N_m3u8DL-CLI</a> / <a href="https://github.com/nilaoda/N_m3u8DL-RE" target="_blank">N_m3u8DL-RE</a>
<p data-i18n-outer="m3u8DLTips"></p>
<a href="https://o2bmm.gitbook.io/cat-catch/docs/m3u8dl" target="_blank" data-i18n="documentation"></a>
</span>
<div class="list">
<div class="item">
<div><span data-i18n-outer="enable"></span> m3u8dl:// <span data-i18n-outer="download"></span> m3u8 or mpd</div>
<div class="switch m3u8DL">
<select id="m3u8dl" class="select" save="select">
<option value="0" data-i18n="disable"></option>
<option value="1">N_m3u8DL-CLI</option>
<option value="2">N_m3u8DL-RE</option>
</select>
</div>
</div>
<div class="item">
<div style="margin-bottom: 5px;margin-top: 5px;">
<a href="https://o2bmm.gitbook.io/cat-catch/docs/settings#keywords" target="_blank"
data-i18n="replaceKeywordList"></a>
<a href="https://nilaoda.github.io/N_m3u8DL-CLI/Advanced.html" target="_blank"
style="margin-left: 10px;">N_m3u8DL-CLI <span data-i18n-outer="parameter"></span></a>
<a href="https://github.com/nilaoda/N_m3u8DL-RE?tab=readme-ov-file#%E5%91%BD%E4%BB%A4%E8%A1%8C%E5%8F%82%E6%95%B0" target="_blank"
style="margin-left: 10px;">N_m3u8DL-RE <span data-i18n-outer="parameter"></span></a>
<p data-i18n="parameterSetting"></p>
</div>
<textarea id="m3u8dlArg" save="input" type="text" class="width100 break-all" rows="3"></textarea>
</div>
<div class="flex-end">
<button type="button" class="resetOption" data-i18n="resetSettings"></button>
</div>
</div>
</div>
</section>
<!-- 第三方本地程序调用 -->
<section>
<h1 class="optionsTitle">
<img src="img/invoke.svg" style="width: 18px" class="invoke"/>
<p data-i18n-outer="invokeApp"></p>
</h1>
<div class="optionBox" id="invokeOption">
<div class="list">
<div class="item">
<div data-i18n="enable"></div>
<div class="switch">
<label class="switchLabel switchRadius">
<input type="checkbox" id="invoke" save="click" class="switchInput" />
<span class="switchRound switchRadius"><em class="switchRoundBtn switchRadius"></em></span>
</label>
</div>
</div>
<div class="item">
<div>
<p data-i18n="parameterSetting"></p>
</div>
<textarea id="invokeText" save="input" type="text" class="width100 break-all" rows="3"></textarea>
</div>
<div class="flex-end">
<button type="button" class="resetOption" data-i18n="resetSettings"></button>
</div>
</div>
</div>
</section>
<!-- 替换标签 -->
<section>
<h1 class="optionsTitle" data-i18n="replaceTags"></h1>
<div class="optionBox" id="tag">
<span class="explain"></span>
<div style="margin-bottom: 5px;">
<a href="https://o2bmm.gitbook.io/cat-catch/docs/settings#keywords" target="_blank"
data-i18n="replaceKeywordList"></a>
</div>
<div class="list">
<div class="item">
<div data-i18n="customSaveFileName"></div>
<textarea id="downFileName" save="input" type="text" class="width100"></textarea>
</div>
<div class="item">
<div>${userAgent} <span data-i18n-outer="userAgentTip"></span></div>
<textarea id="userAgent" save="input" type="text" class="width100"></textarea>
</div>
<div class="item">
<div>${mobileUserAgent} / <span data-i18n-outer="simulateMobile"></span>User Agent</div>
<textarea id="MobileUserAgent" save="input" type="text" class="width100"></textarea>
</div>
<div id="testTag" class="hide break-all">
<div class="item">
<div>
<p data-i18n="test"></p>
</div>
<textarea id="testTextarea" type="text" class="width100 break-all"
rows="3">${url} ${referer|exists:'--headers "Referer:*"'} ${url|regexp:"(https?://[^?]*)"|replace:"http://","https://"|to:base64}</textarea>
</div>
${url}<input type="text" class="width100" value="https://bmmmd.com/test.m3u8" id="url">
${referer}<input type="text" class="width100" value="https://bmmmd.com/" id="referer">
${initiator}<input type="text" class="width100" value="https://bmmmd.com" id="initiator">
${webUrl}<input type="text" class="width100" value="https://bmmmd.com/test.html" id="webUrl">
${title}<input type="text" class="width100" value="test Video" id="title">
<span data-i18n-outer="result"></span>:<br><span id="tagTestResult"></span>
</div>
<div class="flex-end">
<button type="button" id="showTestTag" data-i18n="test"></button>
<button type="button" class="resetOption" data-i18n="resetSettings"></button>
</div>
</div>
</div>
</section>
<!-- 下载器 -->
<section>
<h1 class="optionsTitle">
<img src="img/cat-down.png" style="width: 18px" class="cat-down"/>
<p data-i18n-outer="downloader"></p>
</h1>
<div class="optionBox" id="downOption">
<span class="explain" data-i18n="downloaderTip"></span>
<div class="list">
<div class="item">
<div data-i18n="alwaysDisableCatCatcher"></div>
<div class="switch">
<label class="switchLabel switchRadius">
<input type="checkbox" id="catDownload" save="click" class="switchInput" />
<span class="switchRound switchRadius"><em class="switchRoundBtn switchRadius"></em></span>
</label>
</div>
</div>
<div class="item">
<div data-i18n="autoClosePageAfterDownload"></div>
<div class="switch">
<label class="switchLabel switchRadius">
<input type="checkbox" id="downAutoClose" save="click" class="switchInput" />
<span class="switchRound switchRadius"><em class="switchRoundBtn switchRadius"></em></span>
</label>
</div>
</div>
<div class="item">
<div data-i18n="openDownloaderPageInBackground"></div>
<div class="switch">
<label class="switchLabel switchRadius">
<input type="checkbox" id="downActive" save="click" class="switchInput" />
<span class="switchRound switchRadius"><em class="switchRoundBtn switchRadius"></em></span>
</label>
</div>
</div>
<div class="item">
<div data-i18n="downloadWhileSaving"></div>(beta)
<div class="switch">
<label class="switchLabel switchRadius">
<input type="checkbox" id="downStream" save="click" class="switchInput" />
<span class="switchRound switchRadius"><em class="switchRoundBtn switchRadius"></em></span>
</label>
</div>
</div>
<div class="flex-end">
<button type="button" class="resetOption" data-i18n="resetSettings"></button>
</div>
</div>
</div>
</section>
<!-- m3u8解析器 -->
<section>
<h1 class="optionsTitle">
<img src="img/parsing.png" style="width: 18px" class="parsing"/>
<p data-i18n-outer="m3u8Parser"></p>
</h1>
<div class="optionBox" id="m3u8Option">
<div class="list">
<div class="item">
<div><img src="img/download.svg" style="width: 18px" class="download"> <span data-i18n-outer="autoDownM3u8Tip"></span></div>
<div class="switch">
<label class="switchLabel switchRadius">
<input type="checkbox" id="m3u8AutoDown" save="click" class="switchInput" />
<span class="switchRound switchRadius"><em class="switchRoundBtn switchRadius"></em></span>
</label>
</div>
</div>
<div class="item">
<div data-i18n="downloadThreads"></div>
<div class="switch">
<input id="M3u8Thread" save="input" type="number" class="width3rem"></input>
</div>
</div>
<div class="item">
<div data-i18n="mp4Format"></div>
<div class="switch">
<label class="switchLabel switchRadius">
<input type="checkbox" id="M3u8Mp4" save="click" class="switchInput" />
<span class="switchRound switchRadius"><em class="switchRoundBtn switchRadius"></em></span>
</label>
</div>
</div>
<div class="item">
<div data-i18n="audioOnly"></div>
<div class="switch">
<label class="switchLabel switchRadius">
<input type="checkbox" id="M3u8OnlyAudio" save="click" class="switchInput" />
<span class="switchRound switchRadius"><em class="switchRoundBtn switchRadius"></em></span>
</label>
</div>
</div>
<div class="item">
<div data-i18n="skipDecryption"></div>
<div class="switch">
<label class="switchLabel switchRadius">
<input type="checkbox" id="M3u8SkipDecrypt" save="click" class="switchInput" />
<span class="switchRound switchRadius"><em class="switchRoundBtn switchRadius"></em></span>
</label>
</div>
</div>
<div class="item">
<div data-i18n="downloadWhileSaving"></div>
<div class="switch">
<label class="switchLabel switchRadius">
<input type="checkbox" id="M3u8StreamSaver" save="click" class="switchInput" />
<span class="switchRound switchRadius"><em class="switchRoundBtn switchRadius"></em></span>
</label>
</div>
</div>
<div class="item">
<div data-i18n="ffmpegTranscoding"></div>
<div class="switch">
<label class="switchLabel switchRadius">
<input type="checkbox" id="M3u8Ffmpeg" save="click" class="switchInput" />
<span class="switchRound switchRadius"><em class="switchRoundBtn switchRadius"></em></span>
</label>
</div>
</div>
<div class="item">
<div data-i18n="autoClosePageAfterDownload"></div>
<div class="switch">
<label class="switchLabel switchRadius">
<input type="checkbox" id="M3u8AutoClose" save="click" class="switchInput" />
<span class="switchRound switchRadius"><em class="switchRoundBtn switchRadius"></em></span>
</label>
</div>
</div>
<div class="flex-end">
<button type="button" class="resetOption" data-i18n="resetSettings"></button>
</div>
</div>
</div>
</section>
<!-- 其他设置 -->
<section>
<h1 class="optionsTitle" data-i18n="otherSettings"></h1>
<div class="optionBox" id="OtherOption">
<div class="list otherOption">
<div class="item">
<div>
<span data-i18n-outer="previewMode"></span> <select id="PlayerTemplate" class="select"></select>
</div>
<input id="Player" save="input" type="text" class="width100"
data-i18n-placeholder="previewModePlaceholder" />
</div>
<div class="item">
<div data-i18n="customFilenameOption"></div>
<div class="switch">
<label class="switchLabel switchRadius">
<input type="checkbox" save="click" id="TitleName" class="switchInput" />
<span class="switchRound switchRadius"><em class="switchRoundBtn switchRadius"></em></span>
</label>
</div>
</div>
<div class="item">
<div data-i18n="saveAsOption"></div>
<div class="switch">
<label class="switchLabel switchRadius">
<input type="checkbox" id="saveAs" save="click" class="switchInput" />
<span class="switchRound switchRadius"><em class="switchRoundBtn switchRadius"></em></span>
</label>
</div>
</div>
<div class="item">
<div data-i18n="badgeNumber"></div>
<div class="switch">
<label class="switchLabel switchRadius">
<input type="checkbox" id="badgeNumber" save="click" class="switchInput" />
<span class="switchRound switchRadius"><em class="switchRoundBtn switchRadius"></em></span>
</label>
</div>
</div>
<div class="item">
<div data-i18n="iconOption"></div>
<div class="switch">
<label class="switchLabel switchRadius">
<input type="checkbox" save="click" id="ShowWebIco" class="switchInput" />
<span class="switchRound switchRadius"><em class="switchRoundBtn switchRadius"></em></span>
</label>
</div>
</div>
<div class="item">
<div data-i18n="clearOption"></div>
<div class="switch switchSelect">
<select id="autoClearMode" class="select" save="select">
<option value="0" data-i18n="doNotClear"></option>
<option value="1" data-i18n="normalClear"></option>
<option value="2" data-i18n="moreFrequent"></option>
</select>
</div>
</div>
<div class="item">
<div data-i18n="excludeDuplicateResources"></div>
<div class="switch">
<label class="switchLabel switchRadius">
<input type="checkbox" id="checkDuplicates" save="click" class="switchInput" />
<span class="switchRound switchRadius"><em class="switchRoundBtn switchRadius"></em></span>
</label>
</div>
</div>
<div class="item">
<div data-i18n="onlineServiceAddress"></div>
<div class="switch switchSelect">
<select id="onlineServiceAddress" class="select" save="select">
<option value="0" data-i18n="withinChina"></option>
<option value="1">cloudflare</option>
</select>
</div>
</div>
<div class="item">
<div data-i18n="defaultPopup"></div>
<div class="popupAttr">
<span><input id="popupHeight" save="input" type="number" class="width3rem"></input></span>
x
<span><input id="popupWidth" save="input" type="number" class="width3rem"></input></span>
<span>Top: <input id="popupTop" save="input" type="number" class="width3rem"></input></span>
<span>Left: <input id="popupLeft" save="input" type="number" class="width3rem"></input></span>
</div>
<div class="switch">
<label class="switchLabel switchRadius">
<input type="checkbox" id="popup" save="click" class="switchInput" />
<span class="switchRound switchRadius"><em class="switchRoundBtn switchRadius"></em></span>
</label>
</div>
</div>
</div>
<div class="flex-end">
<button type="button" class="resetOption" data-i18n="resetSettings"></button>
</div>
</div>
</section>
<!-- 自定义css -->
<section>
<h1 class="optionsTitle" data-i18n="customCSS"></h1>
<div class="optionBox">
<div class="item">
<textarea id="css" save="input" type="text" class="width100" rows="10"></textarea>
</div>
</div>
</section>
<!-- 操作按钮 -->
<section>
<h1 class="optionsTitle" data-i18n="operation"></h1>
<div class="optionBox">
<div class="flex-end" style="justify-content: center">
<input id="importOptionsFile" type="file" class="hide" />
<button type="button" id="exportOptions" data-i18n="exportSettings"></button>
<button type="button" id="importOptions" data-i18n="importConfiguration"></button>
<button type="button" id="ClearData" data-i18n="clearCapturedData"></button>
<button type="button" id="ResetAllOption" data-i18n="resetAllSettings"></button>
<button type="button" id="extensionReload" data-i18n="restartExtension"></button>
</div>
</div>
</section>
<!-- 关于 -->
<section>
<h1 class="optionsTitle" data-i18n="about"></h1>
<div class="optionBox">
<div class="item">
<div id="version"></div>
</div>
<div class="item">
<span data-i18n-outer="documentation"></span>:
<a href="https://o2bmm.gitbook.io/cat-catch/" target="_blank">
https://o2bmm.gitbook.io/cat-catch/</a>
</div>
<div class="item">
Github:
<a href="https://github.com/xifangczy/cat-catch" target="_blank">
https://github.com/xifangczy/cat-catch</a>
</div>
</div>
</section>
</div>
<script src="lib/base64.js"></script>
<script src="js/options.js"></script>
<script src="js/i18n.js"></script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yangyang12345/cat-catch.git
git@gitee.com:yangyang12345/cat-catch.git
yangyang12345
cat-catch
cat-catch
master

搜索帮助