Skip to content

Commit

Permalink
升级jQuery版本
Browse files Browse the repository at this point in the history
  • Loading branch information
lovevol committed Oct 8, 2023
1 parent 6d3e162 commit edc4c5d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 0 additions & 4 deletions js/jquery-2.2.2.min.js

This file was deleted.

4 changes: 4 additions & 0 deletions js/jquery-3.0.0.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/nineone.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ function injectCustomJs(jsPath) {

// 向页面注入自定义JS
function injectCustomJs2(jsPath) {
jsPath = jsPath || 'js/jquery-2.2.2.min.js';
jsPath = jsPath || 'js/jquery-3.0.0.min.js';
var temp = document.createElement('script');
temp.setAttribute('type', 'text/javascript');
temp.src = chrome.runtime.getURL(jsPath);
temp.onload = function () {
console.log("jquery-2.2.2.min.js on loaded");
console.log("jquery-3.0.0.min.js on loaded");
};
document.body.appendChild(temp);
}
Expand Down
4 changes: 2 additions & 2 deletions js/pornhub.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ function injectCustomJs(jsPath) {

// 向页面注入自定义JS
function injectCustomJs2(jsPath) {
jsPath = jsPath || 'js/jquery-2.2.2.min.js';
jsPath = jsPath || 'js/jquery-3.0.0.min.js';
var temp = document.createElement('script');
temp.setAttribute('type', 'text/javascript');
temp.src = chrome.runtime.getURL(jsPath);
temp.onload = function () {
console.log("jquery-2.2.2.min.js on loaded");
console.log("jquery-3.0.0.min.js on loaded");
};
document.body.appendChild(temp);
}
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"matches": ["http://91porn.com/*", "https://91porn.com/*"]
},
{
"resources": ["js/jquery-2.2.2.min.js"],
"resources": ["js/jquery-3.0.0.min.js"],
"matches": ["http://*/*", "https://*/*"]
},
{
Expand Down

0 comments on commit edc4c5d

Please sign in to comment.