Remove Facebook Ads

By sizzlemctwizzle Last update Jul 20, 2010 — Installed 124,810 times.

Update to work with GreaseKit

in
Subscribe to Update to work with GreaseKit 2 posts, 2 voices



thejefe User

Hi,

GreaseKit is a GreaseMonkey implementation for Safari and other WebKit browsers under Mac OS X. Safari considers a bunch of objects read-only and throws an error if you try to modify them. The code below fixes that:

try {
style.innerHTML = css;
} catch(x) {
style.innerText = css;
}

This should come instead of the "style.innerHTML = css;" line in the original code.

 
sizzlemctwizzle Script's Author

Done. Thanks.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel