{"id":39154180,"url":"https://github.com/un-pogaz/comments-cleaner","last_synced_at":"2026-04-17T18:01:05.088Z","repository":{"id":43703955,"uuid":"302432516","full_name":"un-pogaz/Comments-Cleaner","owner":"un-pogaz","description":"Calibre plugin for remove the scraps CSS in HTML comments","archived":false,"fork":false,"pushed_at":"2026-01-31T13:01:56.000Z","size":786,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-01T00:46:39.131Z","etag":null,"topics":["calibre","calibre-plugin","metadata","plugin"],"latest_commit_sha":null,"homepage":"https://www.mobileread.com/forums/showthread.php?t=333861","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/un-pogaz.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-10-08T18:44:57.000Z","updated_at":"2026-01-31T13:01:06.000Z","dependencies_parsed_at":"2026-01-31T15:00:40.945Z","dependency_job_id":null,"html_url":"https://github.com/un-pogaz/Comments-Cleaner","commit_stats":null,"previous_names":[],"tags_count":45,"template":false,"template_full_name":null,"purl":"pkg:github/un-pogaz/Comments-Cleaner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/un-pogaz%2FComments-Cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/un-pogaz%2FComments-Cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/un-pogaz%2FComments-Cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/un-pogaz%2FComments-Cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/un-pogaz","download_url":"https://codeload.github.com/un-pogaz/Comments-Cleaner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/un-pogaz%2FComments-Cleaner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31939788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calibre","calibre-plugin","metadata","plugin"],"created_at":"2026-01-17T21:45:00.712Z","updated_at":"2026-04-17T18:01:05.058Z","avatar_url":"https://github.com/un-pogaz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Comments Cleaner\n[![MobileRead][mobileread-image]][mobileread-url]\n[![History][changelog-image]][changelog-url]\n[![License][license-image]][license-url]\n[![calibre Version][calibre-image]][calibre-url]\n[![Status][status-image]][status-image]\n\n\n*Comments Cleaner* is a small plugin that clean comments from superfluous and unwanted CSS rules (background-color, text color, font-family, among other things), but keeps the basic elements (italic, bold).\nThe plugin will also try to convert plain-text comments.\n\nThe plugin has the following options:\n\n* Keep or remove Hyperlinks\n* Weights management\n    * Round the value to the hundred (only below Calibre 6)\n    * Round to Bold\n* Remove Strikethrough, Underline and Italic\n* Remove the bold if all paragraphes are it\n* Remove the italic if all paragraphes are it\n* Headings management\n    * Converte to a paragraph\n    * Converte to a paragraph but keep the bold\n* Text alignment\n* Automatic justification\n    * Force justification\n    * Remove alignment\n* Specific alignment for lists\n* Keep or Delete the ID and CLASS attributs\n* Remove all formatting (NO MERCY!!)\n* Try a conversion from Mardown format (the key word is TRY)\n* Remove Multiple Line Return \u003cbr\u003e and create a new paragraph instead\n* Convert 'Line Return' into Paragraph or Space\n* Management of empty paragraphs\n* Removing images\n* Ability to specify others CSS rules to keep in addition to the basic CSS rule\n* Possibility to apply the cleaning to others custom HTML columns\n* Support of Category Notes\n\n\nBasic CSS rules keep by default:\n```\ntext-align\nfont-weight\nfont-style\ntext-decoration\n```\n\n\n**Installation**\n\nOpen *Preferences -\u003e Plugins -\u003e Get new plugins* and install the \"Comments Cleaner\" plugin.\nYou may also download the attached zip file and install the plugin manually, then restart calibre as described in the [Introduction to plugins thread](https://www.mobileread.com/forums/showthread.php?t=118680\")\n\nThe plugin works for Calibre 5 and later.\n\nPage: [GitHub](https://github.com/un-pogaz/Comments-Cleaner) | [MobileRead](https://www.mobileread.com/forums/showthread.php?t=333861)\n\n\u003cins\u003eNote for those who wish to provide a translation:\u003c/ins\u003e\u003cbr\u003e\nI am *French*! Although for obvious reasons, the default language of the plugin is English, keep in mind that already a translation.\n\n\n\u003cbr\u003e\u003cbr\u003e\n\n![configuration panel](https://raw.githubusercontent.com/un-pogaz/Comments-Cleaner/main/static/Comments_Cleaner.png)\n![button menu](https://raw.githubusercontent.com/un-pogaz/Comments-Cleaner/main/static/Comments_Cleaner-menu.png)\n![example of cleaned comment](https://raw.githubusercontent.com/un-pogaz/Comments-Cleaner/main/static/Comments_Cleaner-exemple.gif)\n![selection of notes to clean](https://raw.githubusercontent.com/un-pogaz/Comments-Cleaner/main/static/Comments_Cleaner-notes.png)\n\n\n[mobileread-url]: https://www.mobileread.com/forums/showthread.php?t=333861\n\n[changelog-image]: https://img.shields.io/badge/History-CHANGELOG-blue.svg\n[changelog-url]: changelog.md\n\n[license-image]: https://img.shields.io/badge/License-GPL-yellow.svg\n[license-url]: LICENSE\n\n[calibre-image]: https://img.shields.io/badge/calibre-5.00.0_and_above-green?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAllJREFUOMt1kz1MU1EUx3/3fZSP0lJLgVqRNqCDHxApAWcXF9O4oomDcXU06iIuLgxuTi4mrm7GRI2LiYOJ4ldAiBqxqSA2lEc/oNC+d991eI8HRnuGm3tzzv2d/znnXpEb5CHQDoCi8LigruHbrXOTs6Wl6qnkcPTd7SdvTvMfM/I1LgnhHYSgePHm9APheMAbV8e+mZoaR7BCCzMyEehNJXCky0bR2tJcdx7Nc+at0POjiQYokWkJABgcTlGv72AVLXRdQ9d0XKUob4uyF6aGWgE0gO36Jq7dBEBKl6Zt4zgO5bpe8uO6P768HGupACVRrvzHWdwMWbAFwHx96uy9u+UTc68WcmcuTCqljNzMFL80gCNDMfr6O0Eh9gOWq2YZsAFWGyNXYv3h6cLnyph0mllhMBGU8HVxleKKBQIFcKiv1y8HF1gG6NGXqqF2E8cGx3bQYSwA/Mxb1CrbQWYlwDT86iAPMGDMSYDIAcHGagUF4wEgnQ4Tj5t7AFehacLvssgDpPSFMGDH+kKUlssA2aCJ9a0GXV1GADBNA0e6u7g8gC4aaWBxMjc62tbeBpC6/oikBlCtNNmsNQKAbUtPvLf+8DcZJXgfTyYIxyLeCDWyGoAmFNWaDEYgpYNhmP49TwEQ6aT25a85Kx/QHVYkoq6fE1ylgnfhCrkLYDD0YW3/fQFZ7XsVXizAs3ko1Ij0J3pIpw5yOJkk3NHRefJ1egVoABw3nu4Ack8AWWM4yk7wnWHtd2k9Wiytt/kpLGbuuPcnRl27KRsDI/Fj6jxvhcBU8EkoZv8AURDxq1Vav0YAAAAASUVORK5CYII=\n[calibre-url]: https://www.calibre-ebook.com/\n\n[status-image]: https://img.shields.io/badge/Status-Stable-green\n\n[mobileread-image]: https://img.shields.io/badge/MobileRead-Plugin%20Thread-blue?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAACJUlEQVQ4EZ3SX0hTYRjH8e+79DQcm5pGba0pQizrJhiMvJDwj3dR2SIoqK68CYouy24sb/TKbsuyC4kwG3gVBpUlqP1hBaUxiMp5aLZyzdn847E6+YQHDkNv+ty88PI8Px6e91XvJ5Nm9MU44t10GjuXplFV5qZIK6SyrARRHdgWAPbvqfT1A6jo8Buz73WcfAf3VnGqMczC4jKJbz9YWDJWzwxiIvkdMf41TQHrKE5P8XxgBP3lI0RraysiFKxAlA4NIRYNz/oBK3qcG7d7EEOrxbFYjFAohOjt7UX4/X5mYk9xlBe7yJf5mZMmcrkcg4ODuN1uLNlslubmZurq6tAcJv+W2DbwjHwNHgNjfo5IJILX68Uioe3t7RjGCq7tAQrYQG19E9UVXoRMMzY2Rk1NDcFgkM7OTq4/GEE42IBrs4adrut0dHSQTCYRiXSWrW4X6oOe0i9Hn/jJU79rpxQgJmcyzBu/sJMnbDtyAAVw/Npdk/9w78IJpVgjHyo385lEIo5Ir3hY/q3wObPYoblR5UEqyko43RhWCpupqwHzz2IO8Uqr5dKdCS6ePUkkME02FsXia+lHq2pQ9iVifHpsNQsOnzlPOBymu+8hpce6FTZLH4exFLBGOUuxM768pauri1QqRaBozpy9dQiLw1mCRWGTud9i2kfVfLvZ5CxmeXoCmc66850bVesGiIVYjzk7ehMjGceucMsO3PuO4mm6orD5CzQt1i+ddfLfAAAAAElFTkSuQmCC\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fun-pogaz%2Fcomments-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fun-pogaz%2Fcomments-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fun-pogaz%2Fcomments-cleaner/lists"}