Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to ignore framebuster script
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jesper Rønn-Jensen  
View profile  
 More options Oct 5 2007, 7:06 am
From: Jesper Rønn-Jensen <jespe...@gmail.com>
Date: Fri, 05 Oct 2007 04:06:26 -0700
Local: Fri, Oct 5 2007 7:06 am
Subject: How to ignore framebuster script
I'm accessing an internal legacy web application that has inline code
to make sure a frameset is loaded arround the page. Very annoying when
developing... and I don't have access to the source.

Do you know of a greasemonkey script that can ignore a framebuster.
The challenge (for me, at least): It's inline javascript in the HTML
file, and it uses location.href for the redirect.

I can't figure out how to make my browser ignore this... Any thoughts
and ideas?

THanks in advance,

Jesper Rønn-Jensen
www.justaddwater.dk


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jesper Rønn-Jensen  
View profile  
 More options Oct 5 2007, 7:19 am
From: Jesper Rønn-Jensen <jespe...@gmail.com>
Date: Fri, 05 Oct 2007 04:19:31 -0700
Local: Fri, Oct 5 2007 7:19 am
Subject: Re: How to ignore framebuster script
Forgot to send the actual code:

<SCRIPT Language="Javascript">
  var url = 'xxxxxxx'
  if (parent.frames[0]) {
    if (parent.frames[0].name != 'FrameMain') {
      document.location.replace(url);
    }
  }else{
    document.location.replace(url);
  }
</SCRIPT>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Most  
View profile  
 More options Oct 5 2007, 4:23 pm
From: Tom Most <tomm...@gmail.com>
Date: Fri, 05 Oct 2007 16:23:11 -0400
Local: Fri, Oct 5 2007 4:23 pm
Subject: Re: [greasemonkey-users] Re: How to ignore framebuster script

In Greasemonkey there's no way to modify inline JavaScript before it
runs.  If you really need this functionality, it is present in Opera's
User Script implementation.

--Tom

  smime.p7s
4K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jesper Rønn-Jensen  
View profile  
 More options Oct 10 2007, 3:41 pm
From: Jesper Rønn-Jensen <jespe...@gmail.com>
Date: Wed, 10 Oct 2007 12:41:29 -0700
Local: Wed, Oct 10 2007 3:41 pm
Subject: Re: How to ignore framebuster script
Thanks Tom.
I'll give it a try to see if I can figure it out how to do it with
Opera

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
esquifit  
View profile  
 More options Oct 11 2007, 5:15 pm
From: esquifit <esqui...@googlemail.com>
Date: Thu, 11 Oct 2007 23:15:10 +0200
Local: Thurs, Oct 11 2007 5:15 pm
Subject: Re: [greasemonkey-users] Re: How to ignore framebuster script
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.

5) Start Firefox.
6) Navigate to the above site and check that the location.replace hack
has been disabled.  This affects only this domain and only this object
(the 'replace' method of the 'Location' DOM Object).

Please read carefully the informations about CAPS.  Note in
particular, that there can be at most one line
user_pref("capability.policy.policynames", ...);
and be sure to understand how user.js and prefs.js work and how they
relate to each other.

Extra hint: in order to know the class name of a given object (in our
case 'Location' is the class name of the location object) just get a
reference X to a instance of the object in a script and look at
X.constructutor.toString().  For example:

alert(window.location.constructor.toString() ) ---> [Location]
alert(document.getElementsByTagName('A')[0].constructor.toString() )
--> [HTMLAnchorElement]
etc.

hth
e.

[1] http://www.mozilla.org/projects/security/components/ConfigPolicy.html
[2] http://kb.mozillazine.org/Security_Policies
[3] http://kb.mozillazine.org/Allowing_only_certain_sites_to_use_JavaScri...
[4] http://www.mozilla.org/support/firefox/profile#locate


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jesper Rønn-Jensen  
View profile  
 More options Oct 19 2007, 3:02 pm
From: Jesper Rønn-Jensen <jespe...@gmail.com>
Date: Fri, 19 Oct 2007 12:02:47 -0700
Local: Fri, Oct 19 2007 3:02 pm
Subject: Re: How to ignore framebuster script
Esquifit:

Thanks for the tip. Will close my firefox immediately and try it

/Jesper


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »