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

Implement simple and lightweight api functions for JS rules #1250

Closed
confessor-adguard opened this issue Aug 23, 2016 · 1 comment
Closed

Comments

@confessor-adguard
Copy link

Original comment #1099 (comment).

Must-have functions:

  1. window load handler (like AG_onLoad)
$(function() { /* here goes the code */ });

Optional functions:

  1. simple function to remove elements by selector:
$('someelement').remove();
  1. closest parent selector:
$('element').closest('div')
  1. children selector:
$('element').find('selector')

Reference: https://github.com/finom/balalaika

@ameshkov
Copy link
Member

ameshkov commented Feb 9, 2017

In light of possible migration to scriptlets, we do not need it anymore:
AdguardTeam/AdguardFilters#4335

@ameshkov ameshkov closed this as completed Feb 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants