diff options
| author | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2013-07-25 14:54:46 +0400 |
|---|---|---|
| committer | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2013-07-25 14:54:46 +0400 |
| commit | 1c8bcb580e046218ee9d07ec7d9f707fbd7b3219 (patch) | |
| tree | 38d6ce01c0942601da3ce4ef2741ec5657f01729 /plugins/no_title_counters/init.php | |
| parent | 1966e05457ebb537f2bfd11d779cada2489bcf35 (diff) | |
add simple plugin to prevent tt-rss tab flashing on new articles
Diffstat (limited to 'plugins/no_title_counters/init.php')
| -rw-r--r-- | plugins/no_title_counters/init.php | 25 |
1 files changed, 25 insertions, 0 deletions
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; + } + +} +?> |