tools.js 7.9 KB

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