Skip to content

Instantly share code, notes, and snippets.

https://github.com/ivanarandac/Books/tree/master
@yannickloth
yannickloth / download_all_ebooks.amazon.JS
Last active February 23, 2025 14:06 — forked from spf13/script.js
Download all your Kindle books before Feb 26, 2025
// 1. Log in to your Amazon account
// 2. Go to your Content Library > Books - https://www.amazon.com/hz/mycd/digital-console/contentlist/booksAll/dateDsc/
// 3. Open your browser's Javascript console
// 4. For each page of books, paste this script into the console
(async function () {
// Close the notification if it appears
function closeNotification() {
const notifClose = document.querySelector("span#notification-close");
if (notifClose) {
@yannickloth
yannickloth / jsonToStringTemplateWithSuperToString.velocity
Created January 26, 2022 13:20
IntelliJ JSON toString() template with super.toString()
public java.lang.String toString() {
#if ( $members.size() > 0 )
#set ( $i = 0 )
#if ( $class.hasSuper )
#set ( $i = $i + 1 )
return "{\"$classname\":"
+ super.toString()
#else
return "{\"$classname\":{"
#end
@yannickloth
yannickloth / jsonToStringTemplate.velocity
Created January 26, 2022 13:20
IntelliJ JSON toString() template
public java.lang.String toString() {
#if ( $members.size() > 0 )
#set ( $i = 0 )
return "{\"$classname\":{"
#foreach( $member in $members )
#if ( $i == 0 )
+ "##
#else
+ ", ##
#end