Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dont work now #6

Open
Netario00 opened this issue Nov 26, 2024 · 15 comments
Open

dont work now #6

Netario00 opened this issue Nov 26, 2024 · 15 comments

Comments

@Netario00
Copy link

Manifest version 2 is deprecated, and support will be removed in 2024. See https://developer.chrome.com/docs/extensions/develop/migrate/mv2-deprecation-timeline for details.

{
"manifest_version": 2,
"name": "Chesscheat",
"version": "1.1",
"icons": { "16": "icon.png",
"48": "icon.png",
"128": "icon.png" },
"browser_specific_settings": {
"gecko": {
"id": "[email protected]"
}
},
"description": "Always see the optimal move in any chess.com game. Guarantees wins almost 100% of the time",
"content_scripts": [
{
"js": ["scripts/main.js"],
"matches": [
"https://www.chess.com/",
"https://chess.com/
"
]
}
]
}

@Netario00
Copy link
Author

  • it dosnt work to open the menu in the extension tab

@Eugenenoble2005
Copy link
Owner

Still Works on firefox. Try using that till i find time to read through the new specs.

@Netario00
Copy link
Author

Netario00 commented Nov 29, 2024

it worked firefox but the cheat dosnt work good i cant even beat paul murphy bot you know how to fix the cheat better?

@Eugenenoble2005
Copy link
Owner

If you installed from the firefox webstore, reinstall manually by cloning this repo and adding it to firefox in dev mode. A recent pull request fixed the depth property and provides more accurate moves.

@Netario00
Copy link
Author

did that still loses i follow all red things and still lose it says i gonna sac my queen and its a blunder i dont win anything on it i just lose the queen

@Eugenenoble2005
Copy link
Owner

well, i guess if you want more accurate calculations, you can try to adjust the depth parameter yourself. Fork and change this code to something like this:

   if(userAgent.includes("mobile"))
        depth="45";
    else
        depth="45";

You can keep experimenting with various depths till it works well for you. Larger depths can take longer to calculate and slow your browser down.

@Netario00
Copy link
Author

ok thx

@AjTheProd
Copy link

Ever figure out what stopped the ext from working on operaGX/Google?

@AjTheProd
Copy link

AjTheProd commented Dec 6, 2024

and might I suggest eliminating the entering black and white with b and w and just calculate the best moves for both players your side in green and opponents in red?

@Eugenenoble2005
Copy link
Owner

Ever figure out what stopped the ext from working on operaGX/Google?

Manifeft V2 deprecation. Should be an easy fix on just the manifest.json file. Feel free to contribute.

@Netario00
Copy link
Author

i fixed to google "manifest_version": 2, change that to "manifest_version": 3, and it work

@Eugenenoble2005
Copy link
Owner

i fixed to google "manifest_version": 2, change that to "manifest_version": 3, and it work

Make a pull request please. I tried that once and it didn't work on Firefox anymore which is why I stopped trying because I was too lazy to read the specs to find out why it stopped working.

@AjTheProd
Copy link

I've been trying the last week but I just don't have the knowledge as I picked up java about a week ago lol. In manifest V3 it removed the ability for an extension to use remotely hosted code and as I assume the stockfish engine counts as remotely hosted code and I don't know how to code the fix for that. I know I would need to bundle the Stockfish engine code with the extension rather than loading it from a remote server but I don't know how to include the Stockfish engine code into the extension's source code and load it locally.

@AjTheProd
Copy link

this comes with not only rearranging how the code actually gets the best move entirely but also makes it a way bigger size extension and having the engine locally means keeping it up to date by yourself.

@Fuad1997784
Copy link

Can you make a live streaming version? so that cheats are not visible on the monitor?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants