Skip to content

Commit

Permalink
beta 11 push; update selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
tadhgj committed Feb 13, 2025
1 parent cce277d commit e7fd849
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions combined.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ $(document).ready(function() {
//DOM setup

//add Quizlet++ button
$(".anbpm9l").prepend(`<div class='o1c0xcc3'><button class="AssemblyButtonBase AssemblySecondaryButton AssemblyButtonBase--medium AssemblyButtonBase--padding AssemblyButtonBase--border quizletplusplusbutton" type="button" style="margin-right:16px">Q++</button></div>`);
$(".arc6ilh").prepend(`<div class='o1c0xcc3'><button class="AssemblyButtonBase AssemblySecondaryButton AssemblyButtonBase--medium AssemblyButtonBase--padding AssemblyButtonBase--border quizletplusplusbutton" type="button" style="margin-right:0px">Q++</button></div>`);

// find span with text 'Get unlimited access', and remove the third parent
$(".StudyModesLayout div.c8mixic span:contains('Get unlimited access')").parent().parent().parent().remove();
// $(".StudyModesLayout div.c8mixic span:contains('Get unlimited access')").parent().parent().parent().remove();

// find span with text 'Start free trial', and remove the third parent
$(".StudyModesLayout div span:contains('Start free trial')").parent().parent().parent().remove();
$(".StudyModesLayout span:contains('Start free trial')").parent().parent().parent().remove();

//add Quizlet++ popup container
$(".StudyModesLayout").append("<div class='quizletpluspluspopupcontainer'></div>");
Expand All @@ -41,7 +41,7 @@ $(document).ready(function() {
//ON CLICK OF QUIZLET BUTTON
$(".site").on("click",".quizletplusplusbutton", function() {
console.log("Quizlet++ Button Click");
$(".quizletplusplusbutton").text("Quizlet++ ✔️");
$(".quizletplusplusbutton").text("Q++ ✔️");
if (!serviceRunning) {
popup("Quizlet++ is now working|. Correct answers will be indicated with a dashed border on mouseover. Click away!");
serviceRunning = true;
Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"128":"128x128.png"
},
"short_name":"Q++",
"version":"1.10.0",
"version_name":"Beta Build 10",
"version":"1.11.0",
"version_name":"Beta Build 11",
"content_scripts": [
{
"matches": [
Expand Down
3 changes: 1 addition & 2 deletions match.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ $(document).ready(function() {
//DOM setup

//add Quizlet++ button
$(".anbpm9l").prepend(`<div class="o1c0xcc3"><button type="button" aria-label="Options" class="AssemblyButtonBase AssemblySecondaryButton AssemblyButtonBase--medium AssemblyButtonBase--padding quizletplusplusbutton" style="margin-right: 16px"><span>Q++</span></button></div>`);

$(".arc6ilh").prepend(`<div class='o1c0xcc3'><button class="AssemblyButtonBase AssemblySecondaryButton AssemblyButtonBase--medium AssemblyButtonBase--padding AssemblyButtonBase--border quizletplusplusbutton" type="button" style="margin-right:0px">Q++</button></div>`);

//add Quizlet++ popup container
$(".cvmjmph").append("<div class='quizletpluspluspopupcontainer'></div>");
Expand Down

0 comments on commit e7fd849

Please sign in to comment.