You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now plugin can define a function named addReadHistory in plugin code:
/** * Add reading history to the target server. * * @param {string} url The manga chapter url that the Rulia requests to. */asyncfunctionaddReadHistory(url: string){// Get necessary information from the url.// For an example, the url is "https://www.my-manga-site.com/chapter/12450"constchapterId=getChapterIdFromUrl(url)// 12450awaitfetch('https://www.my-manga-site.com/reading-history/add',{ ... })}
Rulia invokes this function when every chapter opens.
Rulia will invoke "addReadHistory" function that provides by plugin to add reading history to target site.
The text was updated successfully, but these errors were encountered: