Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Facebook Cleaner
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match https://www.facebook.com/
- // @require http://code.jquery.com/jquery-3.2.1.min.js
- // @grant none
- // ==/UserScript==
- $(`<style type='text/css'>
- .feed {
- display: flex;
- justify-content: space-between;
- flex-wrap: wrap;
- }
- .feed > ._4ikz {
- width: 500px;
- }
- [id^=u_ps] > ._4ikz[id^=substream]{
- width: 100%;
- }
- [id^=u_ps] > ._4ikz[id^=substream] > div > div > div{
- display: flex;
- justify-content: space-between;
- flex-wrap: wrap;
- }
- [id^=u_ps] > ._4ikz[id^=substream] [id^=hyperfeed_story_id] {
- width: 500px;
- }
- ._2yq #globalContainer{
- width:1210px !important;
- }
- ._1ql0{
- width:1010px !important;
- }
- </style>`).appendTo("head");
- (function ($, undefined) {
- $(function () {
- 'use strict';
- // $('#globalContainer').css({'width':'1200px !important'});
- $('#rightCol').remove();
- var contentArea = $('#contentArea');
- contentArea.removeClass('_1qkq _1qkx');
- contentArea.css({'width':'100% ', 'left':'0px'});
- $('div[role="feed"]').addClass('feed');
- /*var cards = $('._4ikz');
- cards.each(function(){
- $( this ).css({'width':'400px'});
- });*/
- });
- })(window.jQuery.noConflict(true));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement