Greasy Fork

AnimeFLV Firefox "Estreno" fix

Move Element<Spam> "Estreno" to parent

目前为 2020-09-13 提交的版本。查看 最新版本

/*jshint esversion: 6 */
// ==UserScript==
// @name         AnimeFLV Firefox "Estreno" fix
// @version      0.1
// @description  Move Element<Spam> "Estreno" to parent
// @author       Eliaxs1900
// @match        http*://*animeflv*/
// @grant        none
// @namespace https://greasyfork.org/users/687119
// ==/UserScript==

(function() {
    'use strict';
    let allList = document.getElementsByClassName('Anime alt B');

    for (let carta of allList) {
        //Mover elemento [./a.spam] a [./spam, ./a]
        let SpamElem = carta.children[0].children[0];
        carta.children[0].children[0].remove();
        carta.appendChild(SpamElem);
    }
})();