123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- module.exports = {
- juejin: {
- urls: {
- login: 'https://juejin.im/login',
- editor: 'https://juejin.im/editor/drafts/new'
- },
- loginSel: {
- username: '.input[name="loginPhoneOrEmail"]',
- password: '.input[name="loginPassword"]',
- submit: '.btn:nth-child(3)'
- },
- editorSel: {
- title: '.title-input',
- content: '.ace_text-input',
- publish: '.publish-btn'
- }
- },
- segmentfault: {
- urls: {
- login: 'https://segmentfault.com/user/login',
- editor: 'https://segmentfault.com/write?freshman=1'
- },
- loginSel: {
- username: 'input[name="username"]',
- password: 'input[name="password"]',
- submit: 'button[type="submit"]'
- },
- editorSel: {
- title: '#myTitle',
- content: '#myEditor',
- publish: '#publishIt'
- }
- },
- jianshu: {
- urls: {
- login: 'https://www.jianshu.com/sign_in',
- editor: 'https://www.jianshu.com/writer'
- },
- loginSel: {
- username: '',
- password: '',
- submit: ''
- },
- editorSel: {
- title: 'input:not([name="name"])',
- content: '#arthur-editor',
- publish: 'a[data-action="publicize"]'
- }
- },
- csdn: {
- urls: {
- login: '',
- editor: 'https://mp.csdn.net/postedit'
- },
- loginSel: {
- username: '',
- password: ''
- },
- editorSel: {
- title: '#txtTitle',
- content: '.htmledit_views',
- publish: '#btnPublish'
- }
- },
- zhihu: {
- urls: {
- login: '',
- editor: 'https://zhuanlan.zhihu.com/write'
- },
- loginSel: {
- username: '',
- password: ''
- },
- editorSel: {
- title: '.WriteIndex-titleInput > .Input',
- content: '.public-DraftEditor-content',
- publish: '.PublishPanel-stepTwoButton'
- }
- },
- oschina: {
- urls: {
- login: '',
- editor: ''
- },
- loginSel: {
- username: '',
- password: ''
- },
- editorSel: {
- title: 'input[name="title"]',
- content: '.cke_editable',
- publish: '.submit'
- }
- },
- toutiao: {
- urls: {
- login: '',
- editor: 'https://mp.toutiao.com/profile_v3/graphic/publish'
- },
- loginSel: {
- username: '',
- password: ''
- },
- editorSel: {
- title: '#title',
- content: '.ql-editor',
- publish: '#publish'
- }
- },
- cnblogs: {
- urls: {
- login: '',
- editor: 'https://i.cnblogs.com/EditArticles.aspx?opt=1'
- },
- loginSel: {
- username: '',
- password: ''
- },
- editorSel: {
- title: '#Editor_Edit_txbTitle',
- content: '#tinymce',
- publish: '#Editor_Edit_lkbPost'
- }
- },
- v2ex: {
- urls: {
- login: '',
- editor: 'https://v2ex.com/new'
- },
- loginSel: {
- username: '',
- password: ''
- },
- editorSel: {
- title: '#topic_title',
- content: '#editor',
- publish: '.super.normal.button'
- }
- }
- }
|