3
edits
No edit summary |
(Fix for recent site changes which broke decimal vote) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 17: | Line 17: | ||
// @namespace lupin_sanseis_scripts | // @namespace lupin_sanseis_scripts | ||
// @description selects all files of a release group, replaces vote dropdowns with textfields | // @description selects all files of a release group, replaces vote dropdowns with textfields | ||
// @include http://anidb. | // @include http://anidb.net/perl-bin/animedb.pl?show=anime&* | ||
// ==/UserScript== | // ==/UserScript== | ||
Line 32: | Line 32: | ||
function decimal_vote() { | function decimal_vote() { | ||
// replace vote-dropdowns with textfields | // replace vote-dropdowns with textfields | ||
var selects = document.evaluate("//select[ | var selects = document.evaluate("//select[@name = 'votea.rate']", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); | ||
for (var i = 0; i < selects.snapshotLength; i++) { | for (var i = 0; i < selects.snapshotLength; i++) { | ||
var textfield = document.createElement('input'); | var textfield = document.createElement('input'); |
edits