In Firefox make a bookmark using this script. Then find it in the Bookmarks menu. Right click on it, choose properties. Uncheck the checkbox labeled:
Load this bookmark in the sidebar
As to your other question, %20 is usually a valid stand in for a space character in a URL. I'm uncertain of your overall setup or of the amount of control we can exert over the script.
The two obvious choices would be:
- Get it to stop using %20
- Use a different delimiter in the place name something other than space, ie: new_york_city
If it's not too much trouble to implement, #2 would be more certain. However, %20 is simply the escaped version of space for URL's. We could try (addition highlighted):
Code:
<script type="text/javascript">
/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
/* Modified to support Opera */
function bookmarksite(title,url){
url = unescape(url);
if (window.sidebar) // firefox
window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
var elem = document.createElement('a');
elem.setAttribute('href',url);
elem.setAttribute('title',title);
elem.setAttribute('rel','sidebar');
elem.click();
}
else if(document.all)// ie
window.external.AddFavorite(url, title);
}
</script>
Bookmarks