@require library A OR library B possible?

20 views
Skip to first unread message

Ben Stover

unread,
Nov 4, 2016, 4:24:54 AM11/4/16
to Greasemonkey Users
I am using sometimes a GM script header statement like

// @require http://code.jquery.com/jquery-latest.js

in my GM scripts. It works in general.

Now it occurs occasionally that the jquery.com server seems not available and a download error popup appears when the GM script is executed.

Most probably the jquery.com server is down due to maintenance tasks or other remote network problems (Internet in general can be accessed from here without a problem).

So the best solution for that would be I could specify an alternative location for the required libraries similar to

// @require http://code.jquery.com/jquery-latest.js OR http://mirror.com/jquery-latest.js

or

// @requireOR {http://code.jquery.com/jquery-latest.js,http://mirror.com/jquery-latest.js}

Is this possible?

Ben


Reply all
Reply to author
Forward
0 new messages