summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-04 15:03:25 +0300
committerAndrew Dolgov <[email protected]>2021-03-04 15:03:25 +0300
commitd3dfdae988568d813bc507a655061499237530df (patch)
tree202106824a25648299d3cf427d737e15dcf68753
initial
-rw-r--r--init.js9
-rw-r--r--init.php24
2 files changed, 33 insertions, 0 deletions
diff --git a/init.js b/init.js
new file mode 100644
index 0000000..6c0cb38
--- /dev/null
+++ b/init.js
@@ -0,0 +1,9 @@
+require(['dojo/_base/kernel', 'dojo/ready'], function (dojo, ready) {
+ ready(function () {
+ PluginHost.register(PluginHost.HOOK_INIT_COMPLETE, () => {
+ App.updateTitle = function () {
+ document.title = "Tiny Tiny RSS";
+ };
+ });
+ });
+});
diff --git a/init.php b/init.php
new file mode 100644
index 0000000..ff8dbe9
--- /dev/null
+++ b/init.php
@@ -0,0 +1,24 @@
+<?php
+class No_Title_Counters extends Plugin {
+ private $host;
+
+ function about() {
+ return array(null,
+ "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;
+ }
+
+} \ No newline at end of file