Git Product home page Git Product logo

Comments (8)

GrinZero avatar GrinZero commented on June 28, 2024

As for the review of this situation, I didn't try to go online in the Google Store, so I'm sorry I can't tell you the answer. But I can tell you about similar situations I have encountered. In China, there is also a review of custom interpreters in WeChat applets. According to the solutions provided by the online giants, there are solutions that can be referred to (in essence, this method is to use a third-party JavaScript interpreter. In theory, as long as the Internet is available, nothing can be completely prohibited)

from chrome-inject-eval.

Serega007RU avatar Serega007RU commented on June 28, 2024

Well, I'll probably be a pioneer, I'll finish migrating to manifest v3 and try to publish an extension with your solution. I'll let you know if it worked out or not

from chrome-inject-eval.

GrinZero avatar GrinZero commented on June 28, 2024

Well, I'll probably be a pioneer, I'll finish migrating to manifest v3 and try to publish an extension with your solution. I'll let you know if it worked out or not

What about? Did you succeed in cheating

from chrome-inject-eval.

Serega007RU avatar Serega007RU commented on June 28, 2024

Patience please :)
I am engaged in my project only in my free time, it may take several months. If Google really forbids running extensions on the manifest version 2 in 2023, then this will speed up the process. I won't forget and I'll let you know if it worked out or not.
If anything, here is my project https://gitlab.com/Serega007/Auto-Vote-Rating/-/tree/mv3, I have just started the transition to manifest version 3, but I have encountered several serious problems that will not be easy to solve

from chrome-inject-eval.

Serega007RU avatar Serega007RU commented on June 28, 2024

It looks like I've run into a problem
I can't pass the function to chrome.scripting.executeScript()
On the page in the tab I always get this error
image
Also, the code that comes is also kind of strange
image
What I was trying to do

const func = new evalCore.evalModule.Function('console.log("test")')
chrome.scripting.executeScript({target: {tabId: 340788688}, func: func})
const instance = {}
const evil = evalCore.getEvalInstance(instance)
evil('function test() {console.log("test")}')
chrome.scripting.executeScript({target: {tabId: 340788688}, func: instance.test})

from chrome-inject-eval.

GrinZero avatar GrinZero commented on June 28, 2024

Here is an explanation of the last figure: you can try to bind the scope to the global, such as "globalThis"

from chrome-inject-eval.

Serega007RU avatar Serega007RU commented on June 28, 2024

@GrinZero Hello! Google approved the update and published the extension. Here is the link https://chrome.google.com/webstore/detail/auto-vote-rating/mdfmiljoheedihbcfiifopgmlcincadd
I had to switch from gitlab to github to host the remote code, I did it because the domain gitlab.io blocked in Russia.
Here is a new link to the source code https://github.com/Serega007RU/Auto-Vote-Rating/
Regarding the error I encountered, I bypassed it and refused to use the functions. I'm doing an inject coreEval.js to the tab and already send the source code there via chrome.tabs.SendMessage
Thank you for your solution with the remote code problem on manifest v3

from chrome-inject-eval.

GrinZero avatar GrinZero commented on June 28, 2024

hahaha, so good

from chrome-inject-eval.

Related Issues (1)

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.