69 lines
1.8 KiB
PHP
69 lines
1.8 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',
|
|
],
|
|
];
|
|
|
|
$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>
|
|
<script type="text/javascript">
|
|
var _paq = window._paq || [];
|
|
_paq.push(['disableCookies']);
|
|
_paq.push(['trackPageView']);
|
|
_paq.push(['enableLinkTracking']);
|
|
(function() {
|
|
_paq.push(['setTrackerUrl', '//uiharu.railgun.sh/mtm']);
|
|
_paq.push(['setSiteId', 'w4PqjBGmOL5l']);
|
|
var g = document.createElement('script');
|
|
g.type = 'text/javascript'; g.async = true;
|
|
g.defer = true; g.src = '//uiharu.railgun.sh/mtm.js';
|
|
document.head.appendChild(g);
|
|
})();
|
|
</script>
|