flash.moe/public/userscripts/index.php

60 lines
1.4 KiB
PHP
Raw Normal View History

2020-08-20 00:02:37 +00:00
<?php
$userscripts = [
[
'file' => 'remove-trending-tab.user.js',
'name' => 'Remove the Youtube Trending Tab',
],
[
'file' => 'skip-youtube-home.user.js',
'name' => 'Skip the Youtube homepage and go straight to subscriptions',
],
2020-10-30 20:27:26 +00:00
[
'file' => 'mpvfriend.user.js',
'name' => 'Open youtube links in mpv',
],
2020-08-20 00:02:37 +00:00
];
$userstyles = [
[
'file' => 'sock-emote-overflow-fix.user.css',
'name' => 'Fix emoticon overflow in sock chat client',
],
[
'file' => 'nabucco-cleanup.user.css',
'name' => 'Cleaner nabucco',
],
];
?>
<h1>Scripts</h1>
You'll need something like <a href="https://addons.mozilla.org/en-GB/firefox/addon/greasemonkey/" class="link">GreaseMonkey</a> for this.<br>
<?php
echo '<ul style="margin-left: 1em;">';
foreach($userscripts as $us) {
echo <<<HTML
<li><a href="{$us['file']}" class="link">
{$us['name']}
</a></li>
HTML;
}
echo '</ul>';
?>
<h1>Styles</h1>
You'll need something like <a href="https://addons.mozilla.org/en-GB/firefox/addon/styl-us/" class="link">Stylus</a> for this.<br>
<?php
echo '<ul style="margin-left: 1em;">';
foreach($userstyles as $us) {
echo <<<HTML
<li><a href="{$us['file']}" class="link">
{$us['name']}
</a></li>
HTML;
}
echo '</ul>';
?>
<div style="font-size: .6em;">i can't be bothered to style this page</div>