Greasy Fork is available in English.

Facebook hidden

Facebook change UI to Stack Overflow

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey 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.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         Facebook hidden
// @namespace    https://terpise.com
// @version      1.1.1
// @description  Facebook change UI to Stack Overflow
// @author       terpise
// @match        https://www.facebook.com/*
// @grant        none
// @license MIT
// ==/UserScript==

(function () {
  'use strict'
  window.onload = function () {
    //Replay favicon
    var link = document.querySelector('link[rel*=\'icon\']') || document.createElement('link')
    link.type = 'image/x-icon'
    link.rel = 'shortcut icon'
    link.href = 'https://cdn.sstatic.net/Sites/stackoverflow/Img/favicon.ico'
    document.getElementsByTagName('head')[0].appendChild(link)
    document.title = 'Stack Overflow - Where Developers Learn, Share, & Build Careers'

    //Hide images
    const style = document.createElement('style')

    //body *  color: #5b5b5b !important;
    style.innerHTML = `
        img, image{
            display: none !important;
        }
        .__fb-light-mode, .__fb-dark-mode {
          --fb-logo: #18191a !important;
          --base-blue: #5b5b5b !important;
          --primary-text: #696969 !important;
          --primary-icon: var(--primary-text);
          --secondary-icon: var(--primary-text);
          --secondary-text: var(--primary-text);
          --placeholder-text: var(--primary-text);
        }
        .xe3v8dz {
           fill: #18191a !important;
        }

        body * {
            border-color: transparent !important;
            background-color: transparent !important;
        }

        i {
            opacity: 0.2;
        }
        svg {
            opacity: 0.2;
        }
        .x14ctfv {
            color: #3b3b3c !important;
        }
    `
    document.head.appendChild(style)
  }
})()