JSFiddle - React, Tailwind, and code Playground

by zono

HTML

<div id="firstDick">
</div>
<div id="secondDick">
</div>

JavaScript

(function( $ ){
  $.fn.howCanOnlyPayFlamingo = function() {  
    var queryStr = "select * from html where url = " + 
                   "'http://clubs.dir.bg/showthreaded.php?Board=programers&Number=1952498828&page=0&view=collapsed&sb=5&part='" +
                   " and xpath = '//span[@class=\"post\"]'";
        $.get("http://query.yahooapis.com/v1/public/yql?q=" + encodeURIComponent(queryStr) + "&format=json", function(data) {
            var lastWords = data.query.results.span[0].content.toString().match(/(?:[\u0041-\u042F\u0430-\u044F]+[\s,.]+){7}$/);
            this.each(function() {        
               $(this).html(lastWords[0]);
            });
        }.bind(this), "json");
  };
})( jQuery );
      
$(document).ready(function() {
  $("#firstDick,#secondDick").howCanOnlyPayFlamingo();
});