寻找GMail中Web剪辑栏的CSS选择器 [英] Looking for CSS selector for Web Clips bar in GMail

查看:76
本文介绍了寻找GMail中Web剪辑栏的CSS选择器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Firefox时尚插件来创建用户样式,以将我的GMail中的所有蓝色变为橄榄绿色.

GMail页面生成的DOM是外国军团半数英雄的地形,甚至对于勇敢的凡人也绝对不是.

I''m trying to create a user style, using the Firefox Stylish add-in, to turn all the blue in my GMail to Olive Green.

The generated DOM of the GMail page is the terrain of foreign legion demi-heroes, and definitely not even for brave mortals.

How could I formualte a selector that will get all elements with a certain background colour and change that colour?

推荐答案

创建自定义主题的方式出了什么问题?他们提供的?

设置->主题->选择自己的颜色

如果他们使用样式"属性(但其他网站可能没有)来完成此操作,则使用此^ ]可能感兴趣.

其实我脑子很动.

使用jQuery,选择所有内容:
What''s wrong with creating a custom theme the way that they provide?

Settings -> Themes -> Choose your own colours

If they had done it using the ''style'' attribute, which they haven''t (but other sites may have), then using this jQuery Selector[^] may be of interest.

Actually, I had a brain wave.

Using jQuery, select everything:


(''*'').each(function(){ 如果(
(''*'').each(function(){ if (


(this).css(``background-color'')==''blue'')
(this).css(''background-color'')==''blue'')


这篇关于寻找GMail中Web剪辑栏的CSS选择器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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