Advertisement
Guest User

Untitled

a guest
Oct 18th, 2021
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.27 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Sell Dupes
  3. // @namespace ttadvanceSell
  4. // @description Sell Dupes Easily
  5. // @match https://www.ttadvance.net/sell*
  6. // @version 0.63
  7. // @grant none
  8. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js
  9. // ==/UserScript==
  10.  
  11. function loadFilters(){
  12. var sf = getDefaultFilter();
  13. var sli = localStorage.getItem(sl);
  14. var ssf = JSON.parse(sli);
  15. for(var f in ssf) sf[f] = ssf[f];
  16. return sf;
  17. }
  18.  
  19. function saveFilters(){
  20. var sf = getFilters();
  21. localStorage.setItem(sl, JSON.stringify(sf));
  22. }
  23.  
  24. function clearFilters(){
  25. if(!window.confirm('Clear filters?')) return;
  26. localStorage.removeItem(sl);
  27. var sf = getDefaultFilter();
  28. var i, is = document.getElementById("filters").getElementsByTagName("input");
  29. for(i=0; i<is.length; i++){
  30. if(sf[is[i].name]) is[i].checked = true;
  31. else is[i].checked = false;
  32. }
  33. document.getElementById("keep").value = sf["keep"];
  34. document.getElementById("customFilter").value = sf["custom"];
  35. updateViewDupes();
  36. }
  37.  
  38. function addJavaScript(str){
  39. var script = document.createElement("script");
  40. script.setAttribute("type", "application/javascript");
  41. script.textContent = str;
  42. document.head.appendChild(script);
  43. }
  44.  
  45. function createInput(type, name, value){
  46. var input = document.createElement("input");
  47. input.setAttribute("type", type);
  48. input.setAttribute("name", name);
  49. input.setAttribute("value", value);
  50. return input;
  51. }
  52.  
  53. function createCheckbox(name, checked){
  54. var input = document.createElement("input");
  55. input.setAttribute("type", "checkbox");
  56. input.setAttribute("name", name);
  57. return input;
  58. }
  59.  
  60. function createTh(str){
  61. var th = document.createElement("th");
  62. th.textContent = str;
  63. return th;
  64. }
  65.  
  66. function createTd(str){
  67. var td = document.createElement("td");
  68. td.textContent = str;
  69. return td;
  70. }
  71.  
  72. function createImg(src){
  73. var img = document.createElement("img");
  74. img.setAttribute("src", src);
  75. return img;
  76. }
  77.  
  78. function createA(url){
  79. var a = document.createElement("a");
  80. a.setAttribute("href", url);
  81. return a;
  82. }
  83.  
  84. function createTdAImg(url, img){
  85. var td = document.createElement("td");
  86. var a = createA(url);
  87. a.appendChild(createImg(img));
  88. td.appendChild(a);
  89. return td;
  90. }
  91.  
  92. function getFilters(){
  93. var i, t, sf = {}, is = document.getElementById("filters").getElementsByTagName("input");
  94. for(i=0; i<is.length; i++) sf[is[i].name] = is[i].checked;
  95. t = parseInt(document.getElementById("keep").value);
  96. if(t) sf["keep"] = t; else sf["keep"] = 1;
  97. sf["custom"] = document.getElementById("customFilter").value;
  98. return sf;
  99. }
  100.  
  101. function loadDupes(){
  102. var i, id, amount, img;
  103. var main = document.getElementById("Main");
  104. var cop = main.getElementsByTagName("a");
  105. for(i=0; i<cop.length; i++){
  106. id = parseInt(cop[i].getAttribute("href").substr(22));
  107. amount = parseInt(cop[i].nextSibling.data.substring(2));
  108. img = cop[i].firstChild.getAttribute("src");
  109. dupes.push({"id": id, "amount": amount, "img": img, "price": prices[id]});
  110. }
  111. }
  112.  
  113. function getCards(){
  114. var i, id, amount, img, cards = [];
  115. var cf = getCardFilter();
  116. var keep = parseInt(document.getElementById("keep").value);
  117. if(!keep) keep = 1;
  118. for(i=0; i<dupes.length; i++){
  119. id = dupes[i]["id"];
  120. if(cf[id]) continue;
  121. amount = dupes[i]["amount"] - keep;
  122. if(amount<=0) continue;
  123. img = dupes[i]["img"];
  124. cards.push({"id": id, "amount": amount, "img": img, "price": prices[id]});
  125. }
  126. return cards;
  127. }
  128.  
  129. function getDupeTable(){
  130. var table = document.createElement("table");
  131. table.setAttribute("id", "dupetable");
  132. var tr = document.createElement("tr");
  133. tr.appendChild(createTh("id"));
  134. tr.appendChild(createTh("img"));
  135. tr.appendChild(createTh("amount"));
  136. tr.appendChild(createTh("price"));
  137. table.appendChild(tr);
  138. return table;
  139. }
  140.  
  141. function getCardTr(card){
  142. var url = "https://www.ttadvance.net/selcard.php?card_iden="+card["id"];
  143. var tr = document.createElement("tr");
  144. tr.appendChild(createTd(card["id"]));
  145. tr.appendChild(createTdAImg(url, card["img"]));
  146. tr.appendChild(createTd(card["amount"]));
  147. tr.appendChild(createTd(card["price"]));
  148. return tr;
  149. }
  150.  
  151. function addCardsTable(table){
  152. var i, cards = getCards();
  153. for(i=0; i<cards.length; i++) table.appendChild(getCardTr(cards[i]));
  154. return table;
  155. }
  156.  
  157. function viewDupes(){
  158. var vdb = document.getElementById("viewDupes");
  159. var dupeTable = document.getElementById("dupetable");
  160. if(dupeTable){
  161. document.getElementById("Main").parentElement.removeChild(dupeTable);
  162. vdb.setAttribute("value", "view dupes");
  163. }else{
  164. document.getElementById("Main").parentElement.appendChild(addCardsTable(getDupeTable()));
  165. vdb.setAttribute("value", "hide dupes");
  166. }
  167. }
  168.  
  169. function updateViewDupes(){
  170. var dupeTable = document.getElementById("dupetable");
  171. if(dupeTable){
  172. document.getElementById("Main").parentElement.removeChild(dupeTable);
  173. document.getElementById("Main").parentElement.appendChild(addCardsTable(getDupeTable()));
  174. }
  175. updateSellDupesButton();
  176. }
  177.  
  178. function createButton(str, event){
  179. var button = document.createElement("input");
  180. button.setAttribute("type", "button");
  181. button.setAttribute("value", str);
  182. button.addEventListener("click", event, true);
  183. return button;
  184. }
  185.  
  186. function createFilterInput(name, checked){
  187. var input = createCheckbox(name, checked);
  188. input.setAttribute("id", name);
  189. input.checked = checked;
  190. input.addEventListener("change", updateViewDupes, true);
  191. return input;
  192. }
  193.  
  194. function createFilterInputsLine(i, s, td, sf){
  195. for(; i<=s; i++){
  196. if(sf[filter[i]]) td.appendChild(createFilterInput(filter[i], true));
  197. else td.appendChild(createFilterInput(filter[i], false));
  198. td.appendChild(document.createTextNode(filter[i]+" "));
  199. }
  200. }
  201.  
  202. function createFilterInputs(){
  203. var td = document.createElement("td");
  204. var sf = loadFilters();
  205. createFilterInputsLine(0, 9, td, sf);
  206. td.appendChild(document.createElement("br"));
  207. createFilterInputsLine(10, 20, td, sf);
  208. td.appendChild(document.createElement("br"));
  209. createFilterInputsLine(21, 27, td, sf);
  210. return td;
  211. }
  212.  
  213. function getDefaultFilter(){
  214. return {"unlock": true, "semi": true, "rare": true, "quest": true, "SE": true, "keep": 1, "custom": []};
  215. }
  216.  
  217. function getCardFilter(){
  218. var sf = getFilters(), i, t, cf = [];
  219. for(i=1; i<=2494; i++) cf[i] = false;
  220. if(sf["FFO"]) for(i=1; i<=110; i++) cf[i] = true;
  221. if(sf["FFIV"]) for(i=111; i<=220; i++) cf[i] = true;
  222. if(sf["FFV"]) for(i=221; i<=330; i++) cf[i] = true;
  223. if(sf["FFVI"]) for(i=331; i<=440; i++) cf[i] = true;
  224. if(sf["FFVII"]) for(i=441; i<=550; i++) cf[i] = true;
  225. if(sf["FFVIII"]) for(i=551; i<=660; i++) cf[i] = true;
  226. if(sf["FFVIIIr"]) for(i=1343; i<=1452; i++) cf[i] = true;
  227. if(sf["FFIX"]) for(i=661; i<=770; i++) cf[i] = true;
  228. if(sf["FFX"]) for(i=771; i<=880; i++) cf[i] = true;
  229. if(sf["X2"]) for(i=1783; i<=1892; i++) cf[i] = true;
  230. if(sf["FFXI"]) for(i=1673; i<=1782; i++) cf[i] = true;
  231. if(sf["FFXII"]) for(i=1901; i<=2010; i++) cf[i] = true;
  232. if(sf["FFXIII"]) for(i=2011; i<=2120; i++) cf[i] = true;
  233. if(sf["FFXIV"]) for(i=2275; i<=2384; i++) cf[i] = true;
  234. if(sf["FFXV"]) for(i=2495; i<=2604; i++) cf[i] = true;
  235. if(sf["FFT"]) for(i=881; i<=990; i++) cf[i] = true;
  236. if(sf["MQ"]) for(i=2385; i<=2494; i++) cf[i] = true;
  237. if(sf["CT"]) for(i=1101; i<=1210; i++) cf[i] = true;
  238. if(sf["DL"]) for(i=991; i<=1100; i++) cf[i] = true;
  239. if(sf["DQ"]) for(i=1453; i<=1562; i++) cf[i] = true;
  240. if(sf["SIII"]) for(i=1563; i<=1672; i++) cf[i] = true;
  241. if(sf["S5"]) for(i=2132; i<=2241; i++) cf[i] = true;
  242. if(sf["XG"]) for(i=1211; i<=1320; i++) cf[i] = true;
  243. if(sf["unlock"]){
  244. var ts = [85,207,316,426,537,642,757,975,1222,826,71,1071,970,982,106,218,321,430,540,764,561,127,689,800,1235,265,950,79,543,1775,160,378,623,304,860];
  245. for(i=0; i<ts.length; i++) cf[ts[i]] = true;
  246. }
  247. if(sf["semi"]){
  248. var ts = [20,429,547,861,979,1395,1549,1550,1591,1672,2006,2107,2241,2351,2384,2572];
  249. for(i=0; i<ts.length; i++) cf[ts[i]] = true;
  250. }
  251. if(sf["rare"]){
  252. var ts = [165,214,216,264,534,598,648,657,658,769,848,1059,1097,1163,1259,1315,1436,1442,1447,1622,1745,1826,1861,1971,2056,2116,2138,2230,2373,2416,2600];
  253. for(i=0; i<ts.length; i++) cf[ts[i]] = true;
  254. }
  255. if(sf["quest"]){
  256. var ts = [1893,1894,1895,1896,1897,1898,1899,1900];
  257. for(i=0; i<ts.length; i++) cf[ts[i]] = true;
  258. }
  259. if(sf["SE"]){
  260. for(i=1321; i<=1342; i++) cf[i] = true;
  261. for(i=2121; i<=2131; i++) cf[i] = true;
  262. for(i=2242; i<=2274; i++) cf[i] = true;
  263. }
  264. var t, custom = sf["custom"].split(/[^\d]+/);
  265. for(i=0; i<custom.length; i++){
  266. t = parseInt(custom[i]);
  267. if(t && t<=2494) cf[t] = true;
  268. }
  269. return cf;
  270. }
  271.  
  272. function createKeepInput(amount){
  273. var input = createInput("text", "keep", amount);
  274. input.setAttribute("id", "keep");
  275. input.setAttribute("size", 3);
  276. input.addEventListener("change", updateViewDupes, true);
  277. return input;
  278. }
  279.  
  280. function createCustomFilterInput(old){
  281. var i, str = "", first = true;
  282. for(i=0; i<old.length; i++) if(first) str += old[i]; else str += "," + old[i];
  283. var input = createInput("text", "customFilter", str);
  284. input.setAttribute("id", "customFilter");
  285. input.setAttribute("size", "10");
  286. input.addEventListener("change", updateViewDupes, true);
  287. return input;
  288. }
  289.  
  290. function createFilterLastRow(){
  291. var sf = loadFilters();
  292. var td = document.createElement("td");
  293. td.appendChild(createKeepInput(sf["keep"]));
  294. td.appendChild(document.createTextNode("keep "));
  295. td.appendChild(createCustomFilterInput(sf["custom"]));
  296. td.appendChild(document.createTextNode("custom "));
  297. td.appendChild(createButton("save filters", saveFilters));
  298. td.appendChild(document.createTextNode(" "));
  299. td.appendChild(createButton("clear filters", clearFilters));
  300. return td;
  301. }
  302.  
  303. function createFilterTable(){
  304. var table = document.createElement("table");
  305. var style = "font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 10pt; color: #FFFFFF;";
  306. table.setAttribute("style", style);
  307. var tr = document.createElement("tr");
  308. tr.appendChild(createFilterInputs());
  309. tr.setAttribute("id", "filters");
  310. table.appendChild(tr);
  311. tr = document.createElement("tr");
  312. tr.appendChild(createFilterLastRow());
  313. table.appendChild(tr);
  314. return table;
  315. }
  316.  
  317. function createCSSPopup(selling){
  318. var div = document.createElement("div");
  319. div.setAttribute("style", "position: fixed; width: 320px; height: 180px; margin: auto; top: 0px; right: 0px; bottom: 0px; left: 0px; z-index: 998; background-color: #580001; opacity: .9;");
  320. var divc = document.createElement("div");
  321. divc.setAttribute("style", "text-align: center; height: 180px; line-height: 180px; z-index: 999;");
  322. divc.setAttribute("id", "sellDupesPopup");
  323. divc.appendChild(document.createTextNode("sold 0/" + selling));
  324. div.appendChild(divc);
  325. return div;
  326. }
  327.  
  328. function soldDupe(){
  329. sold++;
  330. sdp.textContent = "sold " + sold + "/" + selling;
  331. if(sold==selling){
  332. setTimeout((()=>{
  333. alert("all " + selling + " dupes sold...\nrefreshing!");
  334. window.location.assign(window.location.href);
  335. }).bind(this),1000)
  336. }
  337. }
  338.  
  339. function sellDupes(){
  340. if(!window.confirm("sell dupes?")) return;
  341. console.log("selling...");
  342. var i, j, amount=0, cards = getCards();
  343. for(i=0; i<cards.length; i++){
  344. amount += cards[i]["amount"];
  345. }
  346. document.body.appendChild(createCSSPopup(amount));
  347. var script = "var sold = 0, selling = " + amount + ", sdp = document.getElementById(\"sellDupesPopup\");";
  348. addJavaScript(script);
  349.  
  350. i = 0;
  351. j = 1;
  352. var intervalId = setInterval((()=>{
  353. if(i === cards.length){
  354. clearTimeout(intervalId);
  355. return;
  356. }
  357. $.post("scard.php?card_iden="+cards[i]["id"], {}, soldDupe);
  358. console.log("Selling " + cards[i].id + " amount " + j);
  359. if(j < cards[i].amount){
  360. j++;
  361. }else{
  362. i++;
  363. j = 1;
  364. }
  365.  
  366. }).bind(this), 3500);
  367. }
  368.  
  369. function createViewDupesButton(){
  370. var button = createButton("view dupes", viewDupes);
  371. button.setAttribute("id", "viewDupes");
  372. return button;
  373. }
  374.  
  375. function getSellDupesButtonName(){
  376. var i, amount=0, price=0, cards = getCards();
  377. for(i=0; i<cards.length; i++){
  378. amount += cards[i]["amount"];
  379. price += cards[i]["price"];
  380. }
  381. return "sell " + amount + " dupes for " + price + " points";
  382. }
  383.  
  384. function updateSellDupesButton(){
  385. document.getElementById("sellDupes").value = getSellDupesButtonName();
  386. }
  387.  
  388. function createSellDupesButton(){
  389. var button = createButton(getSellDupesButtonName(), sellDupes);
  390. button.setAttribute("id", "sellDupes");
  391. return button;
  392. }
  393.  
  394. addJavaScript("var dupes = [];\nvar sl = 'sellDupesFilter'+window.location.href.match(/\\d+/);\nvar filter = ['FFO','FFIV','FFV','FFVI','FFVII','FFVIII','FFVIIIr','FFIX','FFX','X2','FFXI','FFXII','FFXIII','FFXIV','FFXV','FFT','MQ','CT','DL','DQ','SIII','S5','XG','unlock','semi','rare','quest','SE'];\nvar prices = [0,4,4,3,3,4,3,3,4,4,3,4,4,6,5,4,4,4,4,4,199,6,5,5,5,8,5,8,7,5,5,5,8,8,8,8,8,8,10,8,8,8,8,8,8,11,10,11,11,11,10,10,10,10,10,10,16,15,16,15,15,16,17,15,17,15,15,18,18,16,16,16,16,20,18,16,20,16,30,25,25,25,25,30,25,25,25,30,30,43,50,43,43,43,48,53,50,43,43,50,90,98,98,90,98,98,90,90,90,105,98,4,4,3,3,3,3,3,3,4,3,4,4,6,4,4,4,4,4,4,6,4,4,7,5,7,7,5,5,8,7,5,7,7,10,8,10,8,8,8,8,8,8,10,8,10,10,12,11,11,11,10,11,10,10,499,15,15,16,15,15,16,17,16,15,16,15,20,16,18,18,18,16,20,18,18,19,18,28,30,30,28,25,25,25,30,27,25,30,50,43,48,43,43,48,43,50,48,43,43,105,95,95,90,1999,90,1999,90,90,98,98,4,3,3,4,3,3,4,3,3,3,4,6,4,4,4,4,4,4,4,6,4,4,5,5,7,5,7,7,5,5,5,7,5,8,10,9,10,8,10,10,8,8,8,199,10,10,11,11,12,11,11,10,10,10,10,15,16,15,15,15,15,16,15,15,16,16,18,16,20,20,16,16,20,18,16,16,18,25,28,25,25,25,25,30,25,30,30,25,48,48,48,43,48,48,43,43,43,50,43,90,90,98,90,105,90,90,90,90,90,90,3,3,4,4,4,3,4,3,3,3,3,4,6,5,6,4,4,6,4,4,6,4,5,7,7,7,5,7,7,7,7,5,5,8,8,8,9,9,10,10,10,10,8,8,10,11,10,10,11,10,11,11,10,10,11,16,16,15,15,15,16,16,16,15,15,17,18,20,16,16,16,18,18,16,19,16,20,30,30,28,28,25,28,25,30,30,25,25,48,43,48,50,43,48,43,48,43,48,125,98,105,90,98,98,98,98,90,95,90,90,3,4,4,3,3,4,4,4,3,3,4,6,5,6,6,4,4,4,4,5,4,4,7,7,5,7,5,5,8,7,7,5,5,9,8,10,8,8,10,10,10,8,8,8,10,11,11,10,11,10,10,12,12,10,11,16,16,15,16,16,18,15,18,15,17,15,16,20,20,19,18,19,20,16,18,20,18,30,30,30,25,30,28,30,28,30,25,30,43,48,48,48,48,4999,50,50,48,43,48,90,98,90,98,98,90,90,175,98,98,90,4,3,3,4,3,4,4,3,4,4,4,4,4,4,4,4,6,6,6,4,4,6,7,7,5,7,7,5,5,7,7,5,7,10,8,10,10,10,10,9,10,10,8,8,11,10,10,499,11,11,12,12,10,10,11,17,16,16,16,17,17,15,15,17,15,16,20,20,20,16,16,20,20,18,18,18,18,30,25,25,30,30,30,25,30,30,30,30,48,48,48,48,48,48,50,48,48,3999,50,90,98,98,90,98,105,98,5999,6999,105,105,3,4,4,3,3,4,4,3,4,3,4,3,3,4,3,3,4,3,4,3,3,3,4,4,4,4,5,4,4,4,4,4,5,7,5,5,5,5,5,5,5,5,5,5,8,8,10,10,10,10,8,10,8,8,8,14,15,14,14,14,14,15,14,14,14,14,17,17,17,17,17,17,17,17,17,17,17,24,24,24,24,24,25,24,25,24,24,25,43,50,48,48,43,48,48,48,48,43,43,98,98,90,98,105,98,90,105,98,2499,105,3,3,3,3,4,4,4,3,3,4,3,3,3,4,3,3,3,3,3,3,3,4,4,4,5,4,4,4,4,4,4,4,4,10,6,10,6,6,6,6,10,6,6,10,8,8,8,8,10,8,8,8,10,8,8,14,14,14,16,14,14,14,14,14,14,16,17,17,17,17,17,17,17,17,17,17,18,699,25,25,25,25,25,25,25,25,25,25,48,48,125,43,43,43,43,50,43,43,43,90,105,98,90,90,98,90,90,98,90,105,4,4,4,3,3,4,3,3,3,4,3,4,3,3,3,3,3,3,3,3,3,3,6,4,4,4,4,4,4,4,4,4,4,8,6,6,6,6,6,6,6,6,6,8,8,8,8,10,8,8,10,8,8,8,8,14,14,14,17,14,14,14,14,14,14,14,16,16,16,19,19,16,16,16,16,16,16,25,25,27,25,25,25,25,25,25,25,25,43,48,50,43,48,48,43,43,50,48,125,90,105,98,105,98,90,98,105,90,98,90,3,3,3,4,3,4,4,4,4,3,4,4,4,4,6,4,4,6,6,4,4,4,7,7,7,8,5,8,8,7,7,7,7,8,10,10,10,8,10,10,10,8,8,8,12,10,11,11,12,10,10,12,12,11,10,17,16,16,16,17,16,16,15,17,16,15,19,20,599,18,20,16,16,18,18,20,20,25,30,25,30,28,30,25,30,25,28,30,43,43,43,43,43,43,43,43,43,43,43,98,90,98,98,90,90,105,2399,90,98,90,4,4,4,4,3,4,4,3,3,4,4,3,3,3,4,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,6,6,6,6,6,6,6,7,6,6,6,9,10,9,9,10,10,10,9,10,9,10,13,13,12,12,14,13,13,499,12,13,14,17,17,16,18,17,16,17,17,16,16,18,25,25,25,25,25,25,25,25,25,25,25,48,50,43,50,43,43,43,48,48,43,50,90,90,98,105,90,90,95,90,90,105,90,4,4,4,4,3,4,3,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,4,4,4,4,4,5,6,6,6,6,6,6,6,6,6,6,8,10,10,10,11,499,11,10,10,10,10,10,14,14,14,14,14,14,14,14,14,14,14,17,17,17,17,20,17,17,17,17,17,17,24,24,24,24,24,24,24,28,28,24,24,43,50,48,43,50,48,43,43,43,50,43,95,105,90,98,95,1999,98,105,90,98,90,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3,4,4,4,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,6,6,6,6,6,6,6,6,6,6,6,8,8,8,8,8,8,8,8,8,8,8,10,10,10,10,10,10,10,10,299,10,10,12,12,12,12,12,12,12,12,12,12,12,15,15,15,15,15,15,15,15,15,15,15,25,25,25,25,25,25,25,25,25,25,25,50,48,48,43,48,1799,50,48,48,48,48,2999,105,98,98,98,2399,105,90,105,90,98,4,4,3,4,4,3,3,3,3,4,3,3,3,3,4,4,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,6,6,6,6,6,6,6,6,8,6,6,10,10,9,8,8,8,8,9,8,8,8,14,12,12,12,12,12,14,12,13,12,12,17,17,17,17,17,20,17,20,17,17,17,28,25,28,25,28,25,25,25,25,25,28,43,43,48,50,43,43,43,43,125,125,43,105,90,90,90,98,90,90,98,95,90,90,3,4,4,4,4,4,3,3,4,4,3,4,4,4,6,6,4,6,4,4,4,5,5,5,8,5,5,8,75,7,5,5,5,8,10,10,10,9,8,8,8,10,8,8,10,11,11,10,10,10,10,10,11,12,10,16,16,15,17,599,15,17,15,16,15,16,18,18,18,18,16,20,19,20,16,16,16,25,25,30,30,30,30,30,30,30,28,28,48,43,48,43,43,50,43,48,43,48,50,90,90,98,90,98,90,98,98,90,90,175,4,3,4,3,3,4,3,3,4,3,4,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,8,8,8,8,8,8,8,8,8,8,8,14,14,14,14,14,14,14,14,14,14,14,16,16,16,16,16,16,699,16,16,16,16,25,25,25,25,25,25,25,25,25,25,25,43,43,43,50,48,50,50,50,50,43,43,98,90,90,105,98,105,98,105,90,105,90,4,3,3,4,3,3,4,3,3,3,3,4,3,5,3,3,3,3,3,3,4,3,5,4,7,4,4,5,4,4,4,4,7,7,8,9,7,9,7,7,7,8,8,299,10,12,12,12,11,11,12,10,11,10,10,15,16,16,17,16,15,16,16,15,16,15,20,19,19,20,20,19,19,20,20,19,19,25,599,25,25,25,25,27,25,25,26,26,48,43,43,43,43,43,43,43,50,48,43,90,90,90,95,90,98,90,90,98,90,105,1,1,1,1,1,1,1,1,3,4,3,3,3,4,3,4,4,3,4,4,4,4,5,3,4,3,4,4,3,3,4,4,7,5,4,5,4,4,5,7,7,6,10,6,10,8,8,8,6,8,10,6,11,8,12,10,7,8,8,10,11,10,10,14,14,15,14,14,15,15,14,16,14,14,16,20,16,18,699,18,17,18,15,16,18,25,30,30,25,30,25,25,25,28,25,28,48,48,43,43,48,43,43,50,48,43,45,98,90,98,90,90,90,175,90,95,98,90,3,4,3,3,3,4,3,4,4,3,4,4,4,4,5,3,4,3,4,4,3,3,4,4,7,5,4,5,4,4,5,7,7,6,10,6,10,8,8,8,6,8,10,6,11,499,12,10,7,8,8,10,11,10,10,14,14,15,14,14,15,15,14,16,14,14,16,20,16,18,18,18,17,18,15,16,18,25,30,30,25,30,25,25,25,28,25,28,48,48,43,43,48,43,43,50,125,43,45,98,90,98,90,90,90,6999,90,95,98,90,0,0,0,0,0,0,0,0,0,0,0,3,4,3,4,4,4,199,4,4,4,4,4,4,4,4,4,4,6,3,4,4,4,4,5,4,4,5,7,5,7,5,7,7,8,8,10,10,8,10,10,10,10,10,10,11,11,10,11,10,11,11,11,10,10,11,14,16,14,15,15,15,12,14,16,16,15,20,20,16,16,18,15,15,19,18,16,16,28,28,30,30,30,25,25,25,30,30,28,45,43,43,45,48,48,48,50,43,43,1799,105,90,90,98,90,90,90,90,90,90,175,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,3,3,3,3,3,3,4,3,3,3,5,5,5,4,4,4,4,5,4,5,5,8,7,7,7,7,8,8,7,8,7,7,11,10,10,10,10,10,11,11,11,10,11,12,11,11,11,12,12,12,12,12,11,11,16,15,15,15,15,15,16,14,16,15,15,16,16,18,18,16,19,20,19,20,20,19,28,28,28,28,26,28,26,28,26,30,30,45,48,48,50,46,50,48,45,48,46,3999,90,98,95,105,90,90,98,90,105,90,175,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,6,4,4,4,6,4,4,7,7,7,8,7,5,7,7,8,199,7,10,9,9,9,9,9,9,9,10,9,9,11,12,10,11,11,11,10,12,10,11,10,18,15,18,15,16,15,15,16,15,16,16,18,20,19,19,20,20,18,18,20,19,18,28,26,27,27,27,25,25,28,30,27,25,45,45,45,45,45,45,50,48,50,48,50,105,98,98,95,98,98,95,95,95,95,98,3,4,4,3,4,4,3,3,4,3,4,6,6,6,7,6,6,6,7,7,7,6,8,7,7,7,7,7,7,7,8,7,7,11,11,11,11,11,11,11,12,11,12,12,12,13,12,12,12,12,12,12,12,16,16,17,16,17,17,17,16,16,16,16,20,19,20,20,20,20,19,19,20,20,19,499,30,30,32,30,30,30,30,32,30,30,50,48,50,48,49,50,47,50,49,49,48,103,102,98,103,102,100,4999,105,102,103,103];");
  395. loadDupes();
  396.  
  397. var mainParent = document.getElementById("Main").parentElement;
  398. mainParent.appendChild(document.createElement("br"));
  399. mainParent.appendChild(document.createElement("br"));
  400. mainParent.appendChild(createFilterTable());
  401. mainParent.appendChild(document.createElement("br"));
  402. mainParent.appendChild(createSellDupesButton());
  403. mainParent.appendChild(document.createElement("br"));
  404. mainParent.appendChild(document.createElement("br"));
  405. mainParent.appendChild(createViewDupesButton());
  406. mainParent.appendChild(document.createElement("br"));
  407. mainParent.appendChild(document.createElement("br"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement