From 1c8bcb580e046218ee9d07ec7d9f707fbd7b3219 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 25 Jul 2013 14:54:46 +0400 Subject: add simple plugin to prevent tt-rss tab flashing on new articles --- plugins/no_title_counters/init.js | 5 +++++ plugins/no_title_counters/init.php | 25 +++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 plugins/no_title_counters/init.js create mode 100644 plugins/no_title_counters/init.php 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 @@ +host = $host; + + } + + function get_js() { + return file_get_contents(__DIR__ . "/init.js"); + } + + function api_version() { + return 2; + } + +} +?> -- cgit v1.2.3