BMB Toolbar Insert

Inserts big mod buttons on toolbar pages

  1. // ==UserScript==
  2. // @author noeatnosleep
  3. // @name BMB Toolbar Insert
  4. // @version 1.0.4
  5. // @namespace BMBTI
  6. // @description Inserts big mod buttons on toolbar pages
  7. // @include *reddit.com/tb/*
  8. // ==/UserScript==
  9.  
  10. document.body.onload(generateButtons);
  11.  
  12. function generateButtons() {
  13. var modButtons = document.createElement("span"),
  14. approveButton = document.createElement('a'),
  15. commentsButton = document.getElementByName("comments comments-button");
  16. approveButton.setAttribute('href', '#');
  17. approveButton.setAttribute('style', 'color:black;');
  18. approveButton.setAttribute('id', 'approvePost');
  19. approveButton.textContent = " APPROVE ";
  20. modButtons.appendChild(approveButton);
  21. document.body.insertBefore(modButtons, commentsButton);
  22. }
  23.  
  24. function doStuff() {
  25. approvePost.on('click', goApprove());
  26. }
  27.  
  28. function goApprove() {}
  29.