We’ve been anticipating it for years,1 and it’s finally happening. Google is finally killing uBlock Origin – with a note on their web store stating that the …

  • Petter1@lemm.ee
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    I used this prompt

    I want to create an electron app for linux of a third party webapp

    How would I do that?

    And chatGPT gave me a good instruction, will try that out. Apparently, you only need node, electron and the javascript like this:

    
    const { app, BrowserWindow } = require('electron')
    
    function createWindow() {
      // Create the browser window
      const win = new BrowserWindow({
        width: 800,
        height: 600,
        webPreferences: {
          nodeIntegration: true
        }
      })
    
      // Load the third-party web app
      win.loadURL('https://www.thirdpartyapp.com')
    
      // Optionally remove the default menu
      win.setMenu(null)
    
      // Open DevTools (optional for debugging)
      // win.webContents.openDevTools()
    }
    
    // Run the createWindow function when Electron is ready
    app.whenReady().then(createWindow)
    
    // Quit when all windows are closed
    app.on('window-all-closed', () => {
      if (process.platform !== 'darwin') {
        app.quit()
      }
    })
    
    app.on('activate', () => {
      if (BrowserWindow.getAllWindows().length === 0) {
        createWindow()
      }
    })
    
    
      • Petter1@lemm.ee
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 months ago

        Electron is a tool to bundle a website and a interpreter for that website in an application. That works on many platforms. Official discord desktop app, for example, is an electron app, spotify as well.