简书直接跳转

使简书内页的网址直接跳转,而不是让用户手动复制链接

< Feedback on 简书直接跳转

Review: OK - script works, but has bugs

§
Posted: 2020-12-21

新增一个if判断适配新的规则

if(u.indexOf("\/?t=") !== -1){
        let subhrf = u.split("\/?t=")[1];
        let url = decodeURIComponent(subhrf);
        tag.href=url;
        console.log(subhrf);
    }

Post reply

Sign in to post a reply.