Betterbook

Facebook, but better!

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Betterbook
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Facebook, but better!
// @author       hosma
// @match        https://www.facebook.com/
// @grant        none
// @require      http://code.jquery.com/jquery-1.12.4.min.js
// ==/UserScript==

(function() {
    'use strict';

    setInterval(function() {
        var post_div=$('div[role="feed"] div>div[data-testid="fbfeed_story"]'); // idk doesnt work for everything figure it out lole
        var dir = 'left'; // up, down, left, right
        var speed = '20';

        post_div.wrap('<marquee direction="'+ dir +'" scrollamount="'+ speed +'"></marquee>');
    }, 2000);
})();