• 请不要在回答技术问题时复制粘贴 AI 生成的内容
zjsxwc
V2EX  ›  程序员

请帮我排查下我这个油猴 js 插件的 bug

  •  
  •   zjsxwc ·
    zjsxwc · Feb 25, 2019 · 1411 views
    This topic created in 2664 days ago, the information mentioned may be changed or developed.

    写了个朗读起点小说的插件,

    但是碰到问题是只能第一次打开页面可以朗读,

    第二次打开同样的页面就报错了。

    油猴插件地址: https://greasyfork.org/en/scripts/378232-%E8%B5%B7%E7%82%B9%E6%9C%97%E8%AF%BB

    测试网页: https://read.qidian.com/chapter/A9ycOJKIw-kKVgi5xLJPjA2/cA0r8wQTr6rgn4SMoDUcDQ2

    报错截图: https://i.loli.net/2019/02/25/5c734b19e3c91.png

    Supplement 1  ·  Feb 25, 2019
    已接近,

    不算 Bug 的 Bug:由于 Chrome 安全策略默认刷新页面后不会自动播放,解决办法是 Chrome 打开地址`chrome://flags/#autoplay-policy`,允许为`No user gesture is required`,然后重启 Chrome 就可以了
    ljwzz
        1
    ljwzz  
       Feb 25, 2019   ❤️ 1
    请帮我支付下我这个月的生活费
    hellowes
        2
    hellowes  
       Feb 25, 2019
    这个“请”字很礼貌,但是也很傲慢
    请注意是“你”在求别人“办事”,摆正自己的位置的态度
    zjsxwc
        3
    zjsxwc  
    OP
       Feb 25, 2019
    @hellowes
    @ljwzz

    已解决,谢谢支持!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5454 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 03:30 · PVG 11:30 · LAX 20:30 · JFK 23:30
    ♥ Do have faith in what you're doing.