Coder Social home page Coder Social logo

Comments (7)

conceptualspace avatar conceptualspace commented on June 3, 2024

fixed in v1.15

from yet-another-speed-dial.

conceptualspace avatar conceptualspace commented on June 3, 2024

parallel processing of multiple bookmarks (as in case of sync/import) was overwriting global variable; reduced to local scope

from yet-another-speed-dial.

HDark15 avatar HDark15 commented on June 3, 2024

The Firefox sync carried the error to the new profile
Is there a way to reset it?
Is it by re-installing the extensions?

from yet-another-speed-dial.

conceptualspace avatar conceptualspace commented on June 3, 2024

do you mean the bookmarks don't have the right titles? and just to confirm, you mean the titles were wrong on device A and then synced to device B, right? the bug that originally caused the problem should have been fixed in v1.15, so just want to make sure the sync isn't causing additional problems with the titles.

assuming that's correct, i have one idea to fix them up. if you're OK with using the URL as the title, we can easily run a function to assign the url as the title.

alternatively, YASD could loop through the bookmarks and fetch the <title> tag from each site, the only downside being that it could take some time to run depending on how many bookmarks you have

let me know what you think and i'll share further instructions on how to do it

from yet-another-speed-dial.

HDark15 avatar HDark15 commented on June 3, 2024

do you mean the bookmarks don't have the right titles? and just to confirm, you mean the titles were wrong on device A and then synced to device B, right?

Yes, thats right

I have no problem with both of them. I will choose YASD so I can get proper title
Can it fetch the thumbnail too? Cause all the thumbnail gone and it will be pain to click refresh thumbnail one by one

from yet-another-speed-dial.

conceptualspace avatar conceptualspace commented on June 3, 2024

i'm going to push v2.1 to firefox shortly. then to update all your images: open the dev console (ctrl+shift+i) and type this: refreshAllThumbnails()

from yet-another-speed-dial.

conceptualspace avatar conceptualspace commented on June 3, 2024

@heywolf15 to update all your titles to match the URL, open YASD and paste this code into the dev console:

async function resetTitles() {
    console.log("updating titles to match urls...")
    const allFolders = folders.concat(speedDialId);

    for (let folder of allFolders) {
        let children = await browser.bookmarks.getChildren(folder);
        for (let child of children) {
            if (child.url && child.url.startsWith('http') && child.title !== child.url) {
                console.log("  >>> ", child.url)
                await browser.bookmarks.update(child.id, {
                    title: child.url
                });
            }
        }
    }
    console.log("done!")
}

then just enter the command below and hit enter:

resetTitles()

that should do the trick 😄

from yet-another-speed-dial.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.