You are reading a single comment by @mikec and its replies. Click here to read the full conversation.
  • I think a script should be enacted that changes every slightly offensive word to "jeez" on the first day of every month.

    I'll get on this tonight

    Knocked this up this morning.

    Copy and paste this into a new Tamper Monkey script.
    Should be self explanatory. It will replace sensitive words with 'jeez' on x day of month or everyday if replace is true.

    Hope it helps

    [code]
    // ==UserScript==
    // @author mikec
    // @name replace with jeez
    // @namespace lfgss.com
    // @description A Jeez friendly view of LFGSS
    // @include http://www.lfgss.com/*
    // @version 1
    // @require http://code.jquery.com/jquery-2.1.1.min.js
    // ==/UserScript==

    /**

    • Extend list below depending on your sensitivities
      */
      var problemWords = new Array( "Belm", "Cunt", "Idiot");
      var replace = true; //switch to false to only activate on x day of month
      var day = new Date().getDate();
      var x = 1; //day of month to activate the jeezer

    if( replace == true || day === x ) {

    $( ".postbody" ).each(function( index, belm ) {     
        var probWordsExpr = problemWords.join('|');        
        $(belm).html(function () {
          var pattern = new RegExp('\\b(' + probWordsExpr + ')\\b', 'gi');
          return $(this).html().replace(pattern, "jeez"); 
        }); 
    
    });
    

    }

    [/code]

About

Avatar for mikec @mikec started