I'm trying to make a javascript bookmarklet that will act as a highlighter, changing the background of selected text on a webpage to yellow when the bookmarklet is pressed.  I'm using the following code to get the selected text, and it work...
I want to find or make a bookmarklet that will validate the html content of a currently viewed page using the W3C HTML 5 validator.  I have found two bookmarklets and am trying to get one to behave a bit like one and a bit like the other, however I a...
I have this little bookmarklet:  javascript:document.getElementsByTagName("div")[0].innerHTML+="Chuck Norris";   Now it's obviously supposed to take the very first div on the page, and add Chuck Norris into it.  Instead, when past...
I want to create a Delicious bookmarklet in Firefox that bookmarks the current page with a predefined tag.  For proof of concept, if I enter this url, it works:  https://john:[email protected]/v1/posts/add?url=http://www.google.com&     descrip...
By searching here, I now have two bookmarklets, which switch from/to HTTP/HTTPS :-  javascript:location=location.href.replace(/http:/g,"https:")   And ...  javascript:location=location.href.replace(/https:/g,"http:")   But is there a...
In CoffeeScript, though this code is almost identical to JavaScript:  tabs_html = "<div id='nm-container'><ul><li><a href='#tabs-1'>Guidelines</a></li><li><a href='#tabs-2'>T...
This website:  http://nautil.us/  has a really annoying header that is always on screen and won't scroll away.  If I right-click on it and 'inspect element' in firefox, then I find that the css contains "position: fixed;", and if...
I have found two bookmarlets that can take formatted text from the clipboard and fill a form on another page. This works even cross domain and cross browsers.  The problem is that bookmarklet "B" cannot fill the same form that "A" can...
Is there any way to run a bookmarklet on an iFrame which is from a different domain?  For example, I have a page loaded from http://example.com, which has an iFrame whose source is set to http://example2.com. When I run the bookmarklet, it is always...
I'm running JSLint checks in Rhino using jslintant.js.   I found something a bit strange and was wondering if I could gets some input from other programmers. Basically, the following line gets a JSLint 'Script URL' error:  var a = '&l...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.