techmovie / easy-upload

PT转种脚本,自动填写上传页表单,支持内外站互转,支持PT站间快速检索。
https://greasyfork.org/zh-CN/scripts/423199
MIT License
384 stars 36 forks source link

feat: add new site zhuque #215

Closed ted423 closed 1 year ago

ted423 commented 1 year ago

表示我折腾了一点 不过因为比较高级。标题可能需要在上传种子之后重写 副标题一点就没,check和选择框基本都没法正确选择

                $("#form_item_mediainfo")[0].addEventListener("input",(e)=>{
                    if(e.myself) return true; //判断是否是伪造的事件
                    e.stopPropagation(); //阻止事件传播
                    return false;
                },true);

这是明日大在mediainfo处用的代码 让用户自己加空格吧

ted423 commented 1 year ago

除了textarea基本都是一点没

ted423 commented 1 year ago

目测用的 ant design 有查到有文档,但水平有限 还有查到 https://stackoverflow.com/questions/70957707/how-can-i-get-values-of-input-sent-to-api-on-ok-button-of-ant-design-modal

https://stackoverflow.com/questions/60949265/ant-design-input-component-not-updating-value

ted423 commented 1 year ago

image 这样定位到了一些东西,不知道有没有用 image

ted423 commented 1 year ago

image

ted423 commented 1 year ago

算了,搞不定

ted423 commented 1 year ago

參考了下明日大的代碼,我感覺我又行了

ted423 commented 1 year ago

分类这块

                    $('#form_item_category').attr('aria-activedescendant', `form_item_category_list_${index}`);
                    $('#form_item_category').val('Movie');

感觉勾选项就让用户自己勾好了

ted423 commented 1 year ago

@techmovie 这个commit需要你看下

techmovie commented 1 year ago

@techmovie 这个commit需要你看下

现在还是draft吧 还合并不了

ted423 commented 1 year ago

@techmovie 这个commit需要你看下

现在还是draft吧 还合并不了

因为这里改就是整个脚本的执行都会是 document-idle 所以跟你确认下,我自己用感觉没啥影响

techmovie commented 1 year ago

@ted423 应该是比document-end更靠后 应该没问题

ted423 commented 1 year ago

仍然有一定几率会无法执行,可能需要上MutationObserver 并且tag是更后的加载

目前临时用 $('#form_item_torrent').bind('change', () => { 测了下可以正常选择tag。 但是执行顺序这块还要改,或许settimeout之类的

ted423 commented 1 year ago

基本写完了,除了一些细项可能会有问题