FB images පේන්නේ නැති අයට solution එක

rashmi86

Well-known member
  • Jun 10, 2016
    1,335
    204
    63
    mewata mukuth install karanna bari ayata mokada karnne....api ithin company ekenne yanne....
     

    lalindutj

    Well-known member
  • Sep 12, 2010
    3,266
    1,165
    113
    Script ekata meka dala edit kalama hari giya;);)

    // @match https://www.elakiri.lk/forum*=*
    // @match https://www.elakiri.com/forum*=*




    Full Script
    Code:
    // ==UserScript==
    // @name         Facebook image link fixer
    // @namespace    http://tampermonkey.net/
    // @version      1.2
    // @description  FB image link fixer on elakiri.com forum for SLT internet connections
    // @author       RavinduSha
    // @match        https://www.elakiri.com/forum/showthread.php?*=*
    // @match        https://www.elakiri.lk/forum/showthread.php?*=*
    // @match        https://www.elakiri.lk/forum*=*
    // @match        https://www.elakiri.com/forum*=*
    // @grant        none
    // ==/UserScript==
    
    (function() {
        'use strict';
    
        var allImg=document.getElementsByTagName("img"), i=0, img;
    
        var pattern = /^https?:\/\/scontent\.fcmb\d-1/;
    
        while (img = allImg[i++])
        {
            if (img.src.match(pattern)) {
                img.src = img.src.replace(pattern, 'http://scontent.fcmb2-1');
            }
        }
    
    })();
     

    lalindutj

    Well-known member
  • Sep 12, 2010
    3,266
    1,165
    113
    mama .lk use karanne nathi nisa eka mathak une na.

    ela bn patta
    11.gif
     

    Kevin_Fdo

    Well-known member
  • Jan 12, 2019
    4,661
    2,097
    113
    𝟷𝟸𝟽.𝟶.𝟶.𝟷
    හරියටම කියන්න හේතුවක් මම දන්නේ නෑ. ඒත් SLT හරි Adblocker extension එකක් හරි DNS එකකින් හරි facebook එකේ server එකක් block කරනවා. ඒක නිසා අපිට ඒ server එකෙන් images බලන්න විදියක් නෑ. නමුත් facebook එකේ වෙන server එකකින් අපිට ඒ image එක බලාගන්න පුළුවන් URL එක වෙනස් කරලා.

    පොඩි research පාරක් දාල මේක narrow down කරගත්තා මෙතෙන්ට.
    Dialog එකෙන් host කරලා තියෙන CDN node 2e තමා අවුල තියෙන්නේ.
    Ping වෙන්නෙත් නෑ.SLT එකෙන් එතකොට මේ ip 2 block කරලද ? :eek:


    uT0W9PK.jpg