diff options
-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; + } + +} +?> |