title: How can I edit somebody's Facebook name as a google chrome add-on
body: <p>I am attempting to remove the images from Facebook pages and be able to edit each "status update" name. I can remove images, but not change status update names. I have tried for hours to do this and the only way I have been able to is by changing specific words. I would like to go through each <li> and change where it says "CHANGE THIS TEXT" I have attached a snippet of a status update on my facebook page. Could somebody give me some help? I have tried using <code>javascript</code> as well as <code>jquery</code>, but cannot figure it out in either. Please let me know if I need to explain anything further. Thanks!</p>
  
  <p><code>manifest.json</code></p>
  
  <pre><code>{
    "name": "A browser action with no icon that makes the page red",
    "version": "1.0",
    "background": { "scripts": ["background.js"] },
    "permissions": [
      "tabs", "http://*/*"
    ],
    "browser_action": {
      "name": "Make this page red",
      "icons": ["icon.png"]
    },
    "manifest_version": 2
  }
  </code></pre>
  
  <p><code>changecolor.js</code></p>
  
  <pre><code>document.body.style.background='red';
  //document.body.innerHTML = document.body.innerHTML.replace(new RegExp("the", "g"), "*the");
  
  for (var i= document.images.length; i--&gt;0;)
      document.images[i].parentNode.removeChild(document.images[i]);
  
  //element = document.getElementById("pagelet_home_stream");
  //element.parentNode.removeChild(element);
  </code></pre>
  
  <p><code>background.js</code></p>
  
  <pre><code>chrome.browserAction.onClicked.addListener(function(tab) {
    chrome.tabs.executeScript(
        null, {file: "changecolor.js"});
  });
  
  chrome.browserAction.setBadgeBackgroundColor({color:[0, 200, 0, 100]});
  </code></pre>
  
  <p>Facebook HTML</p>
  
  <pre><code>&lt;li class="uiUnifiedStory uiStreamStory genericStreamStory aid_100000145255153 aid_6628568379 uiListItem" data-ft="&amp;#123;&amp;quot;qid&amp;quot;:&amp;quot;5834254800544145408&amp;quot;,&amp;quot;mf_story_key&amp;quot;:&amp;quot;-6715439354839335346&amp;quot;,&amp;quot;has_expanded_ufi&amp;quot;:&amp;quot;1&amp;quot;&amp;#125;" id="stream_story_50f76fd55fe2e1065042322" aria-haspopup="true"&gt;&lt;div class="clearfix storyContent"&gt;&lt;a class="actorPhoto lfloat" href="http://www.facebook.com/person" tabindex="-1" aria-hidden="true" data-ft="&amp;#123;&amp;quot;type&amp;quot;:60,&amp;quot;tn&amp;quot;:&amp;quot;\\u003C&amp;quot;&amp;#125;" data-hovercard="/ajax/hovercard/hovercard.php?id=100000145255153"&gt;&lt;img class="_s0 profilePic _rw img" src="http://profile.ak.fbcdn.net/hprofile-ak-ash4/371888_100000145255153_2142279014_q.jpg" alt="" /&gt;&lt;/a&gt;&lt;div class="storyInnerContent"&gt;&lt;div class="mainWrapper"&gt;&lt;div role="article"&gt;&lt;h5 class="uiStreamMessage uiStreamHeadline" data-ft="&amp;#123;&amp;quot;tn&amp;quot;:&amp;quot;:&amp;quot;&amp;#125;"&gt;&lt;div class="actorDescription actorName" data-ft="&amp;#123;&amp;quot;type&amp;quot;:2,&amp;quot;tn&amp;quot;:&amp;quot;:&amp;quot;&amp;#125;"&gt;&lt;a href="http://www.facebook.com/person" data-ft="&amp;#123;&amp;quot;tn&amp;quot;:&amp;quot;;&amp;quot;&amp;#125;" data-hovercard="/ajax/hovercard/user.php?id=100000145255153"&gt;CHANGE THIS TEXT&lt;/a&gt;&lt;/div&gt;&lt;/h5&gt;&lt;h5 class="uiStreamMessage userContentWrapper" data-ft="&amp;#123;&amp;quot;type&amp;quot;:1,&amp;quot;tn&amp;quot;:&amp;quot;K&amp;quot;&amp;#125;"&gt; &lt;span class="messageBody" data-ft="&amp;#123;&amp;quot;type&amp;quot;:3&amp;#125;"&gt;&lt;div&gt;&lt;span class="userContent"&gt;Thanks everyone. In all honesty I actually forgot it was my birthday. I can&amp;#039;t decide if it&amp;#039;s a sign of getting old, working too much, or just being sick.&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/h5&gt;&lt;form rel="async" class="live_582871368394366_316526391751760 commentable_item autoexpand_mode" method="post" action="/ajax/ufi/modify.php" data-live="&amp;#123;&amp;quot;seq&amp;quot;:&amp;quot;582871368394366_103294307&amp;quot;&amp;#125;" onsubmit="return window.Event &amp;amp;&amp;amp; Event.__inlineSubmit &amp;amp;&amp;amp; Event.__inlineSubmit(this,event)" id="u_ps_0_0_1a"&gt;&lt;input type="hidden" name="charset_test" value="&amp;euro;,&amp;acute;,€,´,?,?,?" /&gt;&lt;input type="hidden" name="fb_dtsg" value="AQDaIiR2" autocomplete="off" /&gt;&lt;input type="hidden" autocomplete="off" name="feedback_params" value="&amp;#123;&amp;quot;actor&amp;quot;:&amp;quot;100000145255153&amp;quot;,&amp;quot;target_fbid&amp;quot;:&amp;quot;582871368394366&amp;quot;,&amp;quot;target_profile_id&amp;quot;:&amp;quot;100000145255153&amp;quot;,&amp;quot;type_id&amp;quot;:&amp;quot;22&amp;quot;,&amp;quot;assoc_obj_id&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;source_app_id&amp;quot;:&amp;quot;0&amp;quot;,&amp;quot;extra_story_params&amp;quot;:[],&amp;quot;content_timestamp&amp;quot;:&amp;quot;1358390354&amp;quot;,&amp;quot;check_hash&amp;quot;:&amp;quot;AQBKO-0F2rj_Yd6W&amp;quot;,&amp;quot;source&amp;quot;:&amp;quot;13&amp;quot;&amp;#125;" /&gt;&lt;input type="hidden" autocomplete="off" name="data_only_response" value="1" /&gt;&lt;span class="uiStreamFooter"&gt;&lt;span class="UIActionLinks UIActionLinks_bottom" data-ft="&amp;#123;&amp;quot;tn&amp;quot;:&amp;quot;=&amp;quot;,&amp;quot;type&amp;quot;:20&amp;#125;"&gt;&lt;button title="Like this item" type="submit" name="like" onclick="fc_click(this, false); return true;" class="like_link stat_elem as_link" data-ft="&amp;#123;&amp;quot;tn&amp;quot;:&amp;quot;&amp;gt;&amp;quot;,&amp;quot;type&amp;quot;:22&amp;#125;"&gt;&lt;span class="default_message"&gt;Like&lt;/span&gt;&lt;span class="saving_message"&gt;Unlike&lt;/span&gt;&lt;/button&gt; &amp;#183; &lt;label class="uiLinkButton comment_link" title="Leave a comment"&gt;&lt;input data-ft="&amp;#123;&amp;quot;type&amp;quot;:24,&amp;quot;tn&amp;quot;:&amp;quot;S&amp;quot;&amp;#125;" type="button" value="Comment" onclick="return fc_click(this);" /&gt;&lt;/label&gt; &amp;#183; &lt;/span&gt;&lt;span class="uiStreamSource" data-ft="&amp;#123;&amp;quot;type&amp;quot;:26,&amp;quot;tn&amp;quot;:&amp;quot;N&amp;quot;&amp;#125;"&gt;&lt;a href="/person/posts/582871368394366"&gt;&lt;abbr title="Wednesday, January 16, 2013 at 9:39pm" data-utime="1358390354" class="timestamp livetimestamp"&gt;49 minutes ago&lt;/abbr&gt;&lt;/a&gt; via &lt;a href="/mobile/?v=6628568379"&gt;mobile&lt;/a&gt;&lt;/span&gt; · &lt;a data-hover="tooltip" class="uiStreamPrivacy inlineBlock fbStreamPrivacy fbPrivacyAudienceIndicator" href="#" id="u_ps_0_0_1b"&gt;&lt;i class="lock img sp_bij1np sx_085ce0"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/span&gt;&lt;div&gt;&lt;div class="uiUfi UFIContainer" id="u_ps_0_0_10"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/form&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="_6a  mlm uiPopover highlightSelector uiStreamHide" data-ft="&amp;#123;&amp;quot;type&amp;quot;:55,&amp;quot;tn&amp;quot;:&amp;quot;V&amp;quot;&amp;#125;" id="u_ps_0_0_f"&gt;&lt;a class="highlightSelectorButton uiStreamContextButton _p" href="#" aria-haspopup="true" aria-expanded="false" rel="toggle" id="u_ps_0_0_g"&gt;Options&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
  </code></pre>