Advertisement
Guest User

IFDB Twine pre-filler

a guest
Dec 27th, 2013
443
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. This JS bookmarklet is designed to partially automate the submission of free English online Twine games to IFDB.
  3.  
  4. It asks the user for four values ("Title", "Author", "Year" and "URL") and pre-fills the IFDB submission form (http://ifdb.tads.org/editgame?id=new) with the following values:
  5.  
  6. Title: the given title
  7. Author: the given author name
  8. First publication date: the given time
  9. License Type: Free
  10. Development System: Twine
  11. Language: en
  12. Download Links: one link of type HTML, to the game's URL, with the text "Play online".
  13.  
  14. The optional Description is left blank, however. Also, it is recommended that you tag the entry with "Twine" after it's submitted (and you can't apply tags during the submission process).
  15. */
  16.  
  17. javascript:var name = prompt("Title?"), author = prompt("Author?"), year = prompt("Date (dd-Mon-yyyy) or year (yyyy) published?"), site = prompt("Game URL?"), $ = document.getElementById.bind(document); $("title").value = name; $("eAuthor").value = author; $("published").value = year; $("license").value = "Free"; $("system").value = "Twine"; $("language").value = "en"; $("language").value = "en"; gfInsRow('linkModel',0); $("linkurl0").value = site; $("linktitle0").value = "Play online"; $("linkfmt0").value = 35;void 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement