Skip to content

Commit

Permalink
sửa nốt phát cuối
Browse files Browse the repository at this point in the history
  • Loading branch information
J2TeamNNL committed Sep 6, 2020
1 parent 9b05d89 commit 4d74997
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
3 changes: 0 additions & 3 deletions scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ function _updateBadge() {
// Convert anything to string

if (typeof str !== "string") str = "" + str;
// Because the badge has limited space, it should have 4 characters or less.
// Convert anything to string
if (typeof(str) !== "string") str = "" + str;
chrome.browserAction.setBadgeBackgroundColor({
color: color
});
Expand Down
1 change: 0 additions & 1 deletion scripts/contentscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,5 @@ function replaceWithImage(this_div_parent) {
width = msg.response.width;
height = msg.response.height;
this_div_parent.append("\n <div class=\"l9j0dhe7\">\n <div class=\"l9j0dhe7\">\n <a href=\"".concat(link_photo, "\" target=\"_blank\" role=\"link\" tabindex=\"0\" class=\"oajrlxb2 gs1a9yip g5ia77u1 mtkw9kbi tlpljxtp qensuy8j ppp5ayq2 goun2846 ccm00jje s44p3ltw mk2mc5f4 rt8b4zig n8ej3o3l agehan2d sk4xxmp2 rq0escxv nhd2j8a9 a8c37x1j mg4g778l btwxx1t3 pfnyh3mw p7hjln8o kvgmc6g5 cxmmr5t8 oygrvhab hcukyx3x tgvbjcpo hpfvmrgz jb3vyjys rz4wbd8a qt6c0cv9 a8nywdso l9j0dhe7 i1ao9s8h esuyzwwr f1sip0of du4w35lb lzcic4wl abiwlrkh p8dawk7l tm8avpzi\">\n <div class=\"bp9cbjyn tqsryivl j83agx80 cbu4d94t ni8dbmo4 stjgntxs l9j0dhe7 k4urcfbm\"\n style=\"background-color: rgb(11, 6, 12);\">\n <div\n style=\"max-width:100%;min-width:500px;width:calc((100vh + -325px) * 0.6666666666666666);height:625px\">\n <div class=\"do00u71z ni8dbmo4 stjgntxs l9j0dhe7\" style=\"padding-top:150%\">\n <img\n width=\"").concat(width, "\"\n height=\"").concat(height, "\"\n class=\"i09qtzwb n7fi1qx3 datstx6m pmk7jnqg j9ispegn kr520xx4 k4urcfbm bixrwtb6\"\n src=\"").concat(link_photo, "\">\n </div>\n </div>\n </div>\n </a>\n </div>\n </div>\n "));
chrome.runtime.sendMessage({updateBadge: ""});
});
}
9 changes: 0 additions & 9 deletions scripts/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ for (var _i = 0, _Array$from = Array.from(document.querySelectorAll(".msg")); _i
chrome.storage.local.get("opts", function (_ref) {
var opts = _ref.opts;

console.log(opts);
for (var inpName in opts) {
<<<<<<< HEAD
var input = document.querySelector("[name=".concat(inpName, "][type='checkbox']"));
input.checked = opts[inpName];
if (opts[inpName]) input.parentElement.classList.add("checked");
Expand All @@ -28,13 +26,6 @@ chrome.storage.local.get("opts", function (_ref) {
}
});
} else {}
=======
let input = document.querySelector(`[name=${inpName}][type='checkbox']`);

input.checked = opts[inpName];
if (opts[inpName]) input.parentElement.classList.add("checked");
if (opts[inpName] && inpName === "contains_keywords") $("#div_contains_keywords").show();
>>>>>>> d07e3527536bf15c1af556f4d5620d3e65c1ce77
}
});

Expand Down

0 comments on commit 4d74997

Please sign in to comment.