• elm
  • dcve

    点不了赞,有bug

    #1
  • dcve

    原来点赞按钮在右上,现在改正文下面了,正文不显示,点赞按钮就不显示。

    #2
  • bbs1

    修复

    #3
  • 123456789

    这个帖子是bug,主楼不能点赞😅

    #9
  • Chet

    新建书签,网址填下面整段(bookmarklet)。在任意帖子页点一下这个书签即可给主楼点赞:
    投币个数通过修改const cost=1中的数字改变,只能是1、3、5、10。

    javascript:(async()=>{const t=location.pathname.match(/topic\/(\d+)/);if(!t)return alert('请在帖子页使用');const csrf=document.querySelector('input[name="_csrf"]');if(!csrf)return alert('请先登录');const cost=1;const fd=new FormData();fd.set('_csrf',csrf.value);fd.set('like_coin_type','topic');fd.set('like_coin_id',t[1]);fd.set('like_coin_coin_points',String(cost));fd.set('like_coin_note','');const r=await fetch(location.origin+'/like_coin',{method:'POST',body:fd,credentials:'same-origin',headers:{'X-Requested-With':'XMLHttpRequest','Accept':'application/json'}});const j=await r.json();console.log(j);if(j.ok)location.reload();else alert(j.message||'失败');})()
    #4
  • dcve

    牛逼,我还得走个脚本点赞👍

    #6
  • flinthub

    点不了赞啊

    #7
  • elm

    4楼有方法

    #8

发表回复

登录后回复