This repository was archived by the owner on Jan 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Tracker userScript API_exKit
Anton edited this page Jan 14, 2017
·
8 revisions
exKit - Tools that allow easy create new trackers. To enable this feature, you need to add "@require exKit" in meta.
Returns value
Type | Properties | Description |
---|---|---|
function | (optional) selectorName |
Call then match selector function selectorName({tracker: Tracker, query: string, data: string, responseUrl: string, requestUrl: string, |
Type | Properties | Description |
---|---|---|
SelectorHeader | (optional) title |
Call then match title |
SelectorHeader | (optional) url |
Call then match url |
SelectorHeader | (optional) categoryTitle |
Call then match categoryTitle |
SelectorHeader | (optional) categoryUrl |
Call then match categoryUrl |
SelectorHeader | (optional) size |
Call then match size |
SelectorHeader | (optional) downloadUrl |
Call then match downloadUrl |
SelectorHeader | (optional) seed |
Call then match seed |
SelectorHeader | (optional) peer |
Call then match peer |
SelectorHeader | (optional) date |
Call then match date |
Type | Properties | Description |
---|---|---|
Selector | title | Torrent title selector |
Selector | url | Torrent url selector |
Selector | (optional) categoryTitle |
Category title selector |
Selector | (optional) categoryUrl |
Category url selector |
Selector | (optional) size |
Torrent size selector |
Selector | (optional) downloadUrl |
Download url selector |
Selector | (optional) seed |
Seed selector |
Selector | (optional) peer |
Peer selector |
Selector | (optional) date |
Date selector |
Type | Properties | Description |
---|---|---|
string | selector | Selector $(Node).find('selector') |
string | (optional) attr |
Attribute $(Node).find('selector').attr('attr') |
Type | Properties | Description |
---|---|---|
string | (optional) loginUrl |
Login url |
string | (optional) loginFormSelector |
Login form selector, if found will show login icon |
string | searchUrl | Seacrh url, where %search% replaced to query |
Selector | (optional) nextPageSelector |
Selector must match link to next page |
string | (optional) baseUrl |
Url for relative links |
string | (optional) requestType | Request method GET or POST |
string | (optional) requestData |
Querystring, where %search% replaced to query |
string | (optional) requestMimeType |
Request mime type |
string | listItemSelector | Selector for rows in table |
Array | (optional) listItemSplice |
Skit rows from top and bottom [{number} top, {number} bottom] |
function | (optional) onBeforeRequest |
Call before request function onBeforeRequest({tracker: Tracker, query: string} details) |
function | (optional) onAfterRequest |
Call after request function onAfterRequest({tracker: Tracker, query: string, data: string, responseUrl: string, requestUrl: string} details) |
function | (optional) onBeforeDomParse |
Call before dom parse function onBeforeDomParse ({tracker: Tracker, query: string, data: string, responseUrl: string, requestUrl: string} details) |
function | (optional) onAfterDomParse |
Call after dom parse function onAfterDomParse({tracker: Tracker, query: string, data: string, responseUrl: string, requestUrl: string, |
TorrentSelector | torrentSelector | Object with torrent rows |
function | (optional) onGetListItem |
Call when match torrentSelector function onGetListItem({tracker: Tracker, query: string, data: string, responseUrl: string, requestUrl: string, |
SelectorHandlers | (optional) onGetValue |
Call when some TorrentSelector is matched |
SelectorHandlers | (optional) onSelectorIsNotFound |
Call when some TorrentSelector is not found |
SelectorHandlers | (optional) onEmptySelectorValue |
Call when TorrentSelector value is empty |
Type | Properties | Description |
---|---|---|
Search | search | Search object |
API_exKit(Code details)
Type | Properties | Description |
---|---|---|
Code | details | Tracker code |