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

Fix url from googlecode.com to rawgit.com #1

Closed
wants to merge 1 commit into from
Closed
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
Fix url from googlecode.com to rawgit.com
taiju committed Aug 1, 2016

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 676f50d3292f346173607cdf3cc63dc7a1acdbc2
2 changes: 1 addition & 1 deletion plugins/QuickRebuild/tmpl/mt-rebuild-current-tag.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function() {
var tag = 'mt-rebuild_0.4';
var tag = 'v0.6.3';
if (window.ToIMT_loaded_tag != tag) {
window.ToIMT_updated_callback(tag);
}
6 changes: 3 additions & 3 deletions plugins/QuickRebuild/tmpl/mt-rebuild.js
Original file line number Diff line number Diff line change
@@ -104,7 +104,7 @@ function ToIMT (param) {
this.Version = '0.1';
this.Tag = (function() {
var ss = document.getElementsByTagName("script");
var re = new RegExp('/quickrebuild-mtplugin\\.googlecode\\.com/svn/tags/([^/]*)/tmpl/mt-rebuild\\.js');
var re = new RegExp(/cdn\.rawgit\.com\/usualoma\/mt-plugin-QuickRebuild\/([^\/]*)\/plugins\/QuickRebuild\/tmpl\/mt-rebuild\.js/);
var i;
for(i = 0; i < ss.length; i++) {
var s = ss[i];
@@ -206,7 +206,7 @@ ToIMT.prototype.check_version = function(onUpdated) {
var s = document.createElement("script");
s.charset = "UTF-8";
s.type = 'text/javascript';
s.src = '//quickrebuild-mtplugin.googlecode.com/svn/trunk/tmpl/mt-rebuild-current-tag.js';
s.src = '//cdn.rawgit.com/usualoma/mt-plugin-QuickRebuild/master/plugins/QuickRebuild/tmpl/mt-rebuild-current-tag.js';
document.body.appendChild(s)

return false;
@@ -317,7 +317,7 @@ ToIMT.prototype.rebuild_all = function() {
var div = getById('new_version');

var a = div.getElementsByTagName('a')[0];
a.href = 'javascript:(function(){var%20s=document.createElement(%22script%22);s.charset=%22UTF-8%22;s.type=%22text/javascript%22;s.src=%22//quickrebuild-mtplugin.googlecode.com/svn/tags/' + tag + '/tmpl/mt-rebuild.js%22;document.body.appendChild(s)})();';
a.href = 'javascript:(function(){var%20s=document.createElement(%22script%22);s.charset=%22UTF-8%22;s.type=%22text/javascript%22;s.src=%22//cdn.rawgit.com/usualoma/mt-plugin-QuickRebuild/' + tag + '/plugins/QuickRebuild/tmpl/mt-rebuild.js%22;document.body.appendChild(s)})();';
a.onclick = function() {
return false;
};