How to delete all pictures of ONE gallery at once
Update (Nov. 13th)
Thanks to fellow user star1962-1, there is an easier way to delete all pictures of one gallery at once:
1. Go to https://xhamster.com/my/photos
2. Click on the "Pencil button" (Edit) of the gallery you want to delete
3. The gallery will open in a new tab
4. Switch to "Mobile Version" (bottom of the page)
5. Click on the Pencil icon (Edit) located at the top right side of your gallery page. The gallery editor will open in the same tab.
6. Click on the "Remove gallery" link at the top left side of the page
7. Click on the button "Yes" on the pop-up "Remove gallery: Are you sure you want to remove current gallery?"
And that it is! Now repeat for each gallery you want to delete.
Given that this procedure is easier and it seems to work in any browser/OS combination and for all users that tried it, please consider my script as deprecated.
Thanks a lot!.
=====================
A lot of people are asking me how to delete all their photo galleries at once. It is not easy as XH doesn't want you to delete your content because they use YOUR content to sell ads (their main source of income). because of this, you need to delete each picture one at a time.
I wrote a procedure to delete all pictures of ONE gallery at once (Warning: This will delete all the pictures of your gallery and there is no provision to recover the pictures). Remember that you cannot upload new pictures to your account unless you are a verified user.
1. Go to https://xhamster.com/my/photos
2. Click on the "Pencil button" (Edit) of the gallery you want to delete
3. The gallery will open in a new tab
4. On the gallery tab that just opened, open the Javascript Console pressing Command + Option + J (Mac) or Control + Shift + J (Windows, Linux, Chrome OS).
Note: Please make sure that you're opening the Javascript Console in the Edit Gallery tab (the url should start with https://xhamster.com/my/edit/photos/) and not the My Content tab (https://xhamster.com/my/photos) to avoid the error Uncaught TypeError: buttons_delete.click is not a function.
5. Paste the following three lines of code at the console prompt
var buttons_delete = document.getElementsByClassName('delete delete-photo');
for(var i = 0; i < buttons_delete.length; i++)
buttons_delete.click();
6. Press the "Enter" key and watch how the pictures are being deleted
7. If you have several pages of pictures in your gallery, you will need to repeat steps 5 and 6 until all pictures are deleted.
8. Start again with step 1 to delete another gallery.
If this procedure works for you, please copy it to your profile or to a post in your account and mention it to your friends and followers. I'm sure XH will delete this post. Thanks!
Thanks to fellow user star1962-1, there is an easier way to delete all pictures of one gallery at once:
1. Go to https://xhamster.com/my/photos
2. Click on the "Pencil button" (Edit) of the gallery you want to delete
3. The gallery will open in a new tab
4. Switch to "Mobile Version" (bottom of the page)
5. Click on the Pencil icon (Edit) located at the top right side of your gallery page. The gallery editor will open in the same tab.
6. Click on the "Remove gallery" link at the top left side of the page
7. Click on the button "Yes" on the pop-up "Remove gallery: Are you sure you want to remove current gallery?"
And that it is! Now repeat for each gallery you want to delete.
Given that this procedure is easier and it seems to work in any browser/OS combination and for all users that tried it, please consider my script as deprecated.
Thanks a lot!.
=====================
A lot of people are asking me how to delete all their photo galleries at once. It is not easy as XH doesn't want you to delete your content because they use YOUR content to sell ads (their main source of income). because of this, you need to delete each picture one at a time.
I wrote a procedure to delete all pictures of ONE gallery at once (Warning: This will delete all the pictures of your gallery and there is no provision to recover the pictures). Remember that you cannot upload new pictures to your account unless you are a verified user.
1. Go to https://xhamster.com/my/photos
2. Click on the "Pencil button" (Edit) of the gallery you want to delete
3. The gallery will open in a new tab
4. On the gallery tab that just opened, open the Javascript Console pressing Command + Option + J (Mac) or Control + Shift + J (Windows, Linux, Chrome OS).
Note: Please make sure that you're opening the Javascript Console in the Edit Gallery tab (the url should start with https://xhamster.com/my/edit/photos/) and not the My Content tab (https://xhamster.com/my/photos) to avoid the error Uncaught TypeError: buttons_delete.click is not a function.
5. Paste the following three lines of code at the console prompt
var buttons_delete = document.getElementsByClassName('delete delete-photo');
for(var i = 0; i < buttons_delete.length; i++)
buttons_delete.click();
6. Press the "Enter" key and watch how the pictures are being deleted
7. If you have several pages of pictures in your gallery, you will need to repeat steps 5 and 6 until all pictures are deleted.
8. Start again with step 1 to delete another gallery.
If this procedure works for you, please copy it to your profile or to a post in your account and mention it to your friends and followers. I'm sure XH will delete this post. Thanks!
3 years ago
If we cannot enjoy the user-contributed content, XH should not make a profit from it.
Please make sure that you're opening the Javascript Console in the Edit Gallery tab (the url should start with https://xhamster.com/my/edit/photos/) and not the My Content tab (https://xhamster.com/my/photos) to avoid the error Uncaught TypeError: buttons_delete.click is not a function.
Please make sure that you're opening the Javascript Console in the Edit Gallery tab (the url should start with https://xhamster.com/my/edit/photos/) and not the My Content tab (https://xhamster.com/my/photos) to avoid the error Uncaught TypeError: buttons_delete.click is not a function.
Uncaught TypeError: buttons_delete.click is not a function
at
I tried with mac but no luck with that either.
OK... I'm going to get some s l e e p... I can't think clearly anymore.