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>`

發表回覆

登入以回復