Shake Gifts button

Adds a 'Shake' button to unrevealed gifts

< 脚本 Shake Gifts button 的反馈

评价:好评 - 脚本运行良好

§
发布于:2024-08-14
编辑于:2024-08-14

Hi there! I made a change where it'll move the Shake Gifts button to the right and uses the class for links/buttons on AO3 if you would like to update it in or if anyone else wants to edit their script in their browser:

if (a.innerText.includes("This is part of an ongoing challenge and will be revealed soon!")) a.innerHTML += <p class="actions" style="margin: 0; display:inline-block; float:right;"><a rel="nofollow" onclick=window.open("${link}","_blank")>Shake</a></p>

Just comment out line 18 with // and copy/paste the above code into line 19 as shown in screenshot below.

§
发布于:2024-08-14

Great script though, thank you so much!!

§
发布于:2024-08-14

Hi there! I made a change where it'll move the Shake Gifts button to the right and uses the class for links/buttons on AO3 if you would like to update it in or if anyone else wants to edit their script in their browser:

if (a.innerText.includes("This is part of an ongoing challenge and will be revealed soon!")) a.innerHTML += <p class="actions" style="margin: 0; display:inline-block; float:right;"><a rel="nofollow" onclick=window.open("${link}","_blank")>Shake</a></p>

Oops for anyone looking; the backticks on the statement didn't show. Please copy the below code instead.

if (a.innerText.includes("This is part of an ongoing challenge and will be revealed soon!")) a.innerHTML += `<p class="actions" style="margin: 0; display:inline-block; float:right;"><a rel="nofollow" onclick=window.open("${link}","_blank")>Shake</a></p>`

发布留言

登录以发布留言。