-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
前后页选择的加载顺序貌似在内容分析补丁之前? #4
Comments
@Antecer 对了,新扩展LeanRabbook发布了...我在贴吧也发了... https://chrome.google.com/webstore/detail/leanrabbook/jcgmmejcojnlcojnkfcggnjdfjcnhpjb |
@shinemoon 新扩展我已经看到了,话说这个源码能上传git么?最好是能把我拉入开发组O(∩_∩)O~ |
@Antecer 嗯,稍微等段时间,至少沉淀掉些低级错误之后,我会上传的。 |
@shinemoon 我在贴吧你那个帖子发了点有趣的东西,以后可能需要一点技术支持... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
经过多次测试得到如题的结果,这导致某些使用js翻页的网站没法重设翻页链接。
比如幻剑书盟,我在内容分析补丁添加如下代码却并没有起作用:
[{ "id":21, "name":"幻剑书盟", "address":"http://hjsm.tom.com", "url_reg":"^http://book.hjsm.tom.com/\\d+/\\S+.html$", "content_selector":".nr_con", "navigation_selector":"#bookCatalogCtrl", "navigation_selector_pre":"#preChapterCtrl", "navigation_selector_next":"#nextChapterCtrl", "title_reg":"(.*?)-(.*?)-.*", "title_location":"1", "content_patch":"var pageurl = fakeStub.find('.nr_con script:last').attr('src').replace(/\\d+\\/(\\S+).js/, '$1');var pageid = pageurl.match(/\\d+$/);fakeStub.find('#preChapterCtrl').attr('href', pageurl.replace(/(\\d+$)/, parseInt(pageid)-1+'.html'));fakeStub.find('#nextChapterCtrl').attr('href', pageurl.replace(/(\\d+$)/, parseInt(pageid)+1+'.html'));", "update_patch":"", "enable":"true", "updateInfoPage":"INDEX", "updateDiv":"div.ocon a:last", "type":"customize", "post":"1", "patch":""}]
The text was updated successfully, but these errors were encountered: