MediaWiki:Gadget-VectorLeftPanel.js:修订间差异

// Edit via Wikiplus
(// Edit via Wikiplus)
(// Edit via Wikiplus)
第6行: 第6行:
License: CC BY-NC-SA 4.0
License: CC BY-NC-SA 4.0
*/
*/
 
console.log('Start leftpanel');
(function () {
(function () {
     // 主过程
     // 主过程
第28行: 第28行:
                 var portal = _step.value;
                 var portal = _step.value;


                 var h3 = portal.querySelector('h1,h2,h3,h4,h5,h6');
                 var h3 = portal.querySelector('h3,.vector-menu-heading');
                 var body = portal.querySelector('.vector-menu-content');
                 var body = portal.querySelector('.vector-menu-content');
                 if (!h3 || !(h3 instanceof HTMLElement) || !body || !(body instanceof HTMLElement)) return 'continue'; // 没有的话就算了
                 if (!h3 || !(h3 instanceof HTMLElement) || !body || !(body instanceof HTMLElement)) return 'continue'; // 没有的话就算了
第61行: 第61行:
             }
             }
         }
         }
        panel.classList.add('leftpanel-started');
     }
     }
     function HTMLElementFliter(el) {
     function HTMLElementFliter(el) {
维护员、​界面管理员、​巡查员、​监督员、​小部件编辑者
3,469

个编辑