Code Monkey home page Code Monkey logo

Comments (6)

asadahimeka avatar asadahimeka commented on June 10, 2024

我这边没问题欸,可能是翻译文件没有加载成功

from yandere-masonry.

keeptpa avatar keeptpa commented on June 10, 2024

嗯....这就很奇怪了,不过可以很明确的说,用于翻译的json是加载成功了的,我打印过
我还是认为是选择器存在问题,他的确返回了一个空集,因此翻译tag的遍历这部分压根儿是没进去的。
(难道yandere的布局和节点会变动的吗……?)
但是既然问题不能复现,所以改起来应该挺麻烦的……
我先修改一个本地版本用吧,如果后面还有人出现同样问题可以试试看上面提到的方法。
谢谢作者了,祝新年快乐

from yandere-masonry.

asadahimeka avatar asadahimeka commented on June 10, 2024

新年快乐
可能标签元素链接里没有 ?tags= 就没取到集合
首页 (yande.re/post) 就翻译不成功吗,还是什么特定页面
或者可能是与其他什么脚本扩展之类的冲突了
先本地改着用吧

from yandere-masonry.

keeptpa avatar keeptpa commented on June 10, 2024

怪我,怪我没说明白
是这样的,登录前可以正常汉化,但是使用标签开始搜索时就不能汉化了,比如在_https://yande.re/post?tags=seifuku+_
脚本只有这一个,新的系统新的chrome

更新:发现是登录后就不能正常汉化了
image

image

可以看到我这里登陆后,标签前的 + 和 - 号全部带有 no-browser-link ,所以都被过滤掉了,这是正常的,问题是过滤后啥也不剩了。
而奇怪的是标签本身没有被选择器选到
所以我去看了眼标签的href,
标签自身的href和 ?tags= 简直是一点关系都没有,无怪乎没被搜到:
image

很怪,鉴于就我一个遇到这个问题,我还是决定自己改一下选择器
我用我的三脚猫功夫,把这里的选择器

改成了这样子
setTagText('#site-title a[href^="/post/browse#/"]', textEn);

这样登陆后就能运行了(但是登陆前就不能运行了,我有空再想办法救吧)
自然,之前说删掉 ?tags= 就能运行也是可以的,但是不够精准自然 XD

总结:部分倒霉蛋(或者说只有我)的tag不包含?tags=所以不会被搜索到
这个issue大概可以收纳了,希望能帮到后边的人,谢谢作者的回复

from yandere-masonry.

asadahimeka avatar asadahimeka commented on June 10, 2024

我猜是因为你在 Y 站 设置 里打开了这个开关,然后和登录之前的查看模式不一样了,这个 browse 模式我并没有适配

from yandere-masonry.

keeptpa avatar keeptpa commented on June 10, 2024

我想可能确实是因为这个了,但是我并没有手动调整他的印象
总之……问题清晰解决了,谢谢作者了

from yandere-masonry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.