- 最後登錄
- 2024-11-17
- 在線時間
- 8444 小時
- 註冊時間
- 2007-6-16
- 閱讀權限
- 95
- 精華
- 0
- UID
- 1564802
- 帖子
- 855
- 積分
- -6 點
- 潛水值
- 56729 米
| 成為伊莉的版主,你將獲得更高級和無限的權限。把你感興趣的版面一步步地發展和豐盛,那種滿足感等著你來嚐嚐喔。 本帖最後由 jack810216 於 2019-5-29 12:23 PM 編輯
- javascript:(function () {
- var G_ObjList = [];
- var G_BtnBackup = "";
- var G_HTML = "";
- var G_TD_Count = 0;
- var G_Target;
- function GetFree_Event() {
- var L_TDList = G_Target.getElementsByTagName("td");
- for (var i = 0; i < L_TDList.length; i++) {
- var Dtmp = L_TDList[i].getElementsByTagName("div");
- if (Dtmp.length) {
- var Ptmp = Dtmp[0].getElementsByTagName("p");
- if (Ptmp.length == 3) {
- var Ftmp = Ptmp[2].getElementsByTagName("font");
- for (var k = 0; k < Ftmp.length; k++) {
- if (Ftmp[k].innerText == "Free") {
- if (G_ObjList.indexOf(Ptmp[0].innerText) < 0) {
- G_ObjList.push(Ptmp[0].innerText);
- G_HTML += '<td style="padding:10px 5px; text-align:center; vertical-align:top;" class="img_box">' + L_TDList[i].innerHTML + '</td>';
- G_TD_Count += 1;
- if (G_TD_Count > 4) {
- G_TD_Count = 0;
- G_HTML += '<tr/>';
- }
- }
- break;
- }
- }
- }
- }
- }
- G_Target.innerHTML = G_HTML + G_BtnBackup;
- }
- var G_Idx = 0;
- var G_Status = 0;
- function GetMore_Event(n) {
- var str = document.getElementById("loadmore_button").innerText;
- if (str == "加載 更多") {
- vdo_index_loadmore(1);
- G_Status = 1;
- }
- if (G_Status) {
- if (str = "正在加載..") {
- G_Status = 0;
- G_Idx++;
- GetFree_Event();
- }
- }
- }
- var G_Max = 0;
- var G_TimeoutFlag = 0;
- function TimerTick_Event(t) {
- setTimeout(function () {
- if (!G_TimeoutFlag) {
- if (G_Idx < G_Max) {
- GetMore_Event();
- TimerTick_Event(1500);
- } else {
- GetFree_Event();
- }
- } else {
- GetFree_Event();
- }
- }, t);
- }
- function Main_Event(n) {
- var TB_List = document.getElementsByClassName("fixwidth");
- for (var i = 0; i < TB_List.length; i++) {
- if (TB_List[i].style.padding == "0px") {
- G_Target = TB_List[i].getElementsByTagName("tbody")[0];
- }
- }
- if(document.getElementById('loadmore')){
- G_BtnBackup = '<tr id="loadmore">' + document.getElementById('loadmore').innerHTML + "</tr>";
- }else{
- G_BtnBackup = '';
- }
- G_Max = n;
- setTimeout(function () {
- G_TimeoutFlag = 1;
- }, n * 5000);
- TimerTick_Event(0);
- }
- Main_Event(prompt("Please Set Reflush Times"));
- })();
複製代碼 功能大致上為
備份刷新按鈕語法
跳出輸入視窗,輸入想要刷新次數
自動按下更多影片後自動篩出含有Free標籤的資料,並將重複資料剃除
將篩選資料覆蓋至原先位置
[以上語法可直接作為標籤當作快捷鍵使用]
... |
|