讨论 » 开发

Why this script work only in Firefow Quatum (it's about Change element type from hidden to input) ?

§
发表于:2021-03-29

I make this scrip:
https://greasyfork.org/fr/scripts/16518-0-iafd-search-terms-reveal-v-3-2020

Before it worked fine in all brother but now it work only with Firefox Quantum.
Now, with Waterfox Classic or Chrome it fail.

Where is the problem?.

Info:
StackOverflow, "jQuery: Change element type from hidden to input"
https://stackoverflow.com/questions/540851/jquery-change-element-type-from-hidden-to-input

§
发表于:2021-03-29

Just add this to the script head and it will work

// @require      https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js
§
发表于:2021-03-29

Thanks a lot , it work now!

But why i need to add jquery now?
Before it don't need that.

§
发表于:2021-03-30

why i need to add jquery

Because your code is using it

Before it don't need that

The website was doing a downloading of the jquery before. Now most likely the downloading method has changed and now your script is launching faster than jquery of the website have been loaded

§
发表于:2021-03-30

Thanks:
I understand now...
;-)

发表回复

登录以发表回复。