Обсуждения » Хотелки

Can't Show Google Image or Youtube Videos - Help Me!

Can't Show Google Image or Youtube Videos - Help Me!

My user script works on my android browser, Habit Browser. But the problem it doenst show Google images or Youtube videos. For example, in Google images I click an image to view it. It appears for a sec then disappears. When I go to YT, the image of the video shows up for a sec then disappears. If I click on the video, it will play audio but not show video. The code is below. Hope you smart gurus can help find a solution for me. Thank you!



// @name Userscript to Change Color of Font
// @author Tommy Smith
// @description Userscript for a browser for your Android phone.
// @version 0.3
// @include *
// ==/UserScript==

var css = document.createElement('style');
css.type = "text/css";
css.innerHTML = "* { color: white !important; } *:not([class*='overlay']) { background-color: darkgray !important; } a { color: aqua !important; }";
document.getElementsByTagName('body')[0].appendChild(css);
document.getElementsByTagName("body")[0].setAttribute("bgcolor", "darkgray");
document.getElementsByTagName("body")[0].setAttribute("text", "white");
document.getElementsByTagName("body")[0].setAttribute("alink", "aqua");
document.getElementsByTagName("body")[0].setAttribute("link", "aqua");
document.getElementsByTagName("body")[0].setAttribute("vlink", "aqua");

Ответить

Войдите, чтобы ответить.