question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to remotely disable broken features

See original GitHub issue

Crazy idea, but occasionally we have very breaking bugs that cause frustration: https://github.com/sindresorhus/refined-github/issues/3527 https://github.com/sindresorhus/refined-github/issues/2357 https://github.com/sindresorhus/refined-github/issues/1805 https://github.com/sindresorhus/refined-github/pull/1148 https://github.com/sindresorhus/refined-github/issues/2700 etc

These are often fixed quickly, but users have to suffer it until the browser updates the extension, which could be a day later.

We could have a mechanism that pings this repo to check whether a feature should be temporarily disabled. For example inside globalReady

const options = await optionsStorage.getAll();
const hotfix = await cache.get('hotfix');
fetchHotfixesAsynchronously(); // `cache.function` to be run up to ~4 times a day?
Object.assign(options, hotfix);

fetchHotfixesAsynchronously could fetch the content of a dedicated, locked issue with a content like:

false

or

{"cleanup-repo-filelist-actions": false, "unaffected": "20.9.4"}

fetchHotfixesAsynchronously would use looseVersionCompare to compare unaffected with the current version and either store {'cleanup-repo-filelist-actions': false} or {} accordingly.

Notes

Performance: up to 4 fetches a day should make it lightweight enough Privacy: it would only fetch public content on GitHub, only if you open GitHub Security: it would only GET JSON content from api.github.com, it doesn’t POST anything

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

3reactions
shinenelsoncommented, Sep 4, 2020

I have not developed on a WebExtension before, but I’m willing to try. Is this ‘good-first’ enough for a person like me?

2reactions
fregantecommented, Sep 5, 2020

I am kind of lost at looseVersionCompare.

Sorry about that! It’s my own module and I even forgot how I named it 😅

Everything else is about right. I wrote that code in the comment box to explain clearly what I had in mind; expect typos and subtle exceptions because I didn’t run it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is remote disabling? - HealthIT.gov
Remote disabling enables you to remotely lock or completely erase data stored on a mobile device if it is lost or stolen.
Read more >
Option to "Disable device power down" ON G7
As described above, the “disable device power down” feature will disable the power button on the device. This means that even if a...
Read more >
How to Turn off Find My iPhone When Phone is Broken - iMobie
Yes, you can disable Find My iPhone on a broken phone if it has a touch screen ... Select the broken device and...
Read more >
How to Turn Off Smart TV Snooping Features
To turn off programming data collection, go to Settings through either the home screen or the button on the remote > Preferences >...
Read more >
Repair, repurpose, or retire ChromeOS devices
Repair, repurpose, or retire ChromeOS devices. Deprovision or disable a device. For administrators who manage ChromeOS devices for a business or school.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found