Skip to content

Commit

Permalink
Merge pull request #7 from croque-scp/batch-deletes
Browse files Browse the repository at this point in the history
Batch deletes
  • Loading branch information
rossjrw authored Sep 8, 2023
2 parents 470cea7 + c95eedd commit f4bcb24
Show file tree
Hide file tree
Showing 4 changed files with 292 additions and 110 deletions.
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"arrowParens": "avoid",
"semi": false
}
41 changes: 18 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,44 +1,39 @@
# Wikidot applications deletion userscript

[Tampermonkey](https://www.tampermonkey.net/) userscript for
[Wikidot](https://www.wikidot.com/) users.
[Tampermonkey](https://www.tampermonkey.net/) userscript for [Wikidot](https://www.wikidot.com/) users.

Adds two buttons to the messages inbox:

* **Delete recent applications:** Deletes applications on the first page of
the user's inbox, then the second, and so on until a page is found that
already has no applications.
* **Delete all applications:** Deletes all applications in the user's
inbox.
* **Delete recent applications:** Deletes applications on the first page of the user's inbox, then the second, and so on until a page is found that already has no applications.
* **Delete all applications:** Deletes all applications in the user's inbox.

<p align="center">
<img src="https://raw.githubusercontent.com/croque-scp/delete-applications/main/screenshot.png">
</p>

Before deletion is committed, a confirmation dialogue will be raised.

Especially useful for Wikidot administrators of popular sites, whose
inboxes will quickly become full of applications, drowning out actual
messages from other users. Use at own risk.
Especially useful for Wikidot administrators of popular sites, whose inboxes will quickly become full of applications, drowning out actual messages from other users. Use at own risk.

Installation instructions: https://scpwiki.com/usertools#userscripts

## Installation via Tampermonkey

This method permanently adds the two buttons to your Wikidot inbox. They will be there for as long as you have both Tampermonkey and this userscript installed.

1. Install [Tampermonkey](https://www.tampermonkey.net/).
2. Visit the [userscript
directly](https://github.com/croque-scp/delete-applications/raw/main/delete-applications.user.js).
3. Tampermonkey will prompt you to install the userscript. Click 'install'
to do so, being sure to review the code first.
2. Visit the [userscript directly](https://github.com/croque-scp/delete-applications/raw/main/delete-applications.user.js).
3. Tampermonkey will prompt you to install the userscript. Click 'install' to do so, being sure to review the code first.
4. Visit your [Wikidot inbox](https://www.wikidot.com/account/messages). The two buttons will be there.

Uninstallation: Go to your Tampermonkey dashboard, which can be found in your browser extensions page. Click the bin icon next to the 'Wikidot applications deleter' script.

## Usage without Tampermonkey

1. Visit the [userscript
directly](https://github.com/croque-scp/delete-applications/raw/main/delete-applications.user.js)
and copy the whole thing.
2. Visit your [Wikidot inbox](https://www.wikidot.com/account/messages) and
open the JavaScript console.
3. Paste the userscript into the console and press enter.
4. Enter one of the following, and then press enter:
* `deleteApplications()` to delete recent applications
* `deleteApplications(true)` to delete all applications
This method adds the two buttons to your Wikidot inbox once only. They will no longer be there as soon as you leave the page.

1. Visit the [userscript directly](https://github.com/croque-scp/delete-applications/raw/main/delete-applications.user.js) and copy the whole thing.
2. Visit your [Wikidot inbox](https://www.wikidot.com/account/messages) and open the JavaScript console.
3. Paste the userscript into the console and press enter. The two buttons will appear.

This is a one-off process that must be repeated every time you want to delete applications. Use this method if you don't want to (or can't) install this tool as a Tampermonkey userscript.
Loading

0 comments on commit f4bcb24

Please sign in to comment.