brookhong / Surfingkeys

Map your keys for web surfing, expand your browser with javascript and keyboard.
https://chrome.google.com/webstore/detail/surfingkeys/gfbliohnnapiefjpjlpjnehglfpaknnc
MIT License
5.39k stars 479 forks source link

Settings not changing. #2087

Open TheDataSeneschal opened 9 months ago

TheDataSeneschal commented 9 months ago

I just started using it and it is not loading my basic configurations

file:///C:/Users/varit/OneDrive/Desktop/configs/Surfingkeys.js

I pasted the above file path into the Load Settings from text area and I have turned on Allow access to file URLs.

// An example to replace `T` with `gt`, click `Default mappings` to see how `T` works.
api.map('gt', 'T');

// an example to remove mapkey `Ctrl-i`
api.unmap('<ctrl-h>');

// set theme
settings.theme = {
    'font-family': 'Consolas NF, Charcoal, sans-serif',
    'font-size': '20pt',
    'background': '#24272e',
    'color': '#abb2bf'
};
settings.theme['tbody'] = {
    'color': '#fff'
};
settings.theme['input'] = {
    'color': '#d0d0d0'
};
settings.theme['.url'] = {
    'color': '#61afef'
};
settings.theme['.annotation'] = {
    'color': '#56b6c2'
};
settings.theme['.omnibar_highlight'] = {
    'color': '#528bff'
};
settings.theme['.omnibar_timestamp'] = {
    'color': '#e5c07b'
};
settings.theme['.omnibar_visitcount'] = {
    'color': '#98c379'
};
settings.theme['#sk_omnibarSearchResult ul li:nth-child(odd)'] = {
    'background': '#303030'
};
settings.theme['#sk_omnibarSearchResult ul li.focused'] = {
    'background': '#3e4452'
};
settings.theme['#sk_status, #sk_find'] = {
    'font-size': '20pt'
};

// click Save button to make above settings take effect.`

I am trying to unmap Ctrl h so that I can use it go to history, Also ctrl y does not do any thing. I have also disabled all other extensions and it still is not working. I have also tried copying my settings and pasting them manually after removing the file path from the Load settings from text area.

Sheepolution commented 8 months ago

I take it you haven't been able to solve this? I have the same problem.

TheDataSeneschal commented 7 months ago

No not yet. Will try later.

borjasanlei commented 4 months ago

Similar problem here. Using the default example settings and clicking in 'save' does nothing:

// an example to create a new mapping `ctrl-y`
api.mapkey('<ctrl-y>', 'Show me the money', function() {
    Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).');
});

// an example to replace `T` with `gt`, click `Default mappings` to see how `T` works.
api.map('gt', 'T');

// an example to remove mapkey `Ctrl-i`
api.unmap('<ctrl-i>');

// set theme
settings.theme = `
.sk_theme {
    font-family: Input Sans Condensed, Charcoal, sans-serif;
    font-size: 10pt;
    background: #24272e;
    color: #abb2bf;
}
.sk_theme tbody {
    color: #fff;
}
.sk_theme input {
    color: #d0d0d0;
}
.sk_theme .url {
    color: #61afef;
}
.sk_theme .annotation {
    color: #56b6c2;
}
.sk_theme .omnibar_highlight {
    color: #528bff;
}
.sk_theme .omnibar_timestamp {
    color: #e5c07b;
}
.sk_theme .omnibar_visitcount {
    color: #98c379;
}
.sk_theme #sk_omnibarSearchResult ul li:nth-child(odd) {
    background: #303030;
}
.sk_theme #sk_omnibarSearchResult ul li.focused {
    background: #3e4452;
}
#sk_status, #sk_find {
    font-size: 20pt;
}`;
// click `Save` button to make above settings to take effect.
TheDataSeneschal commented 4 months ago

Probably some conflict with some other extensions.

Fred-Vatin commented 3 weeks ago

Probably some conflict with some other extensions.

No there is no conflict. As I mention at #2182, I tested in fresh profiles on two very different browsers. The issue was the sample code that needs to be fixed.

Sheepolution commented 3 weeks ago

For what it's worth I suddenly don't have this issue anymore. Not sure what made that happen though.

Fred-Vatin commented 3 weeks ago

Real issues may have been fixed. Our issue is related to the sample code in the settings. Most of its commands are wrong, misleading new users. I explained it in the discussion above.