Safari Extension to Block Flash and load them by one click.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
461 B

14 years ago
  1. <!DOCTYPE HTML>
  2. <script>
  3. safari.application.addEventListener("message", handleMessage, false);
  4. function handleMessage(theEvent) {
  5. if (theEvent.name=="canLoad") {
  6. var message = theEvent.message;
  7. console.log(message);
  8. if (message.name=="getSettings") {
  9. console.log("Get Settings");
  10. var data = message.data;
  11. theEvent.message = safari.extension.settings.bob;
  12. }
  13. }
  14. }
  15. safari.application.addEventListener("message", handleMessage, false);
  16. </script>