diff --git a/index.php b/index.php
index a0e576a..ae43cc8 100644
--- a/index.php
+++ b/index.php
@@ -48,11 +48,15 @@
$data = array("title" => $config['cops_title_default'],
"version" => VERSION,
"opds_url" => $config['cops_full_url'] . "feed.php",
+ "customHeader" => "",
"template" => getCurrentTemplate (),
"server_side_rendering" => useServerSideRendering (),
"current_css" => getCurrentCss (),
"favico" => $config['cops_icon'],
"getjson_url" => "getJSON.php?" . addURLParameter (getQueryString (), "complete", 1));
+ if (preg_match("/Kindle/", $_SERVER['HTTP_USER_AGENT'])) {
+ $data ["customHeader"] = '';
+ }
$headcontent = file_get_contents('templates/' . getCurrentTemplate () . '/file.html');
$template = new doT ();
$dot = $template->template ($headcontent, NULL);
diff --git a/templates/default/file.html b/templates/default/file.html
index dfce3f2..6c58368 100644
--- a/templates/default/file.html
+++ b/templates/default/file.html
@@ -32,6 +32,8 @@
+ {{=it.customHeader}}
+
{{? it.server_side_rendering == 0}}