Downloading File with OB



  • hi
    i have a problem
    i give a Get Request block in OB,when it process this block and will get into the address,openbullet automatically start downloading an .js file
    so is there anyway to i make this to dont download?because i think when ob open the link,will open the download link of the website too



  • If what you're asking is to download a JavaScript file from your REQUEST block I would suggest this.
    This will get the plain-text contents of the JavaScript code from the URL specified and then write it to a file in the OpenBullet folders main directory.

    REQUEST GET "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js" 
      
      HEADER "User-Agent: Mozilla/5.0 (Linux; Android 7.0; PLUS Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.98 Mobile Safari/537.36" 
    
    PARSE "<SOURCE>" LR "" "" -> CAP "JSFile" 
    
    UTILITY File "JSFile.js" Write "<JSFile>" -> VAR "JSFile" 
    


  • if you want to download a file the parse and utility stuff isn't needed, as REQUEST can save files too:

    REQUEST GET "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js" 
      
      HEADER "User-Agent: Mozilla/5.0 (Linux; Android 7.0; PLUS Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.98 Mobile Safari/537.36" 
      -> FILE "name.js" 
    


  • @meinname said in Downloading File with OB:

    if you want to download a file the parse and utility stuff isn't needed, as REQUEST can save files too:

    REQUEST GET "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js" 
      
      HEADER "User-Agent: Mozilla/5.0 (Linux; Android 7.0; PLUS Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.98 Mobile Safari/537.36" 
      -> FILE "name.js" 
    

    I never knew that! Thanks dude



  • NO!
    Acctually i want to openBullet Stop Downloading a .Js File From the Get Data lol!



  • Disable the HTML View on Settings - Openbullet.
    As very likely this is downloading the File.



  • @meinname
    Oh Fixed,Thanks


Log in to reply