Topic: e621 mobile version

dddguardian said:
@RaygenI'm glad you liked it.

Use this:

(function() {

        // console.log('repair start');

        var list = document.getElementsByTagName('a');
        for (var index = 0; index < list.length; index++) {
            if (list[index].innerHTML.search('webm') > -1 && list[index].innerHTML.search('img') > -1) {
                list[index].innerHTML = list[index].innerHTML.replace('img', 'video controls loop');
            }
        }
        // console.log('repair ends');
        

})();

https://pastebin.com/MrUAGh64

Oh welp, i was very far from the solution.
This works perfectly tho, thanks again! :>

Updated by anonymous