Greasy Fork is available in English.

Simply Step 4

Simplify view of BGG Math Trades Step 4

  1. // ==UserScript==
  2. // @name Simply Step 4
  3. // @namespace http://userscripts.org
  4. // @description Simplify view of BGG Math Trades Step 4
  5. // @include http://bgg.activityclub.org/olwlg/mywants.cgi*
  6. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
  7. // @version 0.4
  8. // @grant none
  9. // ==/UserScript==
  10. //hide lines that are associated with dummy itens
  11.  
  12. $('#wants .ondummy').hide();
  13. $('#wants .isdummy').hide();
  14. //adjust table size
  15. $('#wants tbody') .css('height', 'auto');
  16.  
  17. $('<td/>', {
  18. id: "hideshow",
  19. html: "Toggle Dummy Association"
  20. }).insertAfter($('#tabofficial1'));
  21.  
  22. $('#hideshow').click(function () {
  23. $('.isdummy').toggle();
  24. $('.ondummy').toggle();
  25. });