summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-04-13 20:14:34 +0300
committerAndrew Dolgov <[email protected]>2023-04-13 20:14:34 +0300
commitd8876382500419b0f364b44fa4ab63170c958724 (patch)
tree561b3e3f0056d2e1692449630e060660a4cee16b
initial
-rw-r--r--.gitlab-ci.yml10
-rw-r--r--README.md1
-rw-r--r--init.js6
-rw-r--r--init.php20
4 files changed, 37 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..8178ea1
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,10 @@
+stages:
+ - lint
+
+include:
+ - project: 'ci/ci-templates'
+ ref: master
+ file: .ci-lint-common.yml
+
+phpstan:
+ extends: .phpstan-tt-rss-plugin
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..6848e21
--- /dev/null
+++ b/README.md
@@ -0,0 +1 @@
+Git checkout to `plugins.local/cdm_nosnap`
diff --git a/init.js b/init.js
new file mode 100644
index 0000000..0a2d4af
--- /dev/null
+++ b/init.js
@@ -0,0 +1,6 @@
+/* global require Headlines */
+require(['dojo/_base/kernel', 'dojo/ready'], function (dojo, ready) {
+ ready(function () {
+ Headlines.default_move_on_expand = false;
+ });
+});
diff --git a/init.php b/init.php
new file mode 100644
index 0000000..8c82a62
--- /dev/null
+++ b/init.php
@@ -0,0 +1,20 @@
+<?php
+class CDM_No_Move_On_Expand extends Plugin {
+ function about() {
+ return array(null,
+ "Prevents article top from moving when clicking in unexpanded combined mode (whew!)",
+ "fox");
+ }
+
+ function init($host) {
+
+ }
+
+ function get_js() {
+ return file_get_contents(__DIR__ . "/init.js");
+ }
+
+ function api_version() {
+ return 2;
+ }
+}