This script votes for all the parts in a Wattpad Story at once.
- Visit the URL of a Story (Ensure this is the page which has a table of contents, the story's tags, ...)
- Press
ctrl
+shift
+j
. This opens the Developer Console. - Copy the script in this gist (below, and in
script.js
. Copy from whatever's convenient.) - Paste the code into the Developer Console on the Wattpad Tab, hit enter.
- Great, you're done!
Star ⭐ this gist if it was useful. Follows to my GitHub Profile are appreciated.
Also found in the script.js
file below.
let story_id = window.location.href.split("story/")[1].split("-")[0];
let part_ids = []
Array.from(document.getElementsByClassName("story-parts")[0].children[0].children).forEach(el => part_ids.push(el.children[0].href.split("com/")[1].split("-")[0]))
part_ids.forEach(part_id => {
let url = `
https://www.wattpad.com/api/v3/stories/${story_id}/parts/${part_id}/votes`;
fetch(url, { method: "POST" })
})
TheOnlyWayUp © 2024