Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @include *love2d.org/forums/viewtopic.php*
// ==/UserScript==
(function(){
function getElementsByTagAndClass(tag, cls) {
var tags = document.getElementsByTagName(tag);
var ret = [];
for (var i = 0; i < tags.length; ++i) {
if (tags[i].className.indexOf(cls) > -1)
ret.push(tags[i]);
love=${HOME}/.bin/love # location of love binary
zip=/usr/bin/zip # location of zip
luac=/usr/bin/luac # location of luac
# name of the .love
game=
# source files. if you have subdirectories, add */*.lua
sources=*.lua
# resource files like images, fonts and sounds.
res=
function listTable(tbl, prefix)
local prefix = prefix or ""
for i,t in pairs(tbl) do
if type(t) == "table" then listTable(t, prefix.."."..i)
elseif type(t) == "function" then print(prefix.."."..i) end
end
end
function love.load()
listTable(love, "love")