JS and CSS on Feeder.

It helps your life customizing Feeder.

اعتبارا من 22-04-2020. شاهد أحدث إصدار.

// ==UserScript==
// @name         JS and CSS on Feeder.
// @version      1.0.0
// @description  It helps your life customizing Feeder.
// @author       はー /h/
// @match        *.x-feeder.info/*
// @grant        none
// @namespace https://greasyfork.org/users/534841
// ==/UserScript==

// Remove ads.
$("#main_right div:first").remove();
$("#main_right div:last").remove();

// White any JS code you want to load.
var js_first = `
/* Enter Your JS code here ... */
`

// White any CSS code you want to load.
var css_first = `
/* Enter Your CSS code here ... */
`

$("head").append(`<div id="scripts"><script>` + js_first + `</script></div>`)

$("#main_right").prepend(`<textarea id="js_code" style="width: 300px; height: 250px; margin-bottom: 8px;">` + js_first + `</textarea>`);

$(function() {
    $('textarea[id="js_code"]').keyup(function() {
        const js_code = $("#js_code").val();
        $("#scripts").append("<script>" + js_code + "</script>");
        $("#scripts").empty();
    });
});

$("head").append(`<style type="text/css" id="css">` + css_first + `</style>`);

$("#main_right").prepend(`<textarea id="css_code" style="width: 300px; height: 250px; margin-bottom: 8px;">` + css_first + `</textarea>`);

$(function() {
    $('textarea[id="css_code"]').keyup(function() {
        const css_code = $("#css_code").val();
            $("#css")[0].innerHTML = css_code ;
    });
});