Curl script to parse the returned html to display only the desired info? -- Mike On Thu, Aug 27, 2009 at 6:57 AM, Mateusz Blaszczyk <blahu77@xxxxxxxxx>wrote: > On Thu, Aug 27, 2009 at 07:42:09AM +0000, Killsystem wrote: > > This seems a solution. The only problem is that you can't add Javascript > > via the local.php. You have to modify the index.php. > > @mat: Could you try if this solution is working for you? > > > The framekiller-killers... > I wasn't sleeping much recently but I don't understand how the > following would restrict the page to iframe only: > > --------------- > var prevent_bust = 0 > window.onbeforeunload = function() { prevent_bust++ } > setInterval(function() { > if (prevent_bust > 0) { > prevent_bust -= 2 > window.top.location = 'http://server-which-responds-with-204.com' > } > }, 1) > --------------- > > Also I don't know how to generate/simulate '204-No Content' page. > When I've put the js as it it above the page was constantly reloading. > > Second framekiller-killer ( > http://www.farelog.com/doc/Framekiller_Killer.aspx) is not really a what > I wanted as it only inserts "Do you really want it?" question before > being redirected away from iframe - am I correct?. > > > > Regarding the redirect from the wiki I think this has something to do > with > > apache url rewrites. You could try it with appending "&printable=yes". > > Seems to work [1] with the "real" wikipedia well. > > > > [1] > > > http://stackoverflow.com/questions/61902/iframe-wikipedia-article-without-the-wrapper > > > > This works great. > > Best Regards, > > -mat > > -- > Mateusz Blaszczyk > > pgp-key 0x64643FCE > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > > iEYEARECAAYFAkqWZpQACgkQP+rXbWRkP87VOgCcCl0bacAT/LpbKYNXgjBJluNd > WmkAni3QTJGKdsvv3+AAOds0nZS3ECxc > =Nwkr > -----END PGP SIGNATURE----- > >