NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name QQ Love Album DELETE button recover // @namespace QQLAHelper_user.qzone.qq.com // @include http://user.qzone.qq.com/*/myhome/100622432* // @include http://sweet.snsapp.qq.com/* // @description 恢复QQ情侣相册删除按钮<br>It is used to recover the 'delete' button of QQ Love album // @version 2 // @grant none // ==/UserScript== setInterval(function () { var i, j, k; if (document.getElementById('app_canvas_frame') !== null) { appDoc = document.getElementById('app_canvas_frame').contentDocument; divAL = appDoc.getElementById('divAlbumList'); } else { divAL = document.getElementById('divAlbumList'); } if (null !== divAL && divAL.hasChildNodes()) { var divBDs = divAL.getElementsByTagName('div'); for (i = 0; i < divBDs.length; i++) if ('bd' == divBDs[i].className) { var ulALs = divBDs[i].getElementsByTagName('ul'); for (j = 0; j < ulALs.length && 'albumlist' != ulALs[j].className; j++); var liList = ulALs[j].getElementsByTagName('li'); for (j = 0; j < liList.length; j++) { var divs = liList[j].getElementsByTagName('div'); for (k = 0; k < divs.length; k++) if ('opr_option' == divs[k].className) { var d_a = document.createElement('a'); d_a.setAttribute('href', 'javascript:void(0)'), d_a.setAttribute('data-event', 'delete_album'), d_a.setAttribute('title', '删除相册'); var d_icon = document.createElement('i'); d_icon.setAttribute('class', 'ico_delete'), d_a.appendChild(d_icon), divs[k].childNodes.length < 2 && divs[k].appendChild(d_a) } } } } }, 500);