UselessScript#1

Change some words to fruits because why not

  1. // ==UserScript==
  2. // @name UselessScript#1
  3. // @namespace www.google.com
  4. // @description Change some words to fruits because why not
  5. // @include http://rateyourmusic.com/boards*
  6. // @include http://rateyourmusic.com/board_message*
  7. // @include https://rateyourmusic.com/boards*
  8. // @include https://rateyourmusic.com/board_message*
  9. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js
  10. // @version 1
  11. // @grant none
  12. // ==/UserScript==
  13. // WARNING: EXTREMELY BUGGY! UTMOST CAUTION REQUIRED!
  14. $('.mbgen td').each(function() {
  15. var cellText = $(this).html();
  16. var mapObj = {
  17. //If you want to add words, just put it inside here in this format <word you want replaced>:"<word replacement>"
  18. //ex: objective:"mango"
  19. //Oh yeah, don't forget to add a comma unless it's the last line(hope you got that)
  20. objective:"mango",
  21. subjective:"pineapple"
  22. };
  23. cellText = cellText.replace(/objective|subjective/gi, function(matched){
  24. return mapObj[matched];
  25. });
  26. $(this).html(cellText);
  27. });