Gestionnaire de fichiers - Editer - /home/pactamm/update/removeSection.js.tar
Arrière
home/pactamm/www/JS/removeSection.js 0000604 00000003060 14756002253 0013435 0 ustar 00 /** * removeSection.js * Script para remover automaticamente seções específicas do Mobirise */ class SectionCleaner { constructor() { this.init(); } init() { // Executa quando o DOM estiver completamente carregado document.addEventListener('DOMContentLoaded', () => this.removeSections()); } removeSections() { try { // Seleciona todas as seções com classe display-7 const sectionsToRemove = document.querySelectorAll('section.display-7'); if (sectionsToRemove.length > 0) { sectionsToRemove.forEach(section => { // Verifica se a seção contém links específicos if (this.containsMobiriseLinks(section)) { section.remove(); console.log('Seção removida com sucesso'); } }); } // Log do resultado console.log(`Processo concluído. ${sectionsToRemove.length} seções processadas.`); } catch (error) { console.error('Erro ao tentar remover seções:', error); } } containsMobiriseLinks(section) { return ( section.innerHTML.includes('mobiri.se') || section.innerHTML.includes('mobirise.com') || section.querySelector('a[href*="mobiri.se"]') !== null || section.querySelector('a[href*="mobirise.com"]') !== null ); } } // Inicializa o limpador de seções const sectionCleaner = new SectionCleaner();
| ver. 1.4 |
Github
|
.
| PHP 5.4.45 | Génération de la page: 0 |
proxy
|
phpinfo
|
Réglages