flash.moe/public/userscripts/index.php
2021-07-31 04:39:10 +00:00

59 lines
1.4 KiB
PHP

<?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',
],
[
'file' => 'mpvfriend.user.js',
'name' => 'Open youtube links in mpv',
],
];
$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>