The best solution for embedded objects is Firefox implementing the same feature as Opera: a placeholder is displayed in place of ANYTHING that requires a plugin. You click on the placeholder and the plugin starts. It is just ON/OFF, no filters, no rules.
You can block external JS files. Sometimes it happens that the advertisement is mixed in the same external JS file that is needed for some/many other functions of the site so you can't block it.
With inline JS you can't do anything.