Skip to content

Instantly share code, notes, and snippets.

@netravnen
Created July 30, 2022 09:50
Show Gist options
  • Save netravnen/d3051415b679f8e99acd6a40a4c7e470 to your computer and use it in GitHub Desktop.
Save netravnen/d3051415b679f8e99acd6a40a4c7e470 to your computer and use it in GitHub Desktop.
Easy delete all your inoreader tags. As the current menu does not allow bulk deleting the tags from the settings menu.
// Last modified: 2022-07-30
setInterval(function () {
// Select tag to delete, goes top down order
var tag = document.querySelector(
'span.icon-delete-subscription[title="Delete tag"]'
)
// Click the trash can (delete) icon
tag.click()
// Select the 'Yes' button to confirm delete
var things = document.evaluate(
'//button[contains(text(),"Yes")]',
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null
)
// Confirm the delete action by clicking the button
for (var i = 0; i < things.snapshotLength; i++) {
things.snapshotItem(i).click()
}
// Rinse and repeat (loop)
}, 1000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment