akngs/ecogwiki — pull request #15 by jangxyz (2013-12-20 09:25:50+00:00)
Title: ADD body placeholder with body= parameter on request

This adds a feature to pre-write the text in body with GET request. Since this is actually a feature request, feel free to discuss about this feature here.

This makes the following URL possible

http://www.ecogwiki.com/new_feature?view=edit&body=a%20new%20new%20feature

which can let a direct URL with prewritten text possible.

You can even make bookmarklets like these:

javascript:(function(){var d=new Date();var s=('스크랩/'+d.getFullYear()+"-"+("0"+(d.getMonth()+1)).replace(/^0(..)$/, "$1")+"-"+("0"+d.getDate()).replace(/^0(..)$/, "$1")+'/'+document.title).replace(/ /g, '_');var b='출처: '+location.href;window.open('http://ecogwiki-jangxyz.appspot.com/'+encodeURI(s)+'?view=edit&body='+encodeURIComponent(b),'_blank');})()

If you think this is too hacky, check this poll about this feature:

https://docs.google.com/forms/d/10-I7z8yc46BTUUT9AI-hT7S_yK0kOML5z2gcL7z3ZfY/viewform?entry_2025209923=then%20think%20again

- - -
commit log:

ADD body placeholder with body= parameter on request

- only if it is an empty page (rev=0)

wonderful things can happen :)