GithubHelp home page GithubHelp logo

jingmatrix / chromext Goto Github PK

View Code? Open in Web Editor NEW
648.0 10.0 36.0 12.37 MB

UserScript and DevTools supports for Chromium based and WebView based browsers

Home Page: https://jingmatrix.github.io/ChromeXt/

License: GNU General Public License v3.0

Kotlin 61.72% JavaScript 36.18% CSS 2.10%
android chrome lsposed userscript xposed-module brave-browser bromite vivaldi microsoft-edge chromium

chromext's Introduction

Hi there 👋

I am a PhD student in mathematics and I am currently studying at Toulouse, France.

I was born on October 26th, 1998. However, you might already know that many Chinese people use a different calendar, so my birthday 🎂 changes every year.

I enjoy writing, in English, French and Chinese. There is a language switch button in my blog to see different contents.

  • English: math notes, programming tricks, dairies
  • French: poems, life in France
  • Chinese: thoughts, poems

Using Google Drive, I share Math books and other Hobby readings; books there are well-compressed and include bookmarks (manually embedded).

In a sense, my taste is a bit retro:

If interested, you can find 🥚 in Matrix 😜.

在这里我更新自己对日常生活思考以及一些诗歌创作

Subscribe me (订阅我的更新)

chromext's People

Contributors

c0unt-zero avatar cesaryuan avatar dependabot[bot] avatar green1052 avatar jingmatrix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chromext's Issues

License question

I just wonder what exact license is your module using? The code refers to a LICENSE file I could not find, and vaguely speaks of "a BSD-style license". Maybe you could add that LICENSE file to clarify? Thanks in advance!

Support for Bromite

I'm so glad to finally see a LSposed module supporting user scripts. Would it be possible to support Bromite?

求助

接下来该如何使用呢
Screenshot_2023-01-07-00-45-23-160_com android chrome

Eruda Console auto disables

Hi! Eruda console gets Disabled after jumping to other pages. Any way to make it stays shown after jumping to other pages? :)

[Suggestion] Edge support?

Since Microsoft Edge for android is also chromium, the only real problem would be the way Microsoft did the menu thing - but then again, you could just shove the control buttons somewhere else, i guess?

Page menu crash [Android 8.1]

System: Android 8.1, LSPosed (Zygisk), Latest Magisk (26.1)

Relevant log stuff:

LOG [ 2023-04-18T02:52:41.645 10090: 5787: 5787 I/LSPosed-Bridge ] Loading class org.matrix.chromext.MainHook [ 2023-04-18T02:52:41.838 10090: 5787: 5787 E/LSPosed-Bridge ] java.lang.ClassNotFoundException: Didn't find class "org.chromium.chrome.browser.ChromeTabbedActivity" on path: DexPathList[[zip file "/data/app/com.android.chrome-WEa_CdfEMQ5B0ogZsZN31g==/base.apk"],nativeLibraryDirectories=[/data/app/com.android.chrome-WEa_CdfEMQ5B0ogZsZN31g==/lib/arm, /data/app/com.android.chrome-WEa_CdfEMQ5B0ogZsZN31g==/base.apk!/lib/armeabi-v7a, /system/lib, /system/vendor/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:125) at java.lang.ClassLoader.loadClass(ClassLoader.java:379) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) at org.matrix.chromext.MainHook.handleLoadPackage(Unknown Source:101) at de.robv.android.xposed.IXposedHookLoadPackage$Wrapper.handleLoadPackage(Unknown Source:2) at de.robv.android.xposed.callbacks.XC_LoadPackage.call(Unknown Source:6) at de.robv.android.xposed.callbacks.XCallback.callAll(Unknown Source:26) at E.afterHookedMethod(Unknown Source:207) at de.robv.android.xposed.XposedBridge$AdditionalHookInfo.callback(Unknown Source:147) at LSPHooker_.getClassLoader(Unknown Source:8) at android.app.LoadedApk.getResources(LoadedApk.java:980) at android.app.ContextImpl.createAppContext(ContextImpl.java:2420) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5996) at android.app.ActivityThread.-wrap1(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1791) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:7000) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408) [ 2023-04-18T02:52:57.952 10090: 6949: 6949 I/LSPosed-Bridge ] Loading module org.matrix.chromext from /data/app/org.matrix.chromext-_vW-2lai8-H6o19zX-B_9A==/base.apk [ 2023-04-18T02:52:57.963 10090: 6949: 6949 I/LSPosed-Bridge ] Loading class org.matrix.chromext.MainHook [ 2023-04-18T02:52:58.187 10090: 6949: 6949 E/LSPosed-Bridge ] java.lang.ClassNotFoundException: Didn't find class "org.chromium.chrome.browser.ChromeTabbedActivity" on path: DexPathList[[zip file "/data/app/com.android.chrome-WEa_CdfEMQ5B0ogZsZN31g==/base.apk"],nativeLibraryDirectories=[/data/app/com.android.chrome-WEa_CdfEMQ5B0ogZsZN31g==/lib/arm, /data/app/com.android.chrome-WEa_CdfEMQ5B0ogZsZN31g==/base.apk!/lib/armeabi-v7a, /system/lib, /system/vendor/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:125) at java.lang.ClassLoader.loadClass(ClassLoader.java:379) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) at org.matrix.chromext.MainHook.handleLoadPackage(Unknown Source:101) at de.robv.android.xposed.IXposedHookLoadPackage$Wrapper.handleLoadPackage(Unknown Source:2) at de.robv.android.xposed.callbacks.XC_LoadPackage.call(Unknown Source:6) at de.robv.android.xposed.callbacks.XCallback.callAll(Unknown Source:26) at E.afterHookedMethod(Unknown Source:207) at de.robv.android.xposed.XposedBridge$AdditionalHookInfo.callback(Unknown Source:147) at LSPHooker_.getClassLoader(Unknown Source:8) at android.app.LoadedApk.getResources(LoadedApk.java:980) at android.app.ContextImpl.createAppContext(ContextImpl.java:2420) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5996) at android.app.ActivityThread.-wrap1(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1791) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:7000) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)

The issue seems to be:

java.lang.ClassNotFoundException: Didn't find class "org.chromium.chrome.browser.ChromeTabbedActivity"

But I have confirmed that the chrome apk does in fact have org.chromium.chrome.browser.ChromeTabbedActivity present. Any ideas?

Broken on brave

Version: 1.52.126 Chromium: 114.0.5735.133 (Official Build) (64-bit)

Eruda console does not show in the menu whatsoever. Shows update option in developer options but that's it

[Question] Target apps?

Just saw this pop up in the LSPosed list, seems exciting. Can this/will this target Chrome/ium Webview, or just Chrome itself?

Not loading on Background Tabs

When opening a tab in the background if you don't go to the background tab immediately, Chromext won't load (Usersctipts & Eruda Element Hiding) on that tab until you reload the page although if you go immediately to that tab it will load.
Let me explain further by a screen recording example:
In the screen recording pay attention to the highlighted section in my first attempt when i open a tab in the background and I open it immediately it loads hiding element just fine as you can see it hides the "Open App" Element BUT in the second attempt when i wait a little bit before opening the tab it won't load them as you can see there "Open App" Element is shown but if i reload the page then it will load the hiding element as well as the usersctipt on that page.
https://photos.app.goo.gl/fqQ1xJiWRRK65nVh8

Support for Chrome v112 Update

The module works but I can't install any scripts, install prompt doesn't show.
Do you need log or v12 not supported yet?

Running UserScripts Indicator

I got a suggestion that might be interesting to add
• Add an indicator in the page menu that indicates which Usersctipts are running on that page.

module doesn't work

Chrome version
111.0.5563.116(Google Play)

ChromeXt version
2.1.0

Lsposed version
1.8.6 (6857)

system version
11 (API 30)

equipment
Xiaomi Mi 6

system structure
arm64-v8a

Script
https://greasyfork.org/zh-CN/scripts/438684-pagetual

Follow the instructions, click the Chrome menu to download the script, and open it as a text browser after the download is complete, instead of installing the script

Screenshot_20230402-105342_Pixelated_Launcher.png

How to use ChromeXt with Webview based browsers?

I have LSPosed (Zygisk version) installed, but the websites to manage the scripts tell me I don't have ChromeXt installed, nor there's a userscripts related option in the browser.

Hopefully this could be fixed in a future release, take your time and thanks for this module and your efforts in making it

Bromite does not work for some reason

Device: Redmi Note 9S
ROM: Project Blaze 2.5
Android version: 13
Bromite: org.bromite.bromite
Bromite version: 108.0.5359.156 (F-Droid)

Confirmed to work on Chrome 112.0.5615.135 from Playstore.

Chrome v114 Eruda isn't showing

Hi! After updating to Chrome 114.0.5735.57 this morning i can't no longer access Eruda, can you check it? Or do you need any logs?

Improve Userscript Manager Front End

I have a couple suggestions for improving the front end:
• make deleting scripts deletes instantly rather than refreshing the page
• add @description @Version section under the script
• add ability to import Userscript from link/file
• add @updateURL ability for auto updating the Userscript
• add backup/restore ability
These are just suggestions not necessarily important and doesn't effect the performance but hopefully you add them

What is the use case of the Module?

I want it to post in discussion section but didn't find so wanted to post it here. I am curious what is the use case of this module. Can someone briefly explain in simple words?

Support for Bromite

I'm so glad to finally see a LSposed module supporting user scripts. Would it be possible to support Bromite?

Add Webview Support

Please consider adding webview support to project scope if possible. I tried using this on Mulch Webview but it did not work.

Access to the file was denied

This happens when I activate chromext
I am using chrome v108
And to activate chromext in the firstplace i had to clear chrome data
Screenshot_20230403-230406133

Soul

Hi
i use "soul browser"
any chance to make it work ?

Userscripts disappeared

After updating to non standard header and setting up adaway all of my Userscripts have disappeared and I can't install new Userscripts it doesn't show anything in the front end when i install them

PatternSyntaxException causes Chrome crashed

Chrome crashed, and the lsposed log shows

[ 2023-06-28T21:28:03.288    10153: 28117: 28117 I/LSPosed-Bridge  ]   Loading class org.matrix.chromext.MainHook
[ 2023-06-28T21:28:03.744    10153: 28018: 28157 I/LSPosed-Bridge  ] Crash unexpectedly: java.util.regex.PatternSyntaxException: Incorrectly nested parentheses in regexp pattern near index 41
\S*://(\S*\.)?investorschronicle\.co\.uk)
	at com.android.icu.util.regex.PatternNative.compileImpl(Native Method)
	at com.android.icu.util.regex.PatternNative.<init>(PatternNative.java:53)
	at com.android.icu.util.regex.PatternNative.create(PatternNative.java:49)
	at java.util.regex.Pattern.compile(Pattern.java:1446)
	at java.util.regex.Pattern.<init>(Pattern.java:1421)
	at java.util.regex.Pattern.compile(Pattern.java:972)
	at p.j.<init>(SourceFile:1)
	at a.a.g(Unknown Source:65)
	at r.l.a(SourceFile:65)
	at c.a.run(SourceFile:1)

the investorschronicle sinnpet comes from the userscript https://github.com/LegeBeker/bypass-paywalls-tampermonkey/blob/master/bypass-paywalls-tampermonkey.user.js

Dev tools blank space

If you open dev tools and start scrolling down of a webpage a blank space will appear under the dev tools as the one in the screenshot
Screenshot_20221228-135316_Chrome

Add Support For More APIs

Hi, i Have a Particular Script That Requires Some API Which is Not Supported by Chrome XT Unfortunately and I'm asking to support them.

Required APIs:
grant (GM_getValue, GM_setValue, GM_addValueChangeListener, GM_registerMenuCommand, GM_download)

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.