kuy / Wedata Manager

This greasemonkey script works on Wedata and provide various enhancement for editing database items from website.

Clone this repository (size: 24.1 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/kuy/wedata-manager/

Changed (Δ395 bytes):

raw changeset »

wedata_manager.user.js (12 lines added, 2 lines removed)

Up to file-list wedata_manager.user.js:

9
9
10
10
(function(){
11
11
12
// Description {{{
12
13
// This script consists of some components:
13
14
//   [Boot] launch the component by matching URL
14
15
//   [Item] tweak for item page: http://wedata.net/items/28198
16
// }}}
17
18
// Todo {{{
19
//                 [Item] Enables Ajax-ed editing
20
//                 [ItemList] Adds operation link per items (Edit, Delete, Duplicate)
21
//                 [ItemList] Enables in-place editing (like Flickr)
22
//                 [ItemList] Shows a graph image in right side
23
//                 [NewItem] Add more forms for creating multiple items at once
24
// }}}
15
25
16
26
// Boot {{{
17
27
var Boot = function(){
@@ -60,8 +70,6 @@ var boot = new Boot();
60
70
boot.init();
61
71
// }}}
62
72
63
})();
64
65
73
// Utils {{{
66
74
function $x(x,c){c=c||document;var res=document.evaluate(x,c,null,4,null);
67
75
for(var i,nodes=[];i=res.iterateNext();nodes.push(i));return nodes}
@@ -69,4 +77,6 @@ function $n(t,o,c){var e = document.crea
69
77
{e[k]=o[k]}}if(c){c.forEach(function(ch){e.appendChild(ch)})}return e}
70
78
// }}}
71
79
80
})();
81
72
82
// vim: set fdm=marker sw=4 ts=4 et: