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

Is there a function to change the name of an element in DOM? #3045

Closed
ayuanx opened this issue Sep 21, 2017 · 3 comments
Closed

Is there a function to change the name of an element in DOM? #3045

ayuanx opened this issue Sep 21, 2017 · 3 comments

Comments

@ayuanx
Copy link

ayuanx commented Sep 21, 2017

Most anti-ADB scripts manipulate elements with specific name.

Since we can't change the scripts themselves (which I hoped we could by implementing some regex+replace), is it possible to have a function to change the name (instead of style) of an element before the scripts are executed?

Current ability of changing the style of an element doesn't help because those scripts simply replace or delete certain elements by addressing their name.

@ayuanx
Copy link
Author

ayuanx commented Sep 21, 2017

By the way, I found that this plugin is able to regex+replace script code.
https://addons.mozilla.org/en-US/firefox/addon/foxreplace/

I hope uBlock could implement something similar.

@ayuanx
Copy link
Author

ayuanx commented Sep 21, 2017

All right. Moved to support.

@ayuanx ayuanx closed this as completed Sep 21, 2017
@gwarser
Copy link
Contributor

gwarser commented Sep 21, 2017

#2252
#2211 (comment)

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

2 participants