comprar viagra de andorra qu est ce que soft viagra cialis-indien-erfahrungen viagra sur ordonnance cialis generique forum cialis pris apotek cialis france generique old partner company cialis xhamster vendita cialis cialis pris apoteket achat rapide viagra venta viagra capital federal cialis generika erfahrung acheter viagra paris comprar kamagra oral jellymg
viagra prix en pharmacie 
viagra vente libre france 
achat rapide viagra 
achat generique viagra en france 
ou je peux achet des viagra sur bordeaux 
acheter viagra authentique 
acheter cialis sans ordonnance 
acheter silagra 100 
kamagra oral jelly livraison rapide 
femme viagra 
levitra sur internet 
sildenafil 100 pilules 
commander kamagra 
cialis 5 mg quelle est le prix 
kamagra gel farmacia svizzera 
buying kamagra buy viagra on the internet order kamagra online buy cialis without prescription champix no perscription priligy mg next day delivery levitra price cialis cost buy levitra generic cheapest generic viagra cialis drugstore where can i buy levitra order viagra bupropion india pharmacy cheapest viagra online

Firefox Tip For Framebuster JavaScript

I have for long been struggling with an internal legacy application that wraps the content page in a frameset. Very annoying because I have spent some time to reverse engineer a poor-mans API to the application.

Problem: An inline “reverse” framebuster script that makes sure that everything is nicely(?) wrapped in the frameset. As you see it’s included inline in the HTML.

<script Language="Javascript">
  url = "application_url";
  if (parent.frames[0]) {
    if (parent.frames[0].name != ‘FrameMain’) {
      document.location.replace(url);
    }
  }else{
    document.location.replace(url);
  }
</script>

One thing is I never understood the thing about putting everything in a frameset. In this case, I have not been able to change the code. But as I have to use the application every now and then, the big question is:

How to change or remove the inline JavaScript, and make sure the framebuster is ignored?

I did not think this was possible until I got this answer from “esquifit” in the Greasemonkey user goup:

You do not need GM nor Opera for this task. Firefox comes with a
built-in capability for allowing/disallowing access to
properties/methods of DOM Objects on a per-site basis. It is called
Configurable Security Policies (CAPS) and it is described in [1].
Further examples and explanations are provided for example in [2] and
[3].
A short guide assuming the simplest case:
1) Close Firefox
2) Locate your profile folder [4]
3) Locate the file user.js within this folder. If it does not exist,
create it with a *text* editor (Notepad, vim, etc.), not with a ‘word
processor’ (MS Word, OpenOffice.org, Wordpad, etc.)
4) Add the following lines to user.js:
user_pref(“capability.policy.policynames”, “noframebuster”);
user_pref(“capability.policy.noframebuster.sites”,
http://www.annoying-site.com“);
user_pref(“capability.policy.noframebuster.Location.replace”, “noAccess”);
Of course, you will have to replace the domain with the one you want to prevent from redirecting your frames.

Find the entire discussion here:

Technorati Tags: , , , , , ,

3 Responses to “Firefox Tip For Framebuster JavaScript”

  1. fasterda » Blog Archive » Firefox Tip For Framebuster JavaScript Says:

    [...] check the full story here [...]

  2. Firefox Tip For Framebuster JavaScript | qzpoint Says:

    [...] here for full [...]