config.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. module.exports = {
  2. juejin: {
  3. urls: {
  4. login: 'https://juejin.im/login',
  5. editor: 'https://juejin.im/editor/drafts/new'
  6. },
  7. loginSel: {
  8. username: '.input[name="loginPhoneOrEmail"]',
  9. password: '.input[name="loginPassword"]',
  10. submit: '.btn:nth-child(3)'
  11. },
  12. editorSel: {
  13. title: '.title-input',
  14. content: '.ace_text-input',
  15. publish: '.publish-btn'
  16. }
  17. },
  18. segmentfault: {
  19. urls: {
  20. login: 'https://segmentfault.com/user/login',
  21. editor: 'https://segmentfault.com/write?freshman=1'
  22. },
  23. loginSel: {
  24. username: 'input[name="username"]',
  25. password: 'input[name="password"]',
  26. submit: 'button[type="submit"]'
  27. },
  28. editorSel: {
  29. title: '#myTitle',
  30. content: '#myEditor',
  31. publish: '#publishIt'
  32. }
  33. },
  34. jianshu: {
  35. urls: {
  36. login: 'https://www.jianshu.com/sign_in',
  37. editor: 'https://www.jianshu.com/writer'
  38. },
  39. loginSel: {
  40. username: '',
  41. password: '',
  42. submit: ''
  43. },
  44. editorSel: {
  45. title: 'input:not([name="name"])',
  46. content: '#arthur-editor',
  47. publish: 'a[data-action="publicize"]'
  48. }
  49. },
  50. csdn: {
  51. urls: {
  52. login: '',
  53. editor: 'https://mp.csdn.net/postedit'
  54. },
  55. loginSel: {
  56. username: '',
  57. password: ''
  58. },
  59. editorSel: {
  60. title: '#txtTitle',
  61. content: '.htmledit_views',
  62. publish: '#btnPublish'
  63. }
  64. },
  65. zhihu: {
  66. urls: {
  67. login: '',
  68. editor: 'https://zhuanlan.zhihu.com/write'
  69. },
  70. loginSel: {
  71. username: '',
  72. password: ''
  73. },
  74. editorSel: {
  75. title: '.WriteIndex-titleInput > .Input',
  76. content: '.public-DraftEditor-content',
  77. publish: '.PublishPanel-stepTwoButton'
  78. }
  79. },
  80. oschina: {
  81. urls: {
  82. login: '',
  83. editor: ''
  84. },
  85. loginSel: {
  86. username: '',
  87. password: ''
  88. },
  89. editorSel: {
  90. title: 'input[name="title"]',
  91. content: '.cke_editable',
  92. publish: '.submit'
  93. }
  94. },
  95. toutiao: {
  96. urls: {
  97. login: '',
  98. editor: 'https://mp.toutiao.com/profile_v3/graphic/publish'
  99. },
  100. loginSel: {
  101. username: '',
  102. password: ''
  103. },
  104. editorSel: {
  105. title: '#title',
  106. content: '.ql-editor',
  107. publish: '#publish'
  108. }
  109. },
  110. cnblogs: {
  111. urls: {
  112. login: '',
  113. editor: 'https://i.cnblogs.com/EditArticles.aspx?opt=1'
  114. },
  115. loginSel: {
  116. username: '',
  117. password: ''
  118. },
  119. editorSel: {
  120. title: '#Editor_Edit_txbTitle',
  121. content: '#tinymce',
  122. publish: '#Editor_Edit_lkbPost'
  123. }
  124. },
  125. v2ex: {
  126. urls: {
  127. login: '',
  128. editor: 'https://v2ex.com/new'
  129. },
  130. loginSel: {
  131. username: '',
  132. password: ''
  133. },
  134. editorSel: {
  135. title: '#topic_title',
  136. content: '#editor',
  137. publish: '.super.normal.button'
  138. }
  139. }
  140. }