Quizlet Show Hidden Flashcards

Show the hidden flashcards in Quizlet without logging in.

当前为 2021-09-30 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Quizlet Show Hidden Flashcards
  3. // @namespace QuizletHack
  4. // @version 0.0.7
  5. // @description Show the hidden flashcards in Quizlet without logging in.
  6. // @author hacker09
  7. // @match *://quizlet.com/*
  8. // @icon https://assets.quizlet.com/a/j/dist/i/favicon.6e263725c926227.ico
  9. // @require https://gf.qytechs.cn/scripts/21927-arrive-js/code/arrivejs.js
  10. // @grant none
  11. // @run-at document-end
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16. var DisableReading = true; //If true the Reading function will be disabled
  17. var RemoveNeedlessThings = true; //If true the Needless Things will be removed
  18.  
  19. if (RemoveNeedlessThings === true) //If the RemoveNeedlessThings variable is true
  20. { //Starts the if condition
  21. window.onload = setTimeout(function() { //Starts the function when the website finishes loading
  22.  
  23. //Show all hidden elements and disable the reading function.
  24. var FlashCards = document.getElementsByClassName("SetPageTerm has-definitionText"); //Get all flashcards
  25. for (var i = 0; i < FlashCards.length; i++) { //For every FlashCard
  26. FlashCards[i].className = "SetPageTerm has-definitionText is-showing"; //Change the FlashCard element class name so that the card is shown
  27. if (DisableReading === true) //If the DisableReading variable is true
  28. { //Starts the if condition
  29. var FlashCardClone = FlashCards[i].cloneNode(true); //Remove all event listeners by cloning the FlashCard element. (This removes the audio)
  30. FlashCards[i].parentNode.replaceChild(FlashCardClone, FlashCards[i]); //Add our cloned node to the page
  31. } //Finishes the if condition
  32. } //Finishes the for condition
  33.  
  34.  
  35. if (document.querySelector(".SetPageTermsStickyBanner.SetPageTermsStickyBanner--hasAdz") !== null) //If the Sign Up Box and the white overlay element exists
  36. { //Starts the if condition
  37. document.querySelector("div.SetPageWall.SetPageWall--normal").remove(); //Remove the Sign Up Box and the white overlay above this box
  38. } //Finishes the if condition
  39.  
  40. if (document.querySelector("#setPageSetIntroWrapper") !== null) //If the big flashcards in the top element exists
  41. { //Starts the if condition
  42. document.querySelector("#setPageSetIntroWrapper").remove(); //Remove the big Flashcards in the top
  43. } //Finishes the if condition
  44. if (document.querySelector("div.SetPageStickyHeader.hgmlhdt") !== null) //If the top menu element exists
  45. { //Starts the if condition
  46. document.querySelector("div.SetPageStickyHeader.hgmlhdt").remove(); //Remove the top menu
  47. } //Finishes the if condition
  48.  
  49. document.querySelector("div.SetPage-setDetailsInfoWrapper").remove(); //Remove the user name that created the quiz
  50. document.querySelector("div.SetPage-content").remove(); //Remove the tags related to the quiz set
  51. document.querySelector("#TopNavigationReactTarget").remove(); //Remove the top blue navigation menu
  52.  
  53. if (document.querySelector("#setPageSetLinksWrapper") !== null) //If the "THIS SET IS OFTEN IN FOLDERS WITH..." box element exists
  54. { //Starts the if condition
  55. document.querySelector("#setPageSetLinksWrapper").remove(); //Remove everything inside the "THIS SET IS OFTEN IN FOLDERS WITH..." box
  56. } //Finishes the if condition
  57.  
  58. document.querySelector("footer").remove(); //Remove the needlessly big footer
  59.  
  60. if (document.querySelector(".SetPageTermsStickyBanner.SetPageTermsStickyBanner--hasAdz") !== null) //If the stick footer banner element exists
  61. { //Starts the if condition
  62. document.querySelector(".SetPageTermsStickyBanner.SetPageTermsStickyBanner--hasAdz").remove(); //Remove the stick footer banner
  63. } //Finishes the if condition
  64. if (document.querySelector("#UniversalUpsellTarget > div") !== null) //If the "save time with an expert" message element exists
  65. { //Starts the if condition
  66. document.querySelector("#UniversalUpsellTarget > div").remove(); //Remove the "save time with an expert" message
  67. } //Finishes the if condition
  68. if (document.querySelector("div.wugyavo") !== null) //If the "Sign up and see the remaining cards. It’s free!" box element exists
  69. { //Starts the if condition
  70. document.querySelector("div.wugyavo").remove(); //Remove the "Sign up and see the remaining cards. It’s free!" box
  71. } //Finishes the if condition
  72. }, 3000); //Finishes the onload function
  73. } //Finishes the if condition
  74. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址