<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.wiki.mohid.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=89.181.55.110&amp;*</id>
		<title>MohidWiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://www.wiki.mohid.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=89.181.55.110&amp;*"/>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Special:Contributions/89.181.55.110"/>
		<updated>2026-04-05T02:06:32Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=Bookmarklets&amp;diff=76</id>
		<title>Bookmarklets</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Bookmarklets&amp;diff=76"/>
				<updated>2008-01-03T02:01:40Z</updated>
		
		<summary type="html">&lt;p&gt;89.181.55.110: /* &amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;javascript:void(str=prompt(%22Xspf playlist url:#,#%22));if(str){location.href='http://www.w3.org/2000/06/webdata/xslt?xslfile=http://pointpt.user.openhosting.com/~guillaume/xspf2html&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Bookmarklets]] are little javascript one-liners that aim to compose a more or less complex [http://en.wikipedia.org/wiki/Url url] often using the [http://en.wikipedia.org/wiki/Html html] [http://en.wikipedia.org/wiki/Document_Object_Model DOM] structure.&lt;br /&gt;
&lt;br /&gt;
==Samples==&lt;br /&gt;
Beware:&lt;br /&gt;
#These javascripts bookmarklets are intended to be condensed into one-liners. &lt;br /&gt;
#Failing to do so, will most probably result in a mal-functioning of the bookmarklet.&lt;br /&gt;
#The &amp;quot;&amp;lt;code&amp;gt;...&amp;lt;/code&amp;gt;&amp;quot; notation is used to annotate code wrapping. Please remeber to remove it along with the linefeed when writing the script.&lt;br /&gt;
&lt;br /&gt;
===Wikipedia search===&lt;br /&gt;
This script will pop-up a textbox prompting the user for a keyword and, upon submission, will return the corresponding wikipedia article (or the results listing).&lt;br /&gt;
 javascript:( &lt;br /&gt;
     function(){ &lt;br /&gt;
         q=document.getSelection();&lt;br /&gt;
         if(!q) q=prompt('Wikipedia:');&lt;br /&gt;
         if(q) location.href='http://en.wikipedia.org/w/wiki.phtml?search=' + escape(q); &lt;br /&gt;
     }&lt;br /&gt;
 )()&lt;br /&gt;
&lt;br /&gt;
===Google Local Domain Search===&lt;br /&gt;
This script will pop-up a textbox prompting the user to enter a keyword and, upon submission, will google a sitesearch within the current domain.&lt;br /&gt;
 javascript:&lt;br /&gt;
     void(&lt;br /&gt;
         str = prompt(&amp;quot;Search for:#,#&amp;quot;)&lt;br /&gt;
     );&lt;br /&gt;
     if(str){&lt;br /&gt;
        location.href='http://www.google.com/search? ...&lt;br /&gt;
        source=ig ...&lt;br /&gt;
        &amp;amp;hl=en ...&lt;br /&gt;
        &amp;amp;as_sitesearch='+encodeURIComponent(location.href)+' ...&lt;br /&gt;
        &amp;amp;q='+escape(str).split(&amp;quot; &amp;quot;).join(&amp;quot;+&amp;quot;)+' ...&lt;br /&gt;
        &amp;amp;btnG=Google+Search';&lt;br /&gt;
     }&lt;br /&gt;
&lt;br /&gt;
===Google MP3 music search===&lt;br /&gt;
This script will pop-up a textbox prompting the user to enter a keyword and, upon submission, will google applying filters that will probably return only indexes of mp3 files.&lt;br /&gt;
&lt;br /&gt;
 javascript:&lt;br /&gt;
     void(&lt;br /&gt;
         str=prompt(&amp;quot;Search for:#,#&amp;quot;)&lt;br /&gt;
     );&lt;br /&gt;
     if(str){&lt;br /&gt;
         location.href='http://www.google.com/search?hl=en ...&lt;br /&gt;
         &amp;amp;q=-inurl:(html|htm|php|asp|pl|cgi)+&amp;quot;index+of/&amp;quot; ...&lt;br /&gt;
             +mp3+'+escape(str).split(&amp;quot; &amp;quot;).join(&amp;quot;+&amp;quot;)+'&amp;amp;btnG=Search';&lt;br /&gt;
     }&lt;br /&gt;
&lt;br /&gt;
===[http://en.wikipedia.org/wiki/Del.icio.us Del.icio.us] MP3 player button===&lt;br /&gt;
This script will look throughout the DOM structure of the current document and add an audio player button in front of every mp3 filetype link.&lt;br /&gt;
&lt;br /&gt;
 javascript:(&lt;br /&gt;
     function(){&lt;br /&gt;
         var o = document.createElement(&amp;quot;script&amp;quot;);&lt;br /&gt;
         o.type = &amp;quot;text/javascript&amp;quot;;&lt;br /&gt;
         o.src = &amp;quot;http://images.del.icio.us/static/js/playtagger.js&amp;quot;;&lt;br /&gt;
         o.onload = function(){&lt;br /&gt;
             Delicious.Mp3.go();&lt;br /&gt;
         };&lt;br /&gt;
         document.body.appendChild(o);&lt;br /&gt;
     }&lt;br /&gt;
 )()&lt;br /&gt;
&lt;br /&gt;
===[http://en.wikipedia.org/wiki/Del.icio.us Del.icio.us] Tagger===&lt;br /&gt;
This script will pop-up a textbox prompting the user to enter tags and, upon submission, will post the current url and respective tags to [http://en.wikipedia.org/wiki/Del.icio.us del.icio.us].&lt;br /&gt;
&lt;br /&gt;
 javascript:&lt;br /&gt;
     void(&lt;br /&gt;
         str=prompt(&amp;quot;Tag this page:#,#&amp;quot;)&lt;br /&gt;
     );&lt;br /&gt;
     if(str){&lt;br /&gt;
         location.href='http://del.icio.us/USERNAME? ...&lt;br /&gt;
         url='+encodeURIComponent(location.href)+' ...&lt;br /&gt;
         &amp;amp;title='+encodeURIComponent(document.title)+ ...&lt;br /&gt;
         '&amp;amp;v=3' ...&lt;br /&gt;
         &amp;amp;tags='+escape(str).split(&amp;quot; &amp;quot;);&lt;br /&gt;
     }&lt;br /&gt;
''NOTE: would be cool if only somebody found out a way to automatically save the results to del.icio.us.''&lt;br /&gt;
&lt;br /&gt;
===[http://en.wikipedia.org/wiki/Del.icio.us Del.icio.us] search===&lt;br /&gt;
This script will pop-up a textbox prompting the user to enter tags and, upon submission, will the user's [http://en.wikipedia.org/wiki/Del.icio.us del.icio.us] bookmarks.&lt;br /&gt;
&lt;br /&gt;
 javascript:&lt;br /&gt;
     void(&lt;br /&gt;
         str=prompt(&amp;quot;Search for in del.icio.us:#,#&amp;quot;)&lt;br /&gt;
     );&lt;br /&gt;
     if(str){&lt;br /&gt;
         location.href='http://del.icio.us/search/? ...&lt;br /&gt;
             fr=del_icio_us ...&lt;br /&gt;
             &amp;amp;p='+escape(str).split(&amp;quot; &amp;quot;)+' ...&lt;br /&gt;
             &amp;amp;type=user';&lt;br /&gt;
     }&lt;br /&gt;
&lt;br /&gt;
===MailTo===&lt;br /&gt;
This script will pop-up a textbox prompting for a message body that will be sent via email to a pre-scripted email address with a predefined subject.&lt;br /&gt;
 javascript:&lt;br /&gt;
     void(&lt;br /&gt;
         str=prompt(&amp;quot;Write message:#,#&amp;quot;)&lt;br /&gt;
     );&lt;br /&gt;
     if(str){&lt;br /&gt;
         location.href='mailto:dumbdumb@twitty.com? ...&lt;br /&gt;
             subject=twitter ...&lt;br /&gt;
             &amp;amp;body=well this is my message!';&lt;br /&gt;
     }&lt;br /&gt;
&lt;br /&gt;
Here's the html version:&lt;br /&gt;
 &amp;lt;a href=&amp;quot;mailto:dumbdumb@twitty.com?subject=twitter&amp;amp;body=well this is my message!&amp;quot;&amp;gt;MailTwit&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;javascript:void(str=prompt(%22Seeqpod playlist id:#,#%22));if(str){location.href='http://www.w3.org/2000/06/webdata/xslt?xslfile=http://pointpt.user.openhosting.com/~guillaume/xspf2html.xsl&amp;amp;xmlfile=http://www.seeqpod.com/api/music/getPlaylist?playlist_id='+escape(str).split(%22 %22).join(%22+%22)+'&amp;amp;transform=Submit';}&amp;quot;&amp;gt;Seeqpod&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;===&lt;br /&gt;
 javascript:&lt;br /&gt;
    void(&lt;br /&gt;
        str = prompt(&amp;quot;Seeqpod playlist id:#,#&amp;quot;)&lt;br /&gt;
    );&lt;br /&gt;
    if(str){&lt;br /&gt;
       location.href='http://www.w3.org/2000/06/webdata/xslt...&lt;br /&gt;
 ?xslfile=http://pointpt.user.openhosting.com/~guillaume/xspf2html.xsl...&lt;br /&gt;
 &amp;amp;xmlfile=http://www.seeqpod.com/api/music/getPlaylist?playlist_id='+escape(str).split(&amp;quot; &amp;quot;).join(&amp;quot;+&amp;quot;)+'....&lt;br /&gt;
 &amp;amp;transform=Submit';&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;htm&amp;gt;&amp;lt;a href=&amp;quot;javascript:void(str=prompt(%22Xspf playlist url:#,#%22));if(str){location.href='http://www.w3.org/2000/06/webdata/xslt?xslfile=http://pointpt.user.openhosting.com/~guillaume/xspf2html.xsl&amp;amp;xmlfile='+escape(str).split(%22 %22).join(%22+%22);}&amp;quot;&amp;gt;xspf2html&amp;lt;/a&amp;gt;&amp;lt;/htm&amp;gt;===&lt;br /&gt;
 javascript:&lt;br /&gt;
    void(&lt;br /&gt;
        str = prompt(&amp;quot;Playlist url:#,#&amp;quot;)&lt;br /&gt;
    );&lt;br /&gt;
    if(str){&lt;br /&gt;
       location.href='http://www.w3.org/2000/06/webdata/xslt...&lt;br /&gt;
 ?xslfile=http://pointpt.user.openhosting.com/~guillaume/xspf2html.xsl...&lt;br /&gt;
 &amp;amp;xmlfile='+escape(str).split(&amp;quot; &amp;quot;).join(&amp;quot;+&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
==External References==&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Javascript Javascript Wikipedia],&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Bookmarklet Bookmarklet Wikipedia],&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Greasemonkey Greasemonkey Wikipedia].&lt;br /&gt;
&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
[[Category:Programming]]&lt;br /&gt;
[[Category:Script]]&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:Windows]]&lt;/div&gt;</summary>
		<author><name>89.181.55.110</name></author>	</entry>

	</feed>