GM_xmlhttpRequest loses data in jQuery .each() statement
问题 I've some pages with URL like this: www.example.com/index.php?id={a number} and each page has the same <select> element: <select id="foo"> <option value="1">Page1 <option value="2">Page2 <option value="3">Page3 <option value="4">Page4 </select> and each page has a <ul> element with different li values: <ul id="other"> <li class="var1">some_value1_page[n]</li> <li class="var2">some_value2_page[n]</li> </ul> The Greasemonkey script takes the <select> element (in any page) and gets the 'id' page