How to use the div.conversation function in div

To help you get started, we’ve selected a few div examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sagargp / trollicons / extension / trollicons / trollicons.js View on Github external
(function()
{
	jQuery.noConflict();
	var changing = false;
	var nodes = {};

	/* depending on where we are (fb or gmail) define a "replacement node" that we can just use later */
	if (/facebook/.test(window.location.href))
  {
		nodes['div.conversation'] = '.fbChatConvItem .messages span'; // chat messages in the inbox
		nodes['li.webMessengerMessageGroup'] = 'span'; // the docked chat window messages

		var imgNode = (function(key, img)
      {
		  	return "<span style="\&quot;display:none\&quot;">" + key + "</span><img alt="\&quot;:)\&quot;" style="\&quot;background-position:" src="\&quot;&quot;">";
		  });
	}
	else
  {
		console.debug('not facebook');
	}

  /****
   * now do the actual replacement of said node (defined above) 
   ****/

div

&lt;Div row&gt; Use flexbox with ease in React! &lt;/Div&gt;

MIT
Latest version published 3 years ago

Package Health Score

45 / 100
Full package analysis