F95API/legacy/scripts/constants/css-selector.js

34 lines
1.8 KiB
JavaScript
Raw Normal View History

2020-10-30 19:41:56 +00:00
module.exports = Object.freeze({
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\"]",
2020-10-31 15:00:26 +00:00
GAME_IMAGES: "img[src^=\"https://attachments.f95zone.to\"]",
GAME_TAGS: "a.tagItem",
GAME_TITLE: "h1.p-title-value",
GAME_TITLE_PREFIXES: "h1.p-title-value > a.labelLink > span[dir=\"auto\"]",
2020-10-30 19:41:56 +00:00
LOGIN_BUTTON: "button.button--icon--login",
2020-10-31 15:00:26 +00:00
LOGIN_MESSAGE_ERROR:
"div.blockMessage.blockMessage--error.blockMessage--iconic",
2020-10-30 19:41:56 +00:00
ONLY_GAMES_THREAD_OPTION: "select[name=\"nodes[]\"] > option[value=\"2\"]",
PASSWORD_INPUT: "input[name=\"password\"]",
SEARCH_BUTTON: "form.block > * button.button--icon--search",
SEARCH_FORM_TEXTBOX: "input[name=\"keywords\"][type=\"search\"]",
SEARCH_ONLY_GAMES_OPTION: "select[name=\"c[nodes][]\"] > option[value=\"1\"]",
STATUS_ID_SELECTOR: "div[id^=\"btn-prefix_4_\"]>span",
2020-10-31 15:00:26 +00:00
THREAD_POSTS:
"article.message-body:first-child > div.bbWrapper:first-of-type",
THREAD_TITLE: "h3.contentRow-title",
2020-10-30 19:41:56 +00:00
TITLE_ONLY_CHECKBOX: "form.block > * input[name=\"c[title_only]\"]",
2020-10-31 15:00:26 +00:00
UNREAD_THREAD_CHECKBOX: "input[type=\"checkbox\"][name=\"unread\"]",
2020-10-30 19:41:56 +00:00
USERNAME_ELEMENT: "a[href=\"/account/\"] > span.p-navgroup-linkText",
USERNAME_INPUT: "input[name=\"login\"]",
2020-10-31 15:00:26 +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]",
2020-10-30 19:41:56 +00:00
DOWNLOAD_LINKS_CONTAINER: "span[style=\"font-size: 18px\"]",
2020-10-31 15:00:26 +00:00
SEARCH_THREADS_RESULTS_BODY: "div.contentRow-main",
SEARCH_THREADS_MEMBERSHIP: "li > a:not(.username)",
2020-10-30 19:41:56 +00:00
THREAD_LAST_CHANGELOG: "div.bbCodeBlock-content > div:first-of-type",
});