如何禁用谷歌加一(+1)按钮的悬停气泡?

发布于 2024-12-02 08:32:52 字数 321 浏览 3 评论 0原文

在我的页面中,如何删除 google +1 按钮的工具提示消息?

示例:http://www.google.com/webmasters/+1/button/

文档:http://code.google.com/apis/+1button/

我尝试了很多方法,但无法弄清楚。

In my page, how can i remove the google +1 button's tooltip message?

Example: http://www.google.com/webmasters/+1/button/

Documentation: http://code.google.com/apis/+1button/

I tried many ways, but can't figure it out.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

不喜欢何必死缠烂打 2024-12-09 08:32:52

根据您在使用 API 时同意的 Google 政策,您不应该这样做:http://www.google.com/webmasters/+1/button/policy.html

不允许修改该按钮,包括其行为。

您可以由同一页面中所述的 Google 机器人控制。如果您不想要按钮的行为,请不要使用 Google 的 +1 API。

You are supposed not to do that as per the google policies that you agree to in using their API: http://www.google.com/webmasters/+1/button/policy.html .

You're not allowed to modify the button, its behavior included.

You can be controlled by Google's robots as stated in same page. If you don't want the button's behavior, don't use Google's +1 API.

安稳善良 2024-12-09 08:32:52

我同意@Kheldar,但作为教学课程,您将这样做:

当弹出窗口显示时,HTML以此开头:

<table cellpadding="0" cellspacing="0" style="width: 324px; height: 68px; " frame="void" rules="none" class="gc-bubbleDefault pls-container">

只需添加一些CSS即可不显示它:

.gc-bubbleDefault, .pls-container
{
   display: none !important;
}

I agree with @Kheldar, but as a teaching lesson, here is how you would do it:

When the popup shows up, the HTML starts with this:

<table cellpadding="0" cellspacing="0" style="width: 324px; height: 68px; " frame="void" rules="none" class="gc-bubbleDefault pls-container">

Just add some CSS to not show it:

.gc-bubbleDefault, .pls-container
{
   display: none !important;
}
怪我鬧 2024-12-09 08:32:52

Firefox 用户:打印并按照以下步骤在有或没有 AdBlock 或 AdBlock Plus 的情况下从搜索结果中关闭/禁用/删除 Google +1 按钮,并且无需创建 Google 配置文件:

1) 转至硬盘上的 Firefox 配置文件文件夹。

要在 Windows XP、Vista、7 中找到您的 Firefox 配置文件,请按:[Windows 键]+[R] → 输入(减去引号):
“%APPDATA%\Mozilla\Firefox\Profiles” → 单击“确定”

或从任务栏单击:开始 → 运行 → 输入(去掉引号):
“%APPDATA%\Mozilla\Firefox\Profiles” → 单击确定

将打开配置文件文件夹。 Profiles 文件夹中可能只有一个文件夹。

2) 打开扩展名为“.default”的文件夹。

3) 在.default文件夹中查找名为Chrome的文件夹。如果 Chrome 文件夹不存在,则需要创建它。 (如果 Chrome 文件夹存在,请跳至#4)。

要创建 Chrome 文件夹: 右键单击​​ .default 文件夹 → 选择新建文件夹 → 输入(不带引号):“Chrome”

4) 打开 Chrome 文件夹并创建一个名为 userContent.css 的 .text 文件。 (此文件的内容告诉 Firefox 不要在网页上显示 +1 按钮。)

要创建名为 userContent.css 的文本文件:右键单击 Chrome 文件夹 → 选择新建 → 文本文档 → 输入(不带引号): “userContent.css”

Windows 会弹出“重命名”警告对话框,提示:如果更改文件扩展名,该文件可能会变得不可用。您确定要更改它吗?是 否

选择“是”

5) 打开 userContent.css。 (它将在记事本中打开,并显示一个标题为:userContent.css - 记事本的框)。

6) 将以下内容粘贴到记事本中(去掉引号): " .esw { display:none!important; } /* 完全隐藏 +1 按钮 */ "

请务必在“esw”之前包含句点 (.)多于。

7) 保存记事本文件并关闭它:选择文件 → 保存 → 文件 → 关闭(或选择文件夹标题栏上的 X 关闭)

8) 关闭剩余打开的文件夹。

9)如果Firefox浏览器没有关闭,请将其关闭。重新打开 Firefox 浏览器。导航到 Google 的搜索页面并执行搜索。 Google +1 按钮将从未来的所有搜索结果中消失。

Firefox users: Print and follow these steps to turn off /disable/remove Google +1 Buttons from search results with or without AdBlock or AdBlock Plus and WITHOUT having to create a Google profile:

1) Go to Firefox Profiles folder on your hard drive.

To locate your Firefox Profiles in Windows XP, Vista, 7, press: [Windows Key]+[R] → Type in (minus the quotes):
“%APPDATA%\Mozilla\Firefox\Profiles” → click OK

or from the Taskbar click:START → RUN → Type in (minus the quotes):
“%APPDATA%\Mozilla\Firefox\Profiles” → click OK

The Profiles Folder will open. There will probably be only one folder in the Profiles folder.

2) Open the folder with the ".default" extension name.

3) Look for a folder named Chrome in the .default folder. If Chrome folder does not exist, you need to create it. (If the Chrome folder exists, skip to #4).

To create the Chrome folder: Right click inside the .default folder → Select NEW FOLDER → Type in (without the quotes): “Chrome”

4) Open the Chrome folder and create a .text file named userContent.css. (The contents of this file tells Firefox not to display +1 Buttons on web pages.)

To create a text file named userContent.css: Right click inside the Chrome folder → Select NEW → TEXT DOCUMENT → Type in (without the quotes): "userContent.css"

Windows will bring up “Rename” warning dialogue box that says: If you change a file name extension, the file may become unusable. Are you sure you want to change it? Yes No

Select YES

5)Open userContent.css. (It will open in Notepad with a box titled: userContent.css - Notepad).

6) Paste the following into Notepad (minus the quotes): " .esw { display:none!important; } /* Hides the +1 Button completely */ "

Be sure to include the period (.) before "esw" in the above.

7) Save the Notepad file and Close it: Select FILE → SAVE → FILE → CLOSE (or select X on folder title bar to Close)

8) Close remaining open folders.

9)If Firefox Browser is not closed, close it. Re-open Firefox Browser. Navigate to Google’s search page and perform a search. Google +1 Buttons will be gone from all future search results.

泪之魂 2024-12-09 08:32:52

我遇到了同样的问题,因为我想要按钮
与 facebook 和 twitter 分享按钮的布局相同(来自 addthis)
没有 g+ 工具提示——它不是 +1,而是

它确实存在的共享——但被隐藏了..
(需要 url 参数 -- https://plus.google.com/share?url= {URL} )

https://developers.google.com/+/plugins/share/< /a>
向下滚动...到“共享链接”..使用 addthis 的代码示例,

<a href="https://plus.google.com/share?url={URL}"
  onclick="javascript:window.open(this.href,'', 
    'menubar=no,toolbar=no,resizable=yes,
    scrollbars=yes,height=600,width=600');return false;">
<img src="https://www.gstatic.com/images/icons/gplus-64.png" 
  alt="Share on Google+"/></a>

该类是 addthis_button_google_plusone_share
还没有在他们的 api 文档中,就好像他们后来添加了它一样

——我对他们的不一致感到有点恼火
(tw -> js:window.open 与 fb, g+ -> url:_black)
-- 添加到 url 跟踪代码 -- 可以禁用它

<script type="text/javascript"> 
var addthis_config = { data_track_clickback: false } </script> 

facebook 和 twitter 的处理方式完全相同
-- 获取相应 url fb 中的参数

http://www.facebook.com/sharer /sharer.php?u={URL}
tw: https://twitter.com/intent/tweet?text=XXXX&url= {URL}&相关=

I got the same problem as I wanted to have the buttons
in the same layout as the facebook and twitter share buttons (from addthis)
without the g+ tooltip -- it's not the +1 rather the share

it does exist -- but is hidden ..
(needs url parameter -- https://plus.google.com/share?url={URL} )

on https://developers.google.com/+/plugins/share/
scroll down ... to "Share Link" .. with a code example

<a href="https://plus.google.com/share?url={URL}"
  onclick="javascript:window.open(this.href,'', 
    'menubar=no,toolbar=no,resizable=yes,
    scrollbars=yes,height=600,width=600');return false;">
<img src="https://www.gstatic.com/images/icons/gplus-64.png" 
  alt="Share on Google+"/></a>

well with addthis the class is addthis_button_google_plusone_share
not yet in their api docs as if they added it later on

-- am a bit annoyed about their inconsistence
(tw -> js:window.open vs fb, g+ -> url:_black)
-- adds to the url trackingcodes -- well it can be disabled

<script type="text/javascript"> 
var addthis_config = { data_track_clickback: false } </script> 

facebook and twitter handle it exactly the same
-- get paramter in respective url

fb: http://www.facebook.com/sharer/sharer.php?u={URL}
tw: https://twitter.com/intent/tweet?text=XXXX&url={URL}&related=

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文