Inserts big mod buttons on toolbar pages
当前为
// ==UserScript==
// @author noeatnosleep
// @name BMB Toolbar Insert
// @version 1.0.2
// @namespace BMBTI
// @description Inserts big mod buttons on toolbar pages
// @include *reddit.com/tb/*
// ==/UserScript==
function generateButtons() {
var modButtons = document.createElement("span").querySelectorAll('[id^=thing.id]').appendChild(modButtons);
modButtons.id = "modButtons";
modButtons.style.cssText = "color:black;font-family:verdana, arial, helvetica, sans-serif;font-size:90%;height:12px;text-transform:uppercase;";
modButtons.innerHTML += "<a id='approvePost' style='color:black;' href='#'> APPROVE </a>";
}
function doStuff() {
$('approvePost').on('click', goApprove());
}
function goApprove() {}
generateButtons(), doStuff(), goApprove();