F95API/app/scripts/constants/css-selectors.js

33 lines
1.6 KiB
JavaScript
Raw Normal View History

module.exports = Object.freeze({
2020-10-16 07:58:08 +00:00
AVATAR_INFO: 'span.avatar',
AVATAR_PIC: 'a[href="/account/"] > span.avatar > img[class^="avatar"]',
ENGINE_ID_SELECTOR: 'div[id^="btn-prefix_1_"]>span',
FILTER_THREADS_BUTTON: 'button[class="button--primary button"]',
GAME_IMAGES: 'img[src^="https://attachments.f95zone.to"]',
2020-10-16 07:58:08 +00:00
GAME_TAGS: 'a.tagItem',
GAME_TITLE: 'h1.p-title-value',
GAME_TITLE_PREFIXES: 'h1.p-title-value > a.labelLink > span[dir="auto"]',
2020-10-16 07:58:08 +00:00
LOGIN_BUTTON: 'button.button--icon--login',
LOGIN_MESSAGE_ERROR:
2020-10-16 07:58:08 +00:00
'div.blockMessage.blockMessage--error.blockMessage--iconic',
ONLY_GAMES_THREAD_OPTION: 'select[name="nodes[]"] > option[value="2"]',
PASSWORD_INPUT: 'input[name="password"]',
2020-10-16 07:58:08 +00:00
SEARCH_BUTTON: 'form.block > * button.button--icon--search',
SEARCH_FORM_TEXTBOX: 'input[name="keywords"]',
STATUS_ID_SELECTOR: 'div[id^="btn-prefix_4_"]>span',
THREAD_POSTS:
2020-10-16 07:58:08 +00:00
'article.message-body:first-child > div.bbWrapper:first-of-type',
THREAD_TITLE: 'h3.contentRow-title',
TITLE_ONLY_CHECKBOX: 'form.block > * input[name="c[title_only]"]',
UNREAD_THREAD_CHECKBOX: 'input[type="checkbox"][name="unread"]',
USERNAME_ELEMENT: 'a[href="/account/"] > span.p-navgroup-linkText',
USERNAME_INPUT: 'input[name="login"]',
2020-10-16 07:58:08 +00:00
WATCHED_THREAD_FILTER_POPUP_BUTTON: 'a.filterBar-menuTrigger',
WATCHED_THREAD_NEXT_PAGE: 'a.pageNav-jump--next',
WATCHED_THREAD_URLS: 'a[href^="/threads/"][data-tp-primary]',
DOWNLOAD_LINKS_CONTAINER: 'span[style="font-size: 18px"]',
2020-10-16 07:58:08 +00:00
SEARCH_THREADS_RESULTS_BODY: 'div.contentRow-main',
SEARCH_THREADS_MEMBERSHIP: 'li > a:not(.username)',
2020-10-16 08:05:28 +00:00
THREAD_LAST_CHANGELOG: 'div.bbCodeBlock-content > div:first-of-type'
});