-
-
Save mclarke47/ff0456babf8f799f8053 to your computer and use it in GitHub Desktop.
Doesn't seem to work anymore | |
$("a").filter(function(index){return $(this).text()==="unsave"}).click(); | |
New | |
document.querySelectorAll("a").forEach(function(index,other){if(index.text==="unsave"){index.click();}}); |
It seemed not to work for a while, but it does again. Oh well! Cheers for the heads up!
document.querySelectorAll("a").forEach(function(index,other){if(index.text==="unsave"){index.click();}});window.location.reload(true);
where: window.location.reload(true); will refresh the page. So all you have to do is Ctrl+V and Enter
Nice one 👍
Times are a-changin again. This works on the current modern Reddit ui:
document.querySelectorAll("button[role='menuitem']").forEach(function(index,other){if(index.textContent==="unsave"){index.click();}});window.location.reload(true);
I used this most recently:
document.querySelectorAll("span[class='_2-cXnP74241WI7fpcpfPmg']").forEach(function(index,other){if(index.textContent==="unsave"){index.click();}});window.location.reload(true);
I used this most recently:
document.querySelectorAll("span[class='_2-cXnP74241WI7fpcpfPmg']").forEach(function(index,other){if(index.textContent==="unsave"){index.click();}});window.location.reload(true);
Worked for me. Many thanks for this creative solution. Saved me quite a bit of time!