options.html 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta http-equiv="content-type" content="text/html;charset=utf-8">
  5. <link rel="shortcut icon" type="image/png" href="images/icon16.png">
  6. <link rel="stylesheet" type="text/css" href="lib/font-awesome/font-awesome.min.css">
  7. <link rel="stylesheet" type="text/css" href="style.min.css">
  8. <script src="lib/zip.js/zip.js"></script>
  9. <script src="load.js"></script>
  10. <title data-i18n=extName></title>
  11. </head>
  12. <body id=options>
  13. <div class=main>
  14. <div class=sidebar>
  15. <img src=images/icon128.png>
  16. <h2 data-i18n=extName></h2>
  17. <p>2013-2014</p>
  18. <hr>
  19. <div class=sidemenu>
  20. <a id=smInstalled href=#Installed data-i18n=sideMenuInstalled></a>
  21. <a id=smSettings href=#Settings data-i18n=sideMenuSettings></a>
  22. <a id=smAbout href=#About data-i18n=sideMenuAbout></a>
  23. </div>
  24. </div>
  25. <div class=content>
  26. <div id=tabInstalled class=hide>
  27. <div class=header>
  28. <button id=bNew data-i18n=buttonNew></button>
  29. <button id=bUpdate data-i18n=buttonUpdateAll></button>
  30. <div class=right>
  31. <a href=https://greasyfork.org/scripts target=_blank data-i18n=anchorGetMoreScripts></a>
  32. </div>
  33. </div>
  34. <div id=sList>
  35. <span id=message data-i18n=msgLoading></span>
  36. </div>
  37. </div>
  38. <div id=tabSettings class=hide>
  39. <h1 data-i18n=labelSettings></h1>
  40. <div><label><input type=checkbox id=cUpdate><span data-i18n=labelAutoUpdate></span></label></div>
  41. <fieldset class=title>
  42. <legend data-i18n=labelDataImport></legend>
  43. <button id=bImport data-i18n=buttonImportData></button><input type=file class=hide id=iImport>
  44. <button id=bVacuum data-i18n=buttonVacuum></button>
  45. </fieldset>
  46. <fieldset class=title>
  47. <legend data-i18n=labelDataExport></legend>
  48. <b data-i18n=labelScriptsToExport></b>
  49. <label><input type=checkbox id=cWithData><span data-i18n=labelExportScriptData></span></label>
  50. <select id=xList multiple></select>
  51. <button id=bSelect data-i18n=buttonAllNone></button>
  52. <a id=xHelper></a><button id=bExport data-i18n=buttonExportData></button>
  53. </fieldset>
  54. </div>
  55. <div id=tabAbout class=hide>
  56. <h1 data-i18n=labelAbout></h1>
  57. <p data-i18n=extDescription></p>
  58. <p><label data-i18n=labelRelated></label><span data-i18n=anchorSupportPage></span> | <a href=http://geraldl.net/donate target=_blank data-i18n=labelDonate></a> | <a href=https://github.com/gera2ld/Violentmonkey/issues target=_blank data-i18n=labelFeedback></a></p>
  59. <p><label data-i18n=labelAuthor></label><span data-i18n=anchorAuthor></span></p>
  60. <p><label data-i18n=labelTranslator></label><span data-i18n=anchorTranslator></span></p>
  61. </div>
  62. </div>
  63. </div>
  64. <div id=wndEditor class="frame hide">
  65. <div class=header>
  66. <h2 data-i18n=labelScriptEditor></h2>
  67. <div class=buttons><button id=bCustom><i id=sCustom class="fa fa-caret-down"></i> <span data-i18n=buttonCustomMeta></span></button></div>
  68. </div>
  69. <div class=body>
  70. <div id=eCode></div>
  71. <div id=eMeta class=hide>
  72. <table>
  73. <tr>
  74. <td title="@name" data-i18n=labelName></td><td class=expand><input type=text id=mName></td>
  75. <td title="@run-at" data-i18n=labelRunAt></td><td>
  76. <select id=mRunAt>
  77. <option value=default data-i18n=labelRunAtDefault></option>
  78. <option value=start>document-start</option>
  79. <option value=idle>document-idle</option>
  80. <option value=end>document-end</option>
  81. </select>
  82. </td>
  83. </tr>
  84. <tr title="@homepageURL"><td data-i18n=labelHomepageURL></td><td colspan=3 class=expand><input type=text id=mHomepageURL></td></tr>
  85. </table>
  86. <table>
  87. <tr title="@updateURL"><td data-i18n=labelUpdateURL></td><td class=expand><input type=text id=mUpdateURL></td></tr>
  88. <tr title="@downloadURL"><td data-i18n=labelDownloadURL></td><td class=expand><input type=text id=mDownloadURL></td></tr>
  89. </table>
  90. <fieldset title="@include">
  91. <legend>
  92. <span data-i18n=labelInclude></span>
  93. <label><input type=checkbox id=cInclude><span data-i18n=labelKeepInclude></span></label>
  94. </legend>
  95. <div data-i18n=labelCustomInclude></div>
  96. <textarea id=mInclude></textarea>
  97. </fieldset>
  98. <fieldset title="@match">
  99. <legend>
  100. <span data-i18n=labelMatch></span>
  101. <label><input type=checkbox id=cMatch><span data-i18n=labelKeepMatch></span></label>
  102. </legend>
  103. <div data-i18n=labelCustomMatch></div>
  104. <textarea id=mMatch></textarea>
  105. </fieldset>
  106. <fieldset title="@exclude">
  107. <legend>
  108. <span data-i18n=labelExclude></span>
  109. <label><input type=checkbox id=cExclude><span data-i18n=labelKeepExclude></span></label>
  110. </legend>
  111. <div data-i18n=labelCustomExclude></div>
  112. <textarea id=mExclude></textarea>
  113. </fieldset>
  114. </div>
  115. </div>
  116. <div class=footer>
  117. <div class=options>
  118. <label><input type=checkbox id=eUpdate><span data-i18n=labelAllowUpdate></span></label>
  119. </div>
  120. <div class=right>
  121. <button id=eSave data-i18n=buttonSave></button>
  122. <button id=eSaveClose data-i18n=buttonSaveClose></button>
  123. <button id=eClose data-i18n=buttonClose></button>
  124. </div>
  125. </div>
  126. </div>
  127. </body>
  128. <script src="common.js"></script>
  129. <script src="editor.js"></script>
  130. <script src="options.js"></script>
  131. </html>