修复 javabus.com 的链接在新标签页打开的问题#29
Open
leyle wants to merge 2 commits intohobbyfang:masterfrom
leyle:master
Open
Conversation
Owner
|
这个影响了我的脚本其他功能,冲突了,目前看来只能瀑布流那段可以。在线接收部分代码我还没搞懂怎么操作,等我下次提交代码放入吧。 |
Author
嗯,给所有链接加 target 这个功能,我发现影响范围太大了,后面我改了下,用了个丑陋实现,限制到仅 javbus 网站生效。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
javbus.com 网站的数据被请求后,链接并没有添加上 target=_blank,故做了两点修改:
1、在 fetch 数据 parse 了 html 后,给列表页的 item 的 a tag 添加上 target 属性;
2、给非列表页的链接添加 target 属性。