mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 15:45:56 +00:00
add no_url_hashes plugin
This commit is contained in:
25
plugins/no_url_hashes/init.php
Normal file
25
plugins/no_url_hashes/init.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
class No_URL_Hashes extends Plugin {
|
||||
private $host;
|
||||
|
||||
function about() {
|
||||
return array(1.0,
|
||||
"Disable URL hash usage (e.g. #f=10, etc)",
|
||||
"fox");
|
||||
}
|
||||
|
||||
function init($host) {
|
||||
$this->host = $host;
|
||||
|
||||
}
|
||||
|
||||
function get_js() {
|
||||
return file_get_contents(__DIR__ . "/init.js");
|
||||
}
|
||||
|
||||
function api_version() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user