加载具有修改的CSS的网页? [英] Load webpage with modified css?

查看:129
本文介绍了加载具有修改的CSS的网页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个奇怪的查询真的,但漫步,如果有人知道一种方法来链接网站与另一个网站与自定义CSS。例如,如果您有经常在手机上访问的网站,请导航到您自己的网址,以便加载不同的网页与您的CSS。您希望Google以不同的方式显示 http://m.mywebaddress.com/google 它加载google,但与我自己的自定义css。
我知道你可以使用Chrome开发者工具,但这只有帮助,如果你从自己的Chrome浏览网站。我可能会渴望不可能在这里,但以为我会问一切!

An odd query really but wandered if anyone knew of a way to link a website to another site with custom css. For example if there is a site you visit regularly on a mobile phone, navigate to your own web address so it loads a different web page with your css e.g. you want google to show in a different way you go to http://m.mywebaddress.com/google and it loads google, but with my own custom css. I know you can do it using Chrome developer tools, but that only helps if you view the site from your own chrome. I may be craving the impossible here but thought i would ask all the same!

推荐答案

浏览器扩展之外: https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/

您可以执行以下操作:


  1. 所需页面使用您偏好的环境刮取
    软件包:
    HTML抓取选项? / a>

  1. Scrape the desired page using your preferred environment scraping package: Options for HTML scraping?

将抓取的HTML加载到您自己的页面上。

Load the scraped HTML onto your own page.

使用您的
自己的CSS设定专页风格。

Style your page using your own CSS.

这有点有限,因为你只是刮了HTML标记,并且不包括原始网站的任何JavaScript钩子。

This is somewhat limited though, as you're only scraping the HTML markup, and not including any JavaScript hooks from the original site.

这篇关于加载具有修改的CSS的网页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆