有没有办法通过一个自定义的页面能够抓住原网站的元素,并改变其可视化的属性来加载一个网站(或指向一个网页)?
Is there a way to load a site (or point to a web page) through a custom page able to grab the original site's element and change their visualization properties?
例如:如果有一个上线的网站以红borded段落,就可以创建能够指向这个网站,并开启它的可视化段边界蓝页
For example: if there is an on-line site with red-borded paragraphs, it is possible create a page able to point at this site and turning its paragraph visualization border to blue?
更新: 非常非常重要的,我绝对需要能够为的导航的目标站点。 我正在寻找一种方式来创建一个可视化层,这必须是透明的最终用户。
UPDATE: Very very important, I absolutely need to be able to navigate the target site. I'm looking for a way to create a "visualization layer" which has to be transparent for the final user.
更新2: 我试图创建一个PHP页面,并使用卷曲与此code:
UPDATE 2: I have tried creating a php page and using cURL with this code:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'www.google.com');
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
$output = curl_exec($ch);
curl_close($ch);
print( $output );
在页面加载,但错过了一些元素和图像。本人也不能进行导航/搜索通过它
The page is loaded but missed some elements and the images. I is also not possible to navigate / search through it.
更新3:
我发现了一个延伸的Firefox和Chrome浏览器是非常接近我的目标是:时尚
这加上允许住改任何网站的CSS亲preRTY并保存,以便每次你访问该页面时重新加载它们。
UPDATE 3:
I have found an extention for both FireFox and Chrome which is really close to my aim: "Stylish"
This add on allows to live change any site css proprerty and save it in order to reload them every time you'll visit the page.
现在我的问题是:我怎么可以做同样的创建一个专门的页面加载和更改特定网站的可视化
Now my question is: How can I do the same creating a dedicated page to load and change visualization of a specific site?
最后编辑:
为了继续这个问题有更多的相关争论,我决定要问一个新的:的创建一个PHP代理页面
In order to continue this question with a more relevant arguments I decided to ask a new one: create a php proxy page
使用PHP的卷曲功能抢到网站,然后用自己的替换页面的CSS,或者只是嵌入的CSS规则到文件phpQuery库的帮助。
Use php CURL functions to grab website and then replace css of page with your own, or just embed css rules into file with help of phpQuery library.