<s>
A	O
bookmarklet	B-Language
is	O
a	O
bookmark	O
stored	O
in	O
a	O
web	B-Application
browser	I-Application
that	O
contains	O
JavaScript	B-Language
commands	O
that	O
add	O
new	O
features	O
to	O
the	O
browser	B-Application
.	O
</s>
<s>
They	O
are	O
stored	O
as	O
the	O
URL	O
of	O
a	O
bookmark	O
in	O
a	O
web	B-Application
browser	I-Application
or	O
as	O
a	O
hyperlink	O
on	O
a	O
web	O
page	O
.	O
</s>
<s>
Bookmarklets	B-Language
are	O
usually	O
small	O
snippets	O
of	O
JavaScript	B-Language
executed	O
when	O
user	O
clicks	O
on	O
them	O
.	O
</s>
<s>
When	O
clicked	O
,	O
bookmarklets	B-Language
can	O
perform	O
a	O
wide	O
variety	O
of	O
operations	O
,	O
such	O
as	O
running	O
a	O
search	O
query	O
from	O
selected	O
text	O
or	O
extracting	O
data	O
from	O
a	O
table	O
.	O
</s>
<s>
Another	O
name	O
for	O
bookmarklet	B-Language
is	O
favelet	O
or	O
favlet	B-Language
,	O
derived	O
from	O
favorites	O
(	O
synonym	O
of	O
bookmark	O
)	O
.	O
</s>
<s>
Steve	O
Kangas	O
of	O
bookmarklets.com	O
coined	O
the	O
word	O
bookmarklet	B-Language
when	O
he	O
started	O
to	O
create	O
short	O
scripts	O
based	O
on	O
a	O
suggestion	O
in	O
Netscape	O
's	O
JavaScript	B-Language
guide	O
.	O
</s>
<s>
Brendan	O
Eich	O
,	O
who	O
developed	O
JavaScript	B-Language
at	O
Netscape	O
,	O
gave	O
this	O
account	O
of	O
the	O
origin	O
of	O
bookmarklets	B-Language
:	O
</s>
<s>
The	O
increased	O
implementation	O
of	O
Content	B-Protocol
Security	I-Protocol
Policy	I-Protocol
(	O
CSP	O
)	O
in	O
websites	O
has	O
caused	O
problems	O
with	O
bookmarklet	B-Language
execution	O
and	O
usage	O
(	O
2013-2015	O
)	O
,	O
with	O
some	O
suggesting	O
that	O
this	O
hails	O
the	O
end	O
or	O
death	O
of	O
bookmarklets	B-Language
.	O
</s>
<s>
William	O
Donnelly	O
created	O
a	O
work-around	O
solution	O
for	O
this	O
problem	O
(	O
in	O
the	O
specific	O
instance	O
of	O
loading	O
,	O
referencing	O
and	O
using	O
JavaScript	B-Language
library	O
code	O
)	O
in	O
early	O
2015	O
using	O
a	O
Greasemonkey	B-Operating_System
userscript	O
(	O
Firefox	B-Application
/	O
Pale	B-Protocol
Moon	I-Protocol
browser	I-Protocol
add-on	O
extension	O
)	O
and	O
a	O
simple	O
bookmarklet-userscript	O
communication	O
protocol	O
.	O
</s>
<s>
It	O
allows	O
(	O
library-based	O
)	O
bookmarklets	B-Language
to	O
be	O
executed	O
on	O
any	O
and	O
all	O
websites	O
,	O
including	O
those	O
using	O
CSP	O
and	O
having	O
an	O
https://	O
URI	B-Protocol
scheme	O
.	O
</s>
<s>
Note	O
,	O
however	O
,	O
that	O
if/when	O
browsers	B-Application
support	O
disabling/disallowing	O
inline	O
script	O
execution	O
using	O
CSP	O
,	O
and	O
if/when	O
websites	O
begin	O
to	O
implement	O
that	O
feature	O
,	O
it	O
will	O
"	O
break	O
"	O
this	O
"	O
fix	O
"	O
.	O
</s>
<s>
Web	B-Application
browsers	I-Application
use	O
URIs	B-Protocol
for	O
the	O
href	O
attribute	O
of	O
the	O
tag	O
and	O
for	O
bookmarks	O
.	O
</s>
<s>
The	O
URI	B-Protocol
scheme	O
,	O
such	O
as	O
http:	O
,	O
file	O
:	O
,	O
or	O
ftp	O
:	O
,	O
specifies	O
the	O
protocol	O
and	O
the	O
format	O
for	O
the	O
rest	O
of	O
the	O
string	O
.	O
</s>
<s>
Browsers	B-Application
also	O
implement	O
a	O
prefix	O
javascript	B-Language
:	O
that	O
to	O
a	O
parser	O
is	O
just	O
like	O
any	O
other	O
URI	B-Protocol
.	O
</s>
<s>
Internally	O
,	O
the	O
browser	B-Application
sees	O
that	O
the	O
specified	O
protocol	O
is	O
javascript	B-Language
,	O
treats	O
the	O
rest	O
of	O
the	O
string	O
as	O
a	O
JavaScript	B-Language
application	O
which	O
is	O
then	O
executed	O
,	O
and	O
uses	O
the	O
resulting	O
string	O
as	O
the	O
new	O
page	O
.	O
</s>
<s>
If	O
the	O
script	O
returns	O
an	O
undefined	O
type	O
(	O
rather	O
than	O
,	O
for	O
example	O
,	O
a	O
string	O
)	O
,	O
the	O
browser	B-Application
will	O
not	O
load	O
a	O
new	O
page	O
,	O
with	O
the	O
result	O
that	O
the	O
script	O
simply	O
runs	O
against	O
the	O
current	O
page	O
content	O
.	O
</s>
<s>
Bookmarklets	B-Language
are	O
saved	O
and	O
used	O
as	O
normal	O
bookmarks	O
.	O
</s>
<s>
As	O
such	O
,	O
they	O
are	O
simple	O
"	O
one-click	O
"	O
tools	O
which	O
add	O
functionality	O
to	O
the	O
browser	B-Application
.	O
</s>
<s>
Modify	O
the	O
appearance	O
of	O
a	O
web	O
page	O
within	O
the	O
browser	B-Application
(	O
e.g.	O
,	O
change	O
font	O
size	O
,	O
background	O
color	O
,	O
etc	O
.	O
)	O
</s>
<s>
Control	O
HTML5	B-Application
audio	O
and	O
video	O
playback	O
parameters	O
such	O
as	O
speed	O
,	O
position	O
,	O
toggling	O
looping	B-Application
,	O
and	O
showing/hiding	O
playback	O
controls	O
,	O
the	O
first	O
of	O
which	O
can	O
be	O
adjusted	O
beyond	O
HTML5	B-Application
players	O
 '	O
typical	O
range	O
setting	O
.	O
</s>
<s>
"	O
Installation	O
"	O
of	O
a	O
bookmarklet	B-Language
is	O
performed	O
by	O
creating	O
a	O
new	O
bookmark	O
,	O
and	O
pasting	O
the	O
code	O
into	O
the	O
URL	O
destination	O
field	O
.	O
</s>
<s>
Alternatively	O
,	O
if	O
the	O
bookmarklet	B-Language
is	O
presented	O
as	O
a	O
link	O
,	O
under	O
some	O
browsers	B-Application
it	O
can	O
be	O
dragged	O
and	O
dropped	O
onto	O
the	O
bookmark	O
bar	O
.	O
</s>
<s>
The	O
bookmarklet	B-Language
can	O
then	O
be	O
run	O
by	O
loading	O
the	O
bookmark	O
normally	O
.	O
</s>
<s>
This	O
example	O
bookmarklet	B-Language
performs	O
a	O
Wikipedia	O
search	O
on	O
any	O
highlighted	O
text	O
in	O
the	O
web	B-Application
browser	I-Application
window	O
.	O
</s>
<s>
In	O
normal	O
use	O
,	O
the	O
following	O
JavaScript	B-Language
code	O
would	O
be	O
installed	O
to	O
a	O
bookmark	O
in	O
a	O
browser	B-Application
bookmarks	O
toolbar	O
.	O
</s>
<s>
From	O
then	O
on	O
,	O
after	O
selecting	O
any	O
text	O
,	O
clicking	O
the	O
bookmarklet	B-Language
performs	O
the	O
search	O
.	O
</s>
