討論 » 開發

Help: Prolem with include in my userscript (userstyle) - It applies to all sites, not only IAFD

§
發表於:2022-08-25

For:
IAFD - Widescreen DARK AND GRAY v.19.65

I don't understand where is the problem:
It applies to all sites, not only IAFD.

§
發表於:2022-08-26

I guess it's the website does change "include" directive while doing that: https://greasyfork.org/help/user-js-conversions

§
發表於:2022-08-26

Maybe try to switch to @match

§
發表於:2022-08-26

Ok, thanks for the info!

I will try to use to @ match...
But i don't understand why in my others userscript / userstyles,
the @ include work well...
The conversion CSS > JS seems have problem with them.
And i don't use very special CSS rules.

Last option:
To the next version uncheck "JS installation".
But... not every body wants use an other extension.

§
發表於:2022-08-27

After a last try, i uncheck the userscript (JS) Install:
But i don't understand why the problem occur...

I post a request in Greasemonkey Feedback:
@ include - Problem de convertion for CSS to JS ?

§
發表於:2022-08-28

Explanation found here:
@ include - Problem de convertion for CSS to JS ?
J. Barnabe explain:
"
The reason is because you have:

@namespace url(http://www.w3.org/1999/xhtml);

outside of any @-moz-document, so it wants to apply that globally. I will see if I can fix it,
but until then, you can simply remove this declaration."

發表回覆

登入以回復