Userscript to hide elements containing certain words
<p>I want to make an userscript that can hide specific elements on a website.
- I only want it to hide elements that contain for example M23 M53
- BUT i want to keep all elements with for example K42 K22
How would i code something like this?
All the elements are built in the same class.
" M27"
Code example:</p>

<pre><code>&lt;div class="l1 picshadow" style="display:inline-block;width:240px;padding:10px;height:110px;margin:5px;border-radius:2px;text-align:left;position:relative;left:0px;top:0px;"&gt;&lt;div class="ssmall" style="position:absolute;left:10px;bottom:10px;"&gt;&lt;p style="margin-top:2px;margin-bottom:0px;" class="ssmall"&gt; Göteborg, Västra Götalands län&lt;/p&gt;&lt;p style="margin-top:2px;margin-bottom:0px;" class="ssmall"&gt;Inloggad i 14 dygn 6 tim 34 min&lt;/p&gt;&lt;/div&gt;&lt;table cellpadding="0" cellspacing="0" border="0" width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td valign="top" width="48" align="left"&gt;&lt;a href="profil.php?id=68006&amp;amp;src=inloggade"&gt;&lt;img src= class="picshadow" width="40" height="52" border="0"&gt;&lt;/a&gt;&lt;/td&gt;&lt;td valign="top"&gt;&lt;a href="profil.php?id=68006&amp;amp;src=inloggade"&gt;&lt;b&gt;Koneko&lt;/b&gt;&lt;/a&gt; M27&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
</code></pre>

<p>Would this be very hard to code or ?</p>