<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>&lt;blockquote&gt;&lt;strong&gt;&lt;a href=&quot;/users/111474&quot;&gt;ApacheLQ&lt;/a&gt;&lt;/strong&gt;&amp;nbsp;&lt;a href=&quot;/topics/36717#posts-176655&quot;&gt;wrote&lt;/a&gt;:
I've edited your code to make it a lot more compliant with Greasemonkey conventions.&lt;/blockquote&gt;There aren't any Greasemonkey conventions. Don't just make stuff up. I've been doing this much longer than you and will call you on your bullshit.&lt;blockquote&gt;&lt;strong&gt;&lt;a href=&quot;/users/111474&quot;&gt;ApacheLQ&lt;/a&gt;&lt;/strong&gt;&amp;nbsp;&lt;a href=&quot;/topics/36717#posts-176655&quot;&gt;wrote&lt;/a&gt;:
Only a full page refresh (F5) would release the lines.&lt;/blockquote&gt;You don't really understand Greasemonkey or Facebook. Greasemonkey only runs my code on a full page refresh, therefore there is only one style element added. I've even checked this myself just to make sure. Load a page in Facebook and click on a link. Then use select all and right-click View Selection Source and you will see only one style element in the head. You should have checked this yourself before accusing my script of having problems. I've been writing scripts for Facebook for over two years and already have my shit figured out.&lt;blockquote&gt;&lt;strong&gt;&lt;a href=&quot;/users/111474&quot;&gt;ApacheLQ&lt;/a&gt;&lt;/strong&gt;&amp;nbsp;&lt;a href=&quot;/topics/36717#posts-176655&quot;&gt;wrote&lt;/a&gt;:
&lt;pre&gt;window.addEventListener(&amp;quot;load&amp;quot;, removeFacebookAds, false);&lt;/pre&gt;&lt;/blockquote&gt;This line makes me chuckle. Did you read my description page?&lt;blockquote&gt;This script &lt;strong&gt;doesn't use listeners&lt;/strong&gt; or any of that memory-intensive crap. It just inserts a little CSS into the page.&lt;/blockquote&gt; You don't need to wait for the page to load. Greasemonkey already executes on DOMContentLoaded, which occurs before the page loads. You also omitted the anonymous function which throws cross-browser compatibility out the window.
&lt;blockquote&gt;&lt;strong&gt;&lt;a href=&quot;/users/111474&quot;&gt;ApacheLQ&lt;/a&gt;&lt;/strong&gt;&amp;nbsp;&lt;a href=&quot;/topics/36717#posts-176655&quot;&gt;wrote&lt;/a&gt;:
&lt;span&gt;The code now only runs on the top most window and only if the style has not been appended to the page.&lt;/span&gt;&lt;/blockquote&gt;Although it's not absolutely necessary, it's probably best that it only runs on the top iframe, so I added a check for that.&lt;pre&gt;if (!head || &lt;b&gt;self.location != top.location&lt;/b&gt;) {return}
&lt;/pre&gt;
&lt;blockquote&gt;&lt;strong&gt;&lt;a href=&quot;/users/111474&quot;&gt;ApacheLQ&lt;/a&gt;&lt;/strong&gt;&amp;nbsp;&lt;a href=&quot;/topics/36717?page=1#posts-176655&quot;&gt;wrote&lt;/a&gt;:
If you run with this update, it would be nice if you could do the same.&lt;/blockquote&gt;lol like I would ever use that ugly bloated code (why not store all the style in a variable? that's what variables are for). its nearly as bad as those crappy xpath ad removers.</body>
  <body-html>&lt;p&gt;&lt;blockquote&gt;&lt;strong&gt;&lt;a href=&quot;/users/111474&quot;&gt;ApacheLQ&lt;/a&gt;&lt;/strong&gt;&amp;nbsp;&lt;a href=&quot;/topics/36717#posts-176655&quot;&gt;wrote&lt;/a&gt;:
&lt;br /&gt;I've edited your code to make it a lot more compliant with Greasemonkey conventions.&lt;/blockquote&gt;There aren't any Greasemonkey conventions. Don't just make stuff up. I've been doing this much longer than you and will call you on your bullshit.&lt;blockquote&gt;&lt;strong&gt;&lt;a href=&quot;/users/111474&quot;&gt;ApacheLQ&lt;/a&gt;&lt;/strong&gt;&amp;nbsp;&lt;a href=&quot;/topics/36717#posts-176655&quot;&gt;wrote&lt;/a&gt;:
&lt;br /&gt;Only a full page refresh (F5) would release the lines.&lt;/blockquote&gt;You don't really understand Greasemonkey or Facebook. Greasemonkey only runs my code on a full page refresh, therefore there is only one style element added. I've even checked this myself just to make sure. Load a page in Facebook and click on a link. Then use select all and right-click View Selection Source and you will see only one style element in the head. You should have checked this yourself before accusing my script of having problems. I've been writing scripts for Facebook for over two years and already have my shit figured out.&lt;blockquote&gt;&lt;strong&gt;&lt;a href=&quot;/users/111474&quot;&gt;ApacheLQ&lt;/a&gt;&lt;/strong&gt;&amp;nbsp;&lt;a href=&quot;/topics/36717#posts-176655&quot;&gt;wrote&lt;/a&gt;:
&lt;br /&gt;&lt;pre&gt;window.addEventListener(&amp;quot;load&amp;quot;, removeFacebookAds, false);&lt;/pre&gt;&lt;/blockquote&gt;This line makes me chuckle. Did you read my description page?&lt;blockquote&gt;This script &lt;strong&gt;doesn't use listeners&lt;/strong&gt; or any of that memory-intensive crap. It just inserts a little CSS into the page.&lt;/blockquote&gt; You don't need to wait for the page to load. Greasemonkey already executes on DOMContentLoaded, which occurs before the page loads. You also omitted the anonymous function which throws cross-browser compatibility out the window.
&lt;br /&gt;&lt;blockquote&gt;&lt;strong&gt;&lt;a href=&quot;/users/111474&quot;&gt;ApacheLQ&lt;/a&gt;&lt;/strong&gt;&amp;nbsp;&lt;a href=&quot;/topics/36717#posts-176655&quot;&gt;wrote&lt;/a&gt;:
&lt;br /&gt;&lt;span&gt;The code now only runs on the top most window and only if the style has not been appended to the page.&lt;/span&gt;&lt;/blockquote&gt;Although it's not absolutely necessary, it's probably best that it only runs on the top iframe, so I added a check for that.&lt;pre&gt;if (!head || &lt;b&gt;self.location != top.location&lt;/b&gt;) {return}
&lt;/pre&gt;&lt;blockquote&gt;&lt;strong&gt;&lt;a href=&quot;/users/111474&quot;&gt;ApacheLQ&lt;/a&gt;&lt;/strong&gt;&amp;nbsp;&lt;a href=&quot;/topics/36717?page=1#posts-176655&quot;&gt;wrote&lt;/a&gt;:
&lt;br /&gt;If you run with this update, it would be nice if you could do the same.&lt;/blockquote&gt;lol like I would ever use that ugly bloated code (why not store all the style in a variable? that's what variables are for). its nearly as bad as those crappy xpath ad removers.&lt;/p&gt;</body-html>
  <created-at type="datetime">2009-10-08T21:10:36Z</created-at>
  <forumable-id type="integer">46560</forumable-id>
  <forumable-type>Script</forumable-type>
  <id type="integer">177344</id>
  <topic-id type="integer">36717</topic-id>
  <updated-at type="datetime">2009-10-09T01:57:56Z</updated-at>
  <user-agent>Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3</user-agent>
  <user-id type="integer">27715</user-id>
</post>
