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
{{ message }}
This repository was archived by the owner on Jul 4, 2019. It is now read-only.
不过我觉得应该还有改进之处,比如每次添加书签都要请求bookmark_tag_all.php这点,我的bookmark_tag_all.php页面几乎有数千个标签,整个页面大小都超过1MB了,白天的话还好,晚上高峰时段整个lag到不行,还有某些页面除了预置标签之外pixiv还会官方推荐'オリジナル'这样的标签到标签编辑页面,这样很有可能标签数就超过一般用户的10个的限制了。
所以对该脚本作出以下两点建议,如果能够做到的话运行效率应该会有极大提升:
http://www.pixiv.net/bookmark_tag_all.php 获取的标签列表,存为数组
tagscache,存储到localstorage,运行间隔:首次安装脚本时运行,每隔24小时运行1次,以避免频繁请求。用户从 http://www.pixiv.net/bookmark_add.php 手动添加或者编辑书签时监视添加的标签并添加到数组
tagscache,当页面标签大于10个时,剔除不重要的标签如'^オリジナル$'、'^R-18$'、'^R-18G$'、'^女の子$'、'^版権$'、'^創作$'、'\w+\d+users入り$'等。