Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Facebook Cleaner
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.1
  5. // @description  try to take over the world!
  6. // @author       You
  7. // @match        https://www.facebook.com/
  8. // @require http://code.jquery.com/jquery-3.2.1.min.js
  9. // @grant        none
  10. // ==/UserScript==
  11.  
  12.     $(`<style type='text/css'>
  13. .feed {
  14.   display: flex;
  15.   justify-content: space-between;
  16. flex-wrap: wrap;
  17. }
  18. .feed > ._4ikz {
  19. width: 500px;
  20. }
  21.  
  22. [id^=u_ps] > ._4ikz[id^=substream]{
  23. width: 100%;
  24. }
  25.  
  26. [id^=u_ps] > ._4ikz[id^=substream] > div > div > div{
  27.   display: flex;
  28.   justify-content: space-between;
  29. flex-wrap: wrap;
  30. }
  31.  
  32. [id^=u_ps] > ._4ikz[id^=substream] [id^=hyperfeed_story_id] {
  33. width: 500px;
  34. }
  35.  
  36. ._2yq #globalContainer{
  37.    width:1210px !important;
  38. }
  39. ._1ql0{
  40.   width:1010px !important;
  41. }
  42.       </style>`).appendTo("head");
  43.  
  44. (function ($, undefined) {
  45.   $(function () {
  46.     'use strict';
  47.  
  48.    // $('#globalContainer').css({'width':'1200px !important'});
  49.     $('#rightCol').remove();
  50.     var contentArea = $('#contentArea');
  51.     contentArea.removeClass('_1qkq _1qkx');
  52.     contentArea.css({'width':'100% ', 'left':'0px'});
  53.    
  54.     $('div[role="feed"]').addClass('feed');
  55.    
  56.     /*var cards = $('._4ikz');
  57.     cards.each(function(){
  58.         $( this ).css({'width':'400px'});
  59.     });*/
  60.   });
  61. })(window.jQuery.noConflict(true));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement