Add index file with listing of scripts

This commit is contained in:
Dan Jones 2016-12-02 13:27:56 -06:00
commit b199c482a5
2 changed files with 24 additions and 0 deletions

6
_config.yml Normal file
View file

@ -0,0 +1,6 @@
url: https://projects.danielrayjones.com
baseurl: /userscripts
userscripts:
- file: giveaway.user.js
name: Amazon Giveaway Listing Visited Remover

18
index.html Normal file
View file

@ -0,0 +1,18 @@
---
title: Userscripts
---
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<title>{{ page.title }}</title>
</head>
<body>
<ul>
{% for script in site.userscripts %}
<li><a href="{{ site.baseurl }}/{{ script.file }}">{{ script.name }}</a><br/>
Bookmarklet <a href="javascript:(function(){var e=document.createElement('script');e.src='{{ site.url }}{{ site.baseurl }}/{{ script.file }}';document.body.appendChild(e);})()">{{ script.name }}</a></li>
{% endfor %}
</ul>
</body>
</html>