diff options
author | Andrew Dolgov <[email protected]> | 2013-07-25 14:54:46 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-07-25 14:54:46 +0400 |
commit | 1c8bcb580e046218ee9d07ec7d9f707fbd7b3219 (patch) | |
tree | 38d6ce01c0942601da3ce4ef2741ec5657f01729 | |
parent | 1966e05457ebb537f2bfd11d779cada2489bcf35 (diff) |
add simple plugin to prevent tt-rss tab flashing on new articles
-rw-r--r-- | plugins/no_title_counters/init.js | 5 | ||||
-rw-r--r-- | plugins/no_title_counters/init.php | 25 |
2 files changed, 30 insertions, 0 deletions
diff --git a/plugins/no_title_counters/init.js b/plugins/no_title_counters/init.js new file mode 100644 index 000000000..9c16856a2 --- /dev/null +++ b/plugins/no_title_counters/init.js @@ -0,0 +1,5 @@ +dojo.addOnLoad(function() { + updateTitle = function() { + document.title = "Tiny Tiny RSS"; + }; +}); diff --git a/plugins/no_title_counters/init.php b/plugins/no_title_counters/init.php new file mode 100644 index 000000000..a9f22831d --- /dev/null +++ b/plugins/no_title_counters/init.php @@ -0,0 +1,25 @@ +<?php +class No_Title_Counters extends Plugin { + private $host; + + function about() { + return array(1.0, + "Remove counters from window title (prevents tab flashing on new articles)", + "fox"); + } + + function init($host) { + $this->host = $host; + + } + + function get_js() { + return file_get_contents(__DIR__ . "/init.js"); + } + + function api_version() { + return 2; + } + +} +?> |