Knowledge (XXG)

User:Wouterstomp/Bookmarklet

Source 📝

62:
w=open('http://diberri.crabdance.com/cgi-bin/templatefiller/index.cgi?type=pubmed_id&id='%20+%20pmid,'add','width=800,height=300,scrollbars,resizable');if(drugbankid) w=open('http://diberri.crabdance.com/cgi-bin/templatefiller/index.cgi?type=drugbank_id&id=DB'+drugbankid+'&vertical=1','add','width=800,height=300,scrollbars,resizable');if(hgncid) w=open('http://diberri.crabdance.com/cgi-bin/templatefiller/index.cgi?&type=hgnc_id&id='+hgncid+'&vertical=1','add','width=800,height=300,scrollbars,resizable');if(pmcartid) w=open('http://diberri.crabdance.com/cgi-bin/templatefiller/index.cgi?type=pubmedcentral_id&id='+pmcartid,'add','width=800,height=300,scrollbars,resizable');if(pcid) w=open('http://diberri.crabdance.com/cgi-bin/templatefiller/index.cgi?type=pubchem_id&id='%20+%20pmid,'add','width=800,height=300,scrollbars,resizable');})();
74:
javascript:s='';function%20gS(w){for(var%20i=0;i<w.length;i++){gS(w.frames)};try{s+=w.window.getSelection()}catch(e){try{s+=w.document.selection.createRange().text}catch(e){s+=''}}}gS(top);{void(window.open('http://diberri.crabdance.com/cgi-bin/templatefiller/index.cgi?type=pubmed_id&id='+s,'diberri',''))}
61:
javascript:(function(){var url = location.href;var pmid = url.match(/\/pubmed\/(\d+)/);var drugbankid = url.match(/drugs\/DB(\d+)/);var hgncid = url.match(/hgnc_id=(\d+)/);var pmcartid = url.match(/artid=(\d+)/);var pcid = url.match(/cid=(\d+)/);if(pmid)
45:
javascript:(function(){var url = location.href;var pmid = url.match(/\/pubmed\/(\d+)/);if( pmid ) w=open('http://diberri.crabdance.com/cgi-bin/templatefiller/index.cgi?type=pubmed_id&id=' + pmid,'add','width=800,height=300,scrollbars,resizable');})();
50:
When the Bookmarklet is clicked whilst on a PubMed abstract page, it will open a new window with the properly formatted wikipedia citation for the article. The
26:
To use Wouterstomp's handy bookmarklet that uses Diberri's tool to make a wikipedia reference when used on a PubMed abstract page, do the following:
57:
Here is an experimental improved version which also works on drugbank, hgnc, pubmed central and pubchem pages:
66:
For generating a citation from a pmid selected in the text of another webpage (adapted from scripts
17: 67: 43:
Paste across to the URL box the following javascript line in its entirety:
37:
Then right click on the bookmark just created and select
30:Create a bookmark within Internet Explorer (i.e. 54:template may now be copied and pasted across. 8: 32:Favorites >> Add to Favorites... 7: 24: 1: 89: 34:) with a suitable name. 52:{ {cite journal} } 80: 18:User:Wouterstomp 88: 87: 83: 82: 81: 79: 78: 77: 22: 21: 20: 12: 11: 5: 86: 84: 48: 47: 41: 35: 23: 15: 14: 13: 10: 9: 6: 4: 3: 2: 85: 76: 75: 71: 69: 64: 63: 58: 55: 53: 46: 42: 40: 36: 33: 29: 28: 27: 19: 73: 72: 65: 60: 59: 56: 51: 49: 44: 38: 31: 25: 39:Properties 16:< 68:here 70:):

Index

User:Wouterstomp
here

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.