I'm actually trying to find a way to load an iframe content trought proxy in order to bypass the same origin piracy, but in JavaScript. I want to make a UserScript in fact and i'm kinda new in this usercripting. It basicly uses Javascript.
Right now i'm adding an iframe of a forum from a different domain and thing is that i don't want to display everything from this forum just the table part (like get rid of menus, footers, headers, etc). So in order to do this i need to change the content of my iframe, but due to same origin policy it isn't possible as it's not the same domain.
I've search for some solutions and getting trough a proxy seems to be the best bypass way to achieve what i'm trying to do. But now, this bypassing with proxy works with php. And useScripts are codded in JavaScript.
how can i load my iframe through a proxy using JavaSCipt then? From what i get i need to serve the iframe from the same domain as the webpage where my userscript is executed. The website where the userscript is executed isn't mine, but i can modify DOM content in everypossible way thans to this userScripting. But i don't know if this is even possible with UserScripts and how to achieve this :(
Will it allow me to change my iframe content? I only want to change the CSS and be able to read (not write) some of the content.
Any Jquery solution is welcome
Pls help, thank you!
PS: Sorry for any mistakes, trying my best to explain clearly my problem