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

Use jsDelivr for CDN #180

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions SECloseVoteRequestGenerator.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
// @exclude *://chat.*.stackexchange.com/*
// @exclude *://api.*.stackexchange.com/*
// @exclude *://data.stackexchange.com/*
// @require https://code.jquery.com/jquery-2.1.4.min.js
// @require https://github.com/SO-Close-Vote-Reviewers/UserScripts/raw/master/gm4-polyfill.js
// @connect github.com
// @connect raw.githubusercontent.com
// @require https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js
// @require https://cdn.jsdelivr.net/gh/SO-Close-Vote-Reviewers/UserScripts@master/gm4-polyfill.js
// @connect cdn.jsdelivr.net
// @connect chat.stackoverflow.com
// @connect chat.stackexchange.com
// @connect chat.meta.stackexchange.com
Expand Down Expand Up @@ -139,7 +138,7 @@ if(typeof StackExchange === "undefined")
var reasons = currentSiteConfig.quickSubstitutions;
var offTopicCloseReasons = currentSiteConfig.offTopicCloseReasons;

var URL = "https://github.com/SO-Close-Vote-Reviewers/UserScripts/raw/master/SECloseVoteRequestGenerator.user.js";
var URL = "https://cdn.jsdelivr.net/gh/SO-Close-Vote-Reviewers/UserScripts@master/SECloseVoteRequestGenerator.user.js";
var notifyint = 0;
function notify(m,t) {
var timeout;
Expand Down Expand Up @@ -181,7 +180,7 @@ if(typeof StackExchange === "undefined")
function checkUpdates(force) {
GM.xmlHttpRequest({
method: 'GET',
url: 'https://raw.githubusercontent.com/SO-Close-Vote-Reviewers/UserScripts/master/SECloseVoteRequestGenerator.version',
url: 'https://cdn.jsdelivr.net/gh/SO-Close-Vote-Reviewers/UserScripts@master/SECloseVoteRequestGenerator.version',
onload: function(response) {
var VERSION = response.responseText.trim();
if(isVersionNewer(VERSION,GM.info.script.version)) {
Expand Down