BMB Toolbar Insert

Inserts big mod buttons on toolbar pages

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
// ==UserScript==
// @author noeatnosleep
// @name BMB Toolbar Insert
// @version 1.0.4
// @namespace BMBTI
// @description Inserts big mod buttons on toolbar pages
// @include *reddit.com/tb/*
// ==/UserScript==

document.body.onload(generateButtons);

function generateButtons() {
    var modButtons = document.createElement("span"),
        approveButton = document.createElement('a'),
		commentsButton = document.getElementByName("comments comments-button");
	approveButton.setAttribute('href', '#');
    approveButton.setAttribute('style', 'color:black;');
    approveButton.setAttribute('id', 'approvePost');
    approveButton.textContent = " APPROVE ";
	modButtons.appendChild(approveButton);
	document.body.insertBefore(modButtons, commentsButton); 
}

function doStuff() {
    approvePost.on('click', goApprove());
}

function goApprove() {}