ublock rule to extract “isOpenMTubes” only from. try to think before your output a new…
- User
ublock rule to extract “isOpenMTubes” only from. try to think before your output a new ublock rule:
- Assistant
To extract only the specific part "isOpenMTubes" from the given HTML class attribute using uBlock Origin, you can use the following rule:
codeexample.com##body[class^="logged-out"][class*="isOpenMTubes"]Replace "example.com" with the actual domain you want to apply this rule to.
This rule applies to the body element on the page that has both "logged-out" and "isOpenMTubes" in its class attribute. The "^=" operator ensures that the class attribute starts with "logged-out", while the "*=" operator checks for "isOpenMTubes" anywhere within the attribute.
- User
and which character between "]["?
- Assistant
Apologies for the confusion caused. You should use the space character between "][" in the uBlock Origin rule. Here's the corrected rule:
codeexample.com##body[class^="logged-out"][class*=" isOpenMTubes"]Please note that there is a space before "isOpenMTubes" in the rule, to ensure that it matches elements with the class attribute as "logged-out isOpenMTubes". Again, remember to replace "example.com" with the actual domain you are targeting.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.