Before writing an article on how to write a chrome for Watercress FM lyrics plug-in, Luoluo Cow told me, in fact, can be achieved with bookmarklet.
Mr. Nanyi a blog about how to write bookmarklet, so I don't talk much about it.
I live with patriots (@buptpatriot), every day on Google, its homepage has always been the American Google:
Well, today I will use bookmarklet to change Google's logo.
The document.createelement () method and the Document.appendchild () method for JavaScript are used here.
My bookmarklet (very simple):
JavaScript: (function ()%7bjavascript%3avar%20my_div%20%3d%20document.createelement (' div ')%3bmy_div.style.width% 3D ' 600px '%3bmy_div.style.height%3d ' 217px '%3bmy_div.style.backgroundcolor%20%3d%20 ' Red '%3bmy_div.style.zindex% 20%3d%20 '%3bmy_div.style.position%20%3d%20 ' relative '%3bmy_div.style.margin%3d ' -600px%20auto '%3Bmy_ Div.innerhtml%3d%22%3cimg%20src%3d ' http%3a%2f%2fwww.worldatlas.com%2fwebimage%2fflags%2fcountrys%2fzzzflags% 2fcnlarge.gif '%20width%3d600px%20height%3d217px%5c%3e%22%3bdocument.body.appendchild (my_div)%7D) ()
"Attached" bookmarklet Online generator: http://mrcoles.com/bookmarklet/
Save a book signing, open Google, click on this bookmark, oh, it works.--> to the Patriots.