|
@@ -55,7 +55,7 @@ function click_avoid_sleep() {
|
|
|
pre_click_timestamp = now_timestamp;
|
|
|
// let th = document.querySelector("div.ds-dex-table-th");
|
|
|
|
|
|
- let ele_th = document.querySelector('#__next > div > div > main > div.css-xe3de5 > div.css-b0bdxf > div > div > div > div > div.g-table-header > table > thead > tr > th.g-table-cell.g-table-column-sort.g-table-column-has-sorters')
|
|
|
+ let ele_th = document.querySelector(' div.g-table-header > table > thead > tr > th.g-table-cell.g-table-column-sort.g-table-column-has-sorters');
|
|
|
|
|
|
// let button_click = th.children[5].querySelector("button");
|
|
|
ele_th.click();
|
|
@@ -81,7 +81,9 @@ async function get_tbody_data() {
|
|
|
is_getting_data = true;
|
|
|
for (let i = 0; i < 5; i++) {
|
|
|
console.log('scoll bottom i=', i);
|
|
|
- let tbody = document.querySelector('#__next > div > div > main > div.css-xe3de5 > div.css-b0bdxf > div > div > div > div > div.g-table-tbody-virtual.g-table-tbody > div.g-table-tbody-virtual-holder > div > div')
|
|
|
+ let tbody = document.querySelector('div.g-table-tbody-virtual.g-table-tbody div.g-table-tbody-virtual-holder div.g-table-tbody-virtual-holder-inner')
|
|
|
+
|
|
|
+
|
|
|
let arr_token_row = Array.from(tbody.children);
|
|
|
await get_current_view_data(arr_token_row);
|
|
|
|
|
@@ -91,7 +93,7 @@ async function get_tbody_data() {
|
|
|
|
|
|
let new_scrollTop = top_butttom;
|
|
|
|
|
|
- let ele_scroll = document.querySelector("#__next > div > div > main > div.css-xe3de5 > div.css-b0bdxf > div > div > div > div > div.g-table-tbody-virtual.g-table-tbody > div.g-table-tbody-virtual-holder");
|
|
|
+ let ele_scroll = document.querySelector(" div.g-table-tbody-virtual.g-table-tbody div.g-table-tbody-virtual-holder");
|
|
|
|
|
|
let bef_sTop = ele_scroll.scrollTop;
|
|
|
ele_scroll.scrollTop = new_scrollTop;
|
|
@@ -107,7 +109,7 @@ async function get_tbody_data() {
|
|
|
|
|
|
|
|
|
for (let i = 0; i < 3; i++) {
|
|
|
- let ele_scroll = document.querySelector("#__next > div > div > main > div.css-xe3de5 > div.css-b0bdxf > div > div > div > div > div.g-table-tbody-virtual.g-table-tbody > div.g-table-tbody-virtual-holder");
|
|
|
+ let ele_scroll = document.querySelector(" div.g-table-tbody-virtual.g-table-tbody div.g-table-tbody-virtual-holder");
|
|
|
|
|
|
ele_scroll.scrollTop = 0;
|
|
|
|