tools.js 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. let toolMap = {
  2. 'json-format': {
  3. name: 'JSON美化工具',
  4. tips: '页面自动检测并格式化、手动格式化、乱码解码、排序、BigInt、编辑、下载、皮肤定制等',
  5. contentScriptJs: true,
  6. contentScriptCss: true,
  7. menuConfig: [{
  8. icon: '⒥',
  9. text: 'JSON格式化',
  10. contexts: ['page', 'selection', 'editable']
  11. }]
  12. },
  13. 'json-diff': {
  14. name: 'JSON比对工具',
  15. tips: '支持两个JSON内容的自动键值比较,并高亮显示差异点,同时也能判断JSON是否合法',
  16. menuConfig: [{
  17. icon: '☷',
  18. text: 'JSON比对器'
  19. }]
  20. },
  21. 'qr-code': {
  22. name: '二维码/解码',
  23. tips: '支持自定义颜色和icon的二维码生成器,并且支持多种模式的二维码解码,包括截图后粘贴解码',
  24. contentScriptJs: true,
  25. menuConfig: [{
  26. icon: '▣',
  27. text: '二维码生成器',
  28. contexts: ['page', 'selection', 'editable', 'link', 'image']
  29. }, {
  30. icon: '◈',
  31. text: '二维码解码器',
  32. contexts: ['image']
  33. }]
  34. },
  35. 'image-base64': {
  36. name: '图片转Base64',
  37. tips: '支持多种模式的图片转Base64格式,比如链接粘贴/截图粘贴等,也支持Base64数据逆转图片',
  38. menuConfig: [{
  39. icon: '▤',
  40. text: '图片与base64',
  41. contexts: ['image']
  42. }]
  43. },
  44. 'sticky-notes': {
  45. name: '我的便签笔记',
  46. tips: '方便快捷的浏览器便签笔记工具,支持创建目录对笔记进行分类管理,笔记支持一键导出/导入',
  47. menuConfig: [{
  48. icon: '✐',
  49. text: '我的便签笔记'
  50. }]
  51. },
  52. 'en-decode': {
  53. name: '信息编码转换',
  54. tips: '支持多格式的信息编解码,如Unicode、UTF-8、UTF-16、URL、Base64、MD5、Hex、Gzip等',
  55. menuConfig: [{
  56. icon: '♨',
  57. text: '字符串编解码',
  58. contexts: ['page', 'selection', 'editable']
  59. }]
  60. },
  61. 'code-beautify': {
  62. name: '代码美化工具',
  63. tips: '支持多语言的代码美化,包括 Javascript、CSS、HTML、XML、SQL,且会陆续支持更多格式',
  64. contentScriptJs: true,
  65. contentScriptCss: true,
  66. menuConfig: [{
  67. icon: '✡',
  68. text: '代码美化工具',
  69. contexts: ['page', 'selection', 'editable']
  70. }]
  71. },
  72. 'timestamp': {
  73. name: '时间(戳)转换',
  74. tips: '本地化时间与时间戳之间的相互转换,支持秒/毫秒、支持世界时区切换、各时区时钟展示等',
  75. menuConfig: [{
  76. icon: '♖',
  77. text: '时间(戳)转换'
  78. }]
  79. },
  80. 'password': {
  81. name: '随机密码生成',
  82. tips: '将各种字符进行随机组合生成密码,可以由数字、大小写字母、特殊符号组成,支持指定长度',
  83. menuConfig: [{
  84. icon: '♆',
  85. text: '随机密码生成'
  86. }]
  87. },
  88. 'html2markdown': {
  89. name: 'Markdown转换',
  90. tips: 'Markdown编写/预览工具,支持HTML片段直接转Markdown,支持将内容以PDF格式进行下载',
  91. menuConfig: [{
  92. icon: 'ⓜ',
  93. text: 'markown工具'
  94. }]
  95. },
  96. 'postman': {
  97. name: '简易Postman',
  98. tips: '开发过程中的接口调试工具,支持GET/POST/HEAD请求方式,且支持JSON内容自动格式化',
  99. menuConfig: [{
  100. icon: '☯',
  101. text: '简易Postman'
  102. }]
  103. },
  104. 'websocket': {
  105. name: 'Websocket工具',
  106. tips: '支持对Websocket接口的抓包测试,包括ws服务的连接测试、消息发送测试、结果分析等',
  107. menuConfig: [{
  108. icon: 'ⓦ',
  109. text: 'Websocket工具'
  110. }]
  111. },
  112. 'regexp': {
  113. name: 'JS正则表达式',
  114. tips: '正则校验工具,默认提供一些工作中常用的正则表达式,支持内容实时匹配并高亮显示结果',
  115. menuConfig: [{
  116. icon: '✙',
  117. text: 'JS正则表达式'
  118. }]
  119. },
  120. 'trans-radix': {
  121. name: '进制转换工具',
  122. tips: '支持2进制到36进制数据之间的任意转换,比如:10进制转2进制,8进制转16进制,等等',
  123. menuConfig: [{
  124. icon: '❖',
  125. text: '进制转换工具'
  126. }]
  127. },
  128. 'trans-color': {
  129. name: '颜色转换工具',
  130. tips: '支持HEX颜色到RGB格式的互转,比如HEX颜色「#43ad7f」转RGB后为「rgb(67, 173, 127)」',
  131. menuConfig: [{
  132. icon: '▶',
  133. text: '颜色转换工具'
  134. }]
  135. },
  136. 'crontab': {
  137. name: 'Crontab工具',
  138. tips: '一个简易的Crontab生成工具,支持随机生成Demo,编辑过程中,分时日月周会高亮提示',
  139. menuConfig: [{
  140. icon: '½',
  141. text: 'Crontab工具'
  142. }]
  143. },
  144. 'loan-rate': {
  145. name: '贷(还)款利率',
  146. tips: '贷款或还款利率的计算器,按月呈现还款计划;并支持按还款额反推贷款实际利率',
  147. menuConfig: [{
  148. icon: '$',
  149. text: '贷(还)款利率'
  150. }]
  151. },
  152. 'devtools': {
  153. name: 'FH开发者工具',
  154. tips: '以开发平台的思想,FeHelper支持用户进行本地开发,将自己的插件功能集成进FH工具市场',
  155. menuConfig: [{
  156. icon: '㉿',
  157. text: 'FH开发者工具'
  158. }]
  159. },
  160. 'page-monkey': {
  161. name: '网页油猴工具',
  162. tips: '自行配置页面匹配规则、编写Hack脚本,实现网页Hack,如页面自动刷新、自动抢票等',
  163. contentScriptJs: true,
  164. menuConfig: [{
  165. icon: '♀',
  166. text: '网页油猴工具'
  167. }]
  168. },
  169. 'screenshot': {
  170. name: '网页截屏工具',
  171. tips: '可对任意网页进行截屏,支持可视区域截屏、全网页滚动截屏,最终结果可预览后再保存',
  172. contentScriptJs: true,
  173. noPage: true,
  174. menuConfig: [{
  175. icon: '✂',
  176. text: '网页截屏工具'
  177. }]
  178. },
  179. 'color-picker': {
  180. name: '页面取色工具',
  181. tips: '可直接在网页上针对任意元素进行色值采集,将光标移动到需要取色的位置,单击确定即可',
  182. contentScriptJs: true,
  183. noPage: true,
  184. menuConfig: [{
  185. icon: '✑',
  186. text: '页面取色工具'
  187. }]
  188. },
  189. 'naotu': {
  190. name: '便捷思维导图',
  191. tips: '轻量便捷,随想随用,支持自动保存、本地数据存储、批量数据导入导出、图片格式下载等',
  192. menuConfig: [{
  193. icon: 'Ψ',
  194. text: '便捷思维导图'
  195. }]
  196. },
  197. 'grid-ruler': {
  198. name: '网页栅格标尺',
  199. tips: 'Web开发用,横竖两把尺子,以10px为单位,用以检测&校准当前网页的栅格对齐率',
  200. contentScriptJs: true,
  201. contentScriptCss: true,
  202. noPage: true,
  203. menuConfig: [{
  204. icon: 'Ⅲ',
  205. text: '网页栅格标尺'
  206. }]
  207. },
  208. 'page-timing': {
  209. name: '网页性能检测',
  210. tips: '检测网页加载性能,包括握手、响应、渲染等各阶段耗时,同时提供Response Headers以便分析',
  211. contentScriptJs: true,
  212. noPage: true,
  213. menuConfig: [{
  214. icon: 'Σ',
  215. text: '网页性能检测'
  216. }]
  217. },
  218. 'excel2json': {
  219. name: 'Excel转JSON',
  220. tips: '将Excel或CVS中的数据,直接转换成为结构化数据,如JSON、XML、MySQL、PHP等(By @hpng)',
  221. menuConfig: [{
  222. icon: 'Ⓗ',
  223. text: 'Excel转JSON'
  224. }]
  225. },
  226. };
  227. export default toolMap;