bat替换脚本_用脚本替换“主页”按钮

news/2024/7/19 15:18:00 标签: javascript, php, js, web, url
bat替换脚本

bat替换脚本

Robert Ames commented on my previous post suggesting replacing the Home button with my little site search bookmarklet. I didn't even know this was possible, but I found it pretty cool, so I just had to try.

罗伯特·艾姆斯( Robert Ames )在我的上一篇文章中发表了评论,建议用我的小型站点搜索书签代替“主页”按钮。 我什至不知道这是可能的,但是我发现它很酷,所以我不得不尝试。

浏览器 (x-browser)

I tried this in Firefox/Mac and IE/Windows and it works just fine.

我在Firefox / Mac和IE / Windows中尝试过此方法,但效果很好。

好的,那是什么(ok, what is it?)

Well, the idea is simple: when setting the homepage in your browser, instead of providing an http://... URL, you can use the javascript:... pseudo-protocol. So for example you can type:

好吧,这个想法很简单:在浏览器中设置首页时,可以使用javascript:...伪协议来代替提供http:// ... URL,而无需使用http:// ... URL。 因此,例如,您可以输入:

javascript:alert(document.title)

And then every time you hit the Home button in the browser, an alert with the page title will pop up. How cool is that!

然后,每次在浏览器中单击“主页”按钮时,都会弹出带有页面标题的警报。 多么酷啊!

Naturally, you can replace the simple javascript with any sophisticated bookmarklet of your choosing (hint, hint)

自然地,您可以用您选择的任何复杂的bookmarklet( hint , hint )替换简单的javascript

如何 (how-to)

In Firefox on the Mac you go Firefox / Preferences. On Windows: Tools / Options. Then in the Main tab, you type/paste the bookmarklet code.

在Mac上的Firefox中,您可以进入Firefox /偏好设置。 在Windows上:工具/选项。 然后在“主要”选项卡中,键入/粘贴小书签代码。

Setting the Home to a <a class=javascript bookmarklet in Firefox" style="outline: none;" />

For IE/Windows go Tools / Internet Options and select the General tab

对于IE / Windows,请转到“工具” /“ Internet选项”,然后选择“常规”选项卡

Internet Explorer - setting the Home button to a <a class=javascript bookmarklet" width="402" height="215" style="outline: none;" />

Tell your friends about this post on Facebook and Twitter

在Facebook和Twitter上告诉您的朋友有关此帖子的信息

翻译自: https://www.phpied.com/replace-the-home-button-with-a-script/

bat替换脚本


http://www.niftyadmin.cn/n/1307031.html

相关文章

设计模式-工厂模式(抽象工厂模式)

抽象工厂模式 抽象工厂模式&#xff1a;提供一个接口&#xff0c;用于创建相关或依赖对象的家族&#xff0c;而不需要明确指定具体类。 简单工厂 工厂方法 假设我们需要同时生产本地和纽约的芝士披萨&#xff0c;如下&#xff1a; public interface MixPizzaFactory {Pizza c…

FusionCharts封装-Data

DataSet.java&#xff1a; /*** Title:DataSet.java* Package:com.fusionchart.model* Description:FusionCharts 封装data* author:Youhaidong(游海东)* date:2014-1-22 下午10:01:58* version V1.0*/ package com.fusionchart.model;import java.io.Serializable; import jav…

做前端轻松还是做后端轻松_轻松进行编辑:剪下6个字

做前端轻松还是做后端轻松When you write something: a book, an article, an email... cut out needless words. The copy after editing should be shorter. Writing is not speaking, it must be tighter. (And, if you find an email is getting longer, just phone the pe…

1.数据库和数据库实例(Mysql体系结构)

Mysql体系结构 1. 数据库和数据库实例 1.1 区别 数据库&#xff1a;物理操作系统文件或其他形式文件类型的集合。 实例&#xff1a;由后台线程以及一个共享的内存区域组成。数据库实例才是真正用于操作数据库文件的。 Mysql被设计成一个单进程多线程架构的数据库。通常实例与…

2.Mysql体系结构

2. Mysql体系结构 2.1 结构组成 如上图&#xff0c;Mysql由以下8部分组成&#xff1a; 连接池组件 管理服务和工具组件 SQL接口组件 查询分析器组件 优化器组件 缓冲组件 插件式存储引擎 物理文件 区别于其他数据库一个特点是&#xff1a;插件式的存储引擎。可以看到熟悉的My…

调试ie9有两个ie进程_IE中用于调试的两个小书签

调试ie9有两个ie进程Here are two bookmarklets that could make your life easier when trying to figure out why in IE a page behave as wrong as it behaves. For Firefox we have Firebug, so none of this is necessary. For IE we have also Firebug lite (see my post…

3.存储引擎简介

3.存储引擎简介 Mysql数据库的核心在于存储引擎&#xff0c;由于Mysql的开源特性&#xff0c;用户可以根据预定义的存储引擎接口编写自己的存储引擎&#xff0c;Mysql官方手册第16章给出了编写自定义存储引擎的过程。 存储引擎可以分为官方和第三方存储引擎。比如大名鼎鼎的Inn…

纯css ui_CSS性能:具有更少图像的UI

纯css ui2010 update: Lo, the Web Performance Advent Calendar hath moved 2010年更新&#xff1a; Lo&#xff0c; Web Performance Advent Calendar已移动 Dec 23 This post is the one-before-last article in the 2009 performance advent calendar experiment. 12月23日…