Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle

Notices

Reply
 
Thread Tools Search this Thread
Old 12-28-2011, 05:45 PM   #1
thomass
Wizard
thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.
 
Posts: 1,642
Karma: 1928001
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
Bookmarklet to batch delete archived personal documents

when I tried to delete personal documents from the archive I realized that it is too boring to delete them one by one. Then with the help of Aei, created a bookmarklet to delete them page by page.

It could be possible to improve it by adding some filter for publisher, date, etc for specific usages.
Also you can use search filter on the page before using this bookmarklet.

To be safe it only works on "Personal Documents" section

just create a bookmark using this code as url; and press whenever you want to delete displayed personal documents. It will delete them (only displayed ones) immediately.

Code:
javascript:(function(){ var v = new RegExp("PersonalDocuments"); if (!v.test(document.URL)) { return false; } {a=document.getElementsByClassName('rowBodyCollapsed');for(var i = 0; i<a.length; i++){Fion.deleteItem('deleteItem_'+a[i].getAttribute('asin'));};return; }})();
This trick is useful also to get rid of huge list( of newpapers and such) on Pending Deliveries since if you delete a pending delivery on your Personal Documents list it will be deleted from the Pending Deliveries list also .

You can use the filter on Personal Documents to choose a title, author,date before using this bookmarklet.



--------------------------

>>> How to create a bookmarklet:
How to Install Bookmarklets on iPhone and iPad:
Spoiler:

How create Bookmarklet on Chrome and Firefox:
Spoiler:
  • Copy the code above
  • right click on your bookmark bar
  • use the "add page" option
  • paste the code as url
  • give it a name
  • click to "OK" ( or "Save" , etc)
  • done
  • click on this bookmark whenever you need
--------------------------

>>> How to use it :
Click image for larger version

Name:	Bookmarklet.png
Views:	1436
Size:	114.7 KB
ID:	86996
Click to the bookmark after applying the step 1 and (optional) step 2 as seen on this image.

--------------------------

>>> Using on Safari:
Quote:
Originally Posted by johnnyb View Post
Hey, it does actually work in Safari with JavaScript debugging on...
Via Developer toolbar...
--------------------------

>>> You can use this script for other parts of your archived documents as such:

Quote:
Originally Posted by montalex View Post
Thanks much for this! I just replaced "Personal Documents" in the script with "Newspapers" (as below) and removed all of my archived newspapers.

Code:
javascript:(function(){ var v = new RegExp("Newspapers"); if (!v.test(document.URL)) { return false; } {a=document.getElementsByClassName('rowBodyCollapsed');for(var i = 0; i<a.length; i++){Fion.deleteItem('deleteItem_'+a[i].getAttribute('asin'));};return; }})();
--------------------------

>>> Some related stuff

This and this page may help if you interested in tweaking the bookmarklet

Last edited by thomass; 06-21-2013 at 03:40 AM.
thomass is offline   Reply With Quote
Old 12-30-2011, 10:30 AM   #2
foldh7
Member
foldh7 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Oct 2010
Device: kindle 3
Great: You saved me hours of dumb clicking on this stupid UI ;-)
foldh7 is offline   Reply With Quote
Old 02-08-2012, 08:17 AM   #3
thomass
Wizard
thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.
 
Posts: 1,642
Karma: 1928001
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
This trick is useful also to get rid of huge list( of newpapers and such) on Pending Deliveries since if you delete a pending delivery on your Personal Documents list it is also deleted from the Pending Deliveries list.

You can use the filter on Personal Documents to choose a title, sender,...etc before using this bookmarklet.
thomass is offline   Reply With Quote
Old 02-08-2012, 08:23 AM   #4
markdek
Addict
markdek ought to be getting tired of karma fortunes by now.markdek ought to be getting tired of karma fortunes by now.markdek ought to be getting tired of karma fortunes by now.markdek ought to be getting tired of karma fortunes by now.markdek ought to be getting tired of karma fortunes by now.markdek ought to be getting tired of karma fortunes by now.markdek ought to be getting tired of karma fortunes by now.markdek ought to be getting tired of karma fortunes by now.markdek ought to be getting tired of karma fortunes by now.markdek ought to be getting tired of karma fortunes by now.markdek ought to be getting tired of karma fortunes by now.
 
Posts: 206
Karma: 1015348
Join Date: Apr 2011
Device: Kindle 3
I wrote Amazon about this problem/inconvenience; quite silly to only to be able to delete 1 personal document at a time, and have to wait for a screen refresh between each one. There should be some way to select multiple personal documents for a batch delete.
markdek is offline   Reply With Quote
Old 02-08-2012, 08:27 AM   #5
thomass
Wizard
thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.
 
Posts: 1,642
Karma: 1928001
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
with this bookmarklet you can batch delete documents up to 15 at a time

But I agree that this option should be included in the site itself.
thomass is offline   Reply With Quote
Old 02-08-2012, 01:05 PM   #6
markdek
Addict
markdek ought to be getting tired of karma fortunes by now.markdek ought to be getting tired of karma fortunes by now.markdek ought to be getting tired of karma fortunes by now.markdek ought to be getting tired of karma fortunes by now.markdek ought to be getting tired of karma fortunes by now.markdek ought to be getting tired of karma fortunes by now.markdek ought to be getting tired of karma fortunes by now.markdek ought to be getting tired of karma fortunes by now.markdek ought to be getting tired of karma fortunes by now.markdek ought to be getting tired of karma fortunes by now.markdek ought to be getting tired of karma fortunes by now.
 
Posts: 206
Karma: 1015348
Join Date: Apr 2011
Device: Kindle 3
Thanks, just tried it, works great, especially when you "sort" your pers. docs first.
markdek is offline   Reply With Quote
Old 02-09-2012, 05:33 AM   #7
sparkyj23
Junior Member
sparkyj23 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2012
Device: Kindle 4
Thank you for this.
sparkyj23 is offline   Reply With Quote
Old 02-09-2012, 06:53 AM   #8
AlexGrama
Writer
AlexGrama ought to be getting tired of karma fortunes by now.AlexGrama ought to be getting tired of karma fortunes by now.AlexGrama ought to be getting tired of karma fortunes by now.AlexGrama ought to be getting tired of karma fortunes by now.AlexGrama ought to be getting tired of karma fortunes by now.AlexGrama ought to be getting tired of karma fortunes by now.AlexGrama ought to be getting tired of karma fortunes by now.AlexGrama ought to be getting tired of karma fortunes by now.AlexGrama ought to be getting tired of karma fortunes by now.AlexGrama ought to be getting tired of karma fortunes by now.AlexGrama ought to be getting tired of karma fortunes by now.
 
AlexGrama's Avatar
 
Posts: 275
Karma: 345042
Join Date: Jan 2012
Location: UK
Device: Kindle Paperwhite, Nexus 7
This is fabulous. Thank you.
AlexGrama is offline   Reply With Quote
Old 02-11-2012, 11:50 AM   #9
kociubin
Junior Member
kociubin began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2011
Device: kindle 3g
Thanks! Huge timesaver.
kociubin is offline   Reply With Quote
Old 03-21-2012, 10:31 AM   #10
thomass
Wizard
thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.
 
Posts: 1,642
Karma: 1928001
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
To delete all of your archived Personal Documents you can use this bookmarklet (thanks to Aei)

Code:
javascript:(function(){jQuery.each(itemCache.theData,function(key,value){if(value.filters&&value.filters['Personal Documents']){Fion.gufsAjaxObj.makeRequest("contentName="+value.asin+"&loanId="+(value.loanId?value.loanId:'')+"&sid="+mykJS.sessionId+"&isAjax=1"+"&category="+value.category,function(){});}});alert('Done! If there are still something in "Personal Documents" left YOU MAY TRY ONE MORE TIME!');location.reload();})();
thomass is offline   Reply With Quote
Old 03-21-2012, 11:49 AM   #11
johnnyb
Addict
johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.
 
Posts: 349
Karma: 1130000
Join Date: Aug 2010
Device: Kindle, iPad, iPhone
Bookmarklet doesn't seem to work anymore...
It used to work in Firefox on Mac but now only returns "false"...
It hasn't even launched in Safari (Mac), don't know if it ever did...
I'm referring to the "delete 15 entries" one, the other I don't wanna try...
johnnyb is offline   Reply With Quote
Old 03-21-2012, 11:56 AM   #12
thomass
Wizard
thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.
 
Posts: 1,642
Karma: 1928001
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
Quote:
Originally Posted by johnnyb View Post
Bookmarklet doesn't seem to work anymore...
It used to work in Firefox on Mac but now only returns "false"...
It hasn't even launched in Safari (Mac), don't know if it ever did...
I'm referring to the "delete 15 entries" one, the other I don't wanna try...
thanks for the feedback

just tried and it worked without any problem. (with Chrome)

please be sure that you are in personal documents section

Last edited by thomass; 03-21-2012 at 12:04 PM.
thomass is offline   Reply With Quote
Old 03-21-2012, 12:09 PM   #13
johnnyb
Addict
johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.
 
Posts: 349
Karma: 1130000
Join Date: Aug 2010
Device: Kindle, iPad, iPhone
I think the problem here is more that it doesn't even run in Safari...
But thanks, it was great as long as it lasted... ;-)
johnnyb is offline   Reply With Quote
Old 03-21-2012, 12:28 PM   #14
thomass
Wizard
thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.
 
Posts: 1,642
Karma: 1928001
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
Quote:
Originally Posted by johnnyb View Post
I think the problem here is more that it doesn't even run in Safari...
But thanks, it was great as long as it lasted... ;-)
I don't have a Mac to check and correct this for it. However this bookmarklet works under Windows w/o any problem.

Hope s/o fix it for Mac

Does anybody else have the same problem on Mac?

Last edited by thomass; 03-21-2012 at 01:38 PM.
thomass is offline   Reply With Quote
Old 03-21-2012, 02:01 PM   #15
thomass
Wizard
thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.
 
Posts: 1,642
Karma: 1928001
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
Quote:
Originally Posted by johnnyb View Post
It used to work in Firefox on Mac but now only returns "false"
this bookmarklet is setted to check whether URL has a "PersonalDocuments" and to return false if it is otherwise

Hence if it returns false there is a strange problem

url is like this :
Code:
https://www.amazon.com/gp/digital/fiona/manage?ie=UTF8&ref_=kinw_myk_surl_1&#PersonalDocuments
if you are sure that it doesn't run when you are in Personal Documents section you can try after replacing "Personal Documents" with "amazon" (or any part of the URL) to make it work anywhere in this domain.

Last edited by thomass; 03-21-2012 at 03:52 PM.
thomass is offline   Reply With Quote
Reply

Tags
k5 tools, kindle tools

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[request] Script for easily deleting archived Personal Documents mtsp Kindle Developer's Corner 1 03-29-2012 10:01 AM
Personal Documents beckywc Kindle Fire 1 12-07-2011 10:56 PM
Can't delete Archived Item on Kindle3 anth82 Amazon Kindle 24 02-24-2011 09:28 AM
Personal Documents Waiting for Wifi Delivery - auto delete? 27spots Kindle Developer's Corner 2 01-16-2011 07:08 AM
Archive Personal Documents? carchase Amazon Kindle 5 04-21-2010 01:53 PM


All times are GMT -4. The time now is 03:35 AM.


MobileRead.com is a privately owned, operated and funded community.