It was line 88 for me, not line 90. Specifically, the line to be replaced was this one:
rnrse = newres.match(/'_rnr_se': '([^']+)'/)[1]
Also, to get the script working in ruby 1.9, remove -rjcode
from the first line and add
require 'jcode' if RUBY_VERSION < '1.9'
on, say, line 8. (For an explanation, see this.]
Thanks for the clarification, added the details to the main post!