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

Support multiple layers for find_source #1303

Open
qsniyg opened this issue Mar 23, 2024 · 0 comments
Open

Support multiple layers for find_source #1303

qsniyg opened this issue Mar 23, 2024 · 0 comments
Labels
enhancement New feature or request topic:userscript

Comments

@qsniyg
Copy link
Owner

qsniyg commented Mar 23, 2024

Thanks to Noodlers on discord for the idea:

there is an issue with small background images overriding links
with Exclude background-images setting disabled (default) i found that if you have an html link pointing to, say, a youtube url and it has a background css set to some data: url in a ::before pseudo element it will try to expand that data: url instead of following to the youtube url and fail to open a popup with

userscript.user.js:111293 Image too small to popup (16x12)

it might be desirable for it to try to open a background image but i think if it fails it should try to continue searching for something else to expand
but also, i feel like an option for disabling popping up data: and blob: urls should exist as well
here is a minimal example:

<style>
.linkify.youtube::before{
    content: "";
    background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAMCAYAAABr5z2BAAABIklEQVQoz53LvUrDUBjG8bOoOammSf1IoBSvoCB4JeIqOHgBLt6AIMRBBQelWurQ2kERnMRBsBUcIp5FJSBI5oQsJVkkUHh8W0o5nhaFHvjBgef/Mq+Q46RJBMkI/vE+aOus956tnEswIZe1LV0QyJ5sE2GzgZfVMtRNIdiDpccEssdlB1mW4bvTwdvWJtRdErM7U+8S/FJykCRJX5qm+KpVce8UMNLRLbulz4iSjTAMh6Iowsd5BeNadp3nUF0VlxAEwZBotXC0Usa4ll3meZdA1iguwvf9vpvDA2wvmKgYGtSud8suDB4TyGr2PF49D/vra9jRZ1BVdknMzgwuCGSnZEObwu6sBnVTCHZiaC7BhFx2PKdxUidiAH/4lLo9Mv0DELVs9qsOHXwAAAAASUVORK5CYII=) center left no-repeat !important;
    padding-left: 18px;
}
</style>
<a class="linkify youtube" rel="noreferrer noopener" target="_blank" href="https://youtu.be/KkeJkxAMbeI">https://youtu.be/KkeJkxAMbeI</a>
@qsniyg qsniyg added enhancement New feature or request topic:userscript labels Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request topic:userscript
Projects
None yet
Development

No branches or pull requests

1 participant