This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local readerFooter = require("apps/reader/modules/readerfooter") | |
local ProgressWidget = require("ui/widget/progresswidget") | |
local BD = require("ui/bidi") | |
local Blitbuffer = require("ffi/blitbuffer") | |
local Geom = require("ui/geometry") | |
local Math = require("optmath") | |
local Screen = require("device").screen | |
-- Somewhat empirically chosen threshold to switch between the two designs ;o) | |
local INITIAL_MARKER_HEIGHT_THRESHOLD = Screen:scaleBySize(12) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- **MOVED to https://github.com/sebdelsol/KOReader.patches** | |
-- KOReader userpatch to show info in the file manager title bar | |
-- based on https://gist.github.com/hius07/c53bc1ed00e0490cb1a0709c5ed6e735#file-2-fm-title-info-lua | |
-- Menu added in the File browser menu (1st icon) to change all the settings and rearrange the items in the title bar | |
-- Items added: Custom text, Brightness Level, Warmth Level, Up time, Time spent awake, Time in suspend | |
-- Settings added: Auto refresh clock, Custom separator, Number of spaces around separator, Show wifi when disabled, Show frontlight when off, Show path | |
-- Fix screen rotation (path was disappearing) | |
-- Arrange items reorders the items the menu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- **MOVED to https://github.com/sebdelsol/KOReader.patches** | |
-- Add 4 new options @ the end of the "Sleep screen" menu : | |
-- Close widgets before showing the screensaver | |
-- Refresh before showing the screensaver | |
-- Message do not overlap image | |
-- Center image | |
-- By default it doesn't change the sleep screen behavior |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local FileManager = require("apps/filemanager/filemanager") | |
-- Type what you want to replace the 'KOReader' title above your filemanger in the quotes on the next line | |
local title = "ENTER CUSTOM TITLE HERE (ORIGINALLY 'KOReader')" | |
-- Example: local title = "Library" | |
FileManager.title = title |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Kindle Download | |
// @namespace http://tampermonkey.net/ | |
// @version 2025-02-20 | |
// @description Download all your kindle books | |
// @author You | |
// @match https://www.amazon.com/hz/mycd/digital-console/contentlist/booksPurchases/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=amazon.com | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ASIN Fixer for Kindle Colorsoft Cover Issues | |
# | |
# Since the new Kindle Colorsoft only loads book covers from Amazon servers, having the correct Kindle ASIN is crucial for covers to display properly. | |
# Calibre doesn’t always fetch the correct Kindle ASIN, which is the only way for the Kindle to download the cover. | |
# This tool extracts ASINs from Calibre `.opf` files, scrapes Amazon for Kindle variants, and updates the `.opf` files with the correct Kindle ASIN. | |
# Additionally, it reads from the Calibre database, updates book identifiers in the database based on the `.opf` files. | |
# | |
# How It Works: | |
# 1. Extract ASINs: Pulls existing ASINs from `.opf` files in your Calibre library. | |
# 2. Scrape Amazon: Uses Selenium to visit Amazon and scrape the correct Kindle ASIN. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local ReaderPageMap = require("apps/reader/modules/readerpagemap") | |
local postInit_orig = ReaderPageMap._postInit | |
ReaderPageMap._postInit = function(self) | |
self.ui.document:buildSyntheticPageMapIfNoneDocumentProvided(1818) | |
-- Run original code | |
postInit_orig(self) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from os import system | |
import sys | |
import urllib2 | |
import time | |
import datetime | |
#from prowlpy import Prowl | |
def status(): | |
try: |