Add another ugly hack to help Kindle. fix #165
You have to add the text-decoration none in each link to make the underline disappear .... crazy
This commit is contained in:
parent
3aebffc217
commit
8a9902e9b2
5 changed files with 21 additions and 17 deletions
|
@ -154,6 +154,7 @@ class JSONRenderer
|
|||
"config" => array (
|
||||
"use_fancyapps" => $config ["cops_use_fancyapps"],
|
||||
"max_item_per_page" => $config['cops_max_item_per_page'],
|
||||
"kindleHack" => "",
|
||||
"server_side_rendering" => useServerSideRendering (),
|
||||
"html_tag_filter" => $config['cops_html_tag_filter']));
|
||||
if ($config['cops_thumbnail_handling'] == "1") {
|
||||
|
@ -161,6 +162,9 @@ class JSONRenderer
|
|||
} else if (!empty ($config['cops_thumbnail_handling'])) {
|
||||
$out ["c"]["url"]["thumbnailUrl"] = $config['cops_thumbnail_handling'];
|
||||
}
|
||||
if (preg_match("/./", $_SERVER['HTTP_USER_AGENT'])) {
|
||||
$out ["c"]["config"]["kindleHack"] = 'style="text-decoration: none !important;"';
|
||||
}
|
||||
return $out;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue