summaryrefslogtreecommitdiff
path: root/plugins/hotkeys_force_top/init.php
diff options
context:
space:
mode:
authorfox <[email protected]>2020-05-31 08:09:11 +0000
committerGogs <[email protected]>2020-05-31 08:09:11 +0000
commit851de8151753b176acd0450ad64fe899bc23a049 (patch)
treed39e54107727f95d75fe92708806cf1d6dd6b02b /plugins/hotkeys_force_top/init.php
parentb39e615683dae2d9b08939b7fb131cb8607c8415 (diff)
parentf8d96543de36dd2d9a223fd017b6c5f671ff3e6a (diff)
Merge branch 'hotkeys_force_top' of itsamenathan/tt-rss into master
Diffstat (limited to 'plugins/hotkeys_force_top/init.php')
-rw-r--r--plugins/hotkeys_force_top/init.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/plugins/hotkeys_force_top/init.php b/plugins/hotkeys_force_top/init.php
new file mode 100644
index 000000000..faddc9148
--- /dev/null
+++ b/plugins/hotkeys_force_top/init.php
@@ -0,0 +1,24 @@
+<?php
+class Hotkeys_Force_Top extends Plugin {
+ private $host;
+
+ function about() {
+ return array(1.0,
+ "Force open article to the top",
+ "itsamenathan");
+ }
+
+ function init($host) {
+ $this->host = $host;
+
+ }
+
+ function get_js() {
+ return file_get_contents(__DIR__ . "/init.js");
+ }
+
+ function api_version() {
+ return 2;
+ }
+
+}