Quizlet Show Hidden Flashcards

Show the hidden flashcards in Quizlet without logging in.

当前为 2021-10-26 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Quizlet Show Hidden Flashcards
  3. // @namespace QuizletHack
  4. // @version 0.0.10
  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. setTimeout(function() { //Starts the function when the website finishes loading
  24. //Show all hidden elements and disable the reading function.
  25. document.querySelectorAll("div.SetPageTerm.has-definitionText").forEach(function(FlashCards) { //For every FlashCard
  26. FlashCards.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.cloneNode(true); //Remove all event listeners by cloning the FlashCard element. (This removes the audio)
  30. FlashCards.parentNode.replaceChild(FlashCardClone, FlashCards); //Add our cloned node to the page
  31. } //Finishes the if condition
  32. }) //Finishes the for condition
  33. }, 1500); //Finishes the setTimeout function
  34.  
  35.  
  36. if (document.querySelector(".SetPageTermsStickyBanner.SetPageTermsStickyBanner--hasAdz") !== null) //If the Sign Up Box and the white overlay element exists
  37. { //Starts the if condition
  38. document.querySelector("div.SetPageWall.SetPageWall--normal").remove(); //Remove the Sign Up Box and the white overlay above this box
  39. } //Finishes the if condition
  40.  
  41. if (document.querySelector("#setPageSetIntroWrapper") !== null) //If the big flashcards in the top element exists
  42. { //Starts the if condition
  43. document.querySelector("#setPageSetIntroWrapper").remove(); //Remove the big Flashcards in the top
  44. } //Finishes the if condition
  45. if (document.querySelector("div.SetPageStickyHeader.hgmlhdt") !== null) //If the top menu element exists
  46. { //Starts the if condition
  47. document.querySelector("div.SetPageStickyHeader.hgmlhdt").remove(); //Remove the top menu
  48. } //Finishes the if condition
  49.  
  50. document.querySelector("div.SetPage-setDetailsInfoWrapper").remove(); //Remove the user name that created the quiz
  51. document.querySelector("div.SetPage-content").remove(); //Remove the tags related to the quiz set
  52. document.querySelector("#TopNavigationReactTarget").remove(); //Remove the top blue navigation menu
  53.  
  54. if (document.querySelector("#setPageSetLinksWrapper") !== null) //If the "THIS SET IS OFTEN IN FOLDERS WITH..." box element exists
  55. { //Starts the if condition
  56. document.querySelector("#setPageSetLinksWrapper").remove(); //Remove everything inside the "THIS SET IS OFTEN IN FOLDERS WITH..." box
  57. } //Finishes the if condition
  58.  
  59. document.querySelector("footer").remove(); //Remove the needlessly big footer
  60.  
  61. if (document.querySelector(".SetPageTermsStickyBanner.SetPageTermsStickyBanner--hasAdz") !== null) //If the stick footer banner element exists
  62. { //Starts the if condition
  63. document.querySelector(".SetPageTermsStickyBanner.SetPageTermsStickyBanner--hasAdz").remove(); //Remove the stick footer banner
  64. } //Finishes the if condition
  65. if (document.querySelector("#UniversalUpsellTarget > div") !== null) //If the "save time with an expert" message element exists
  66. { //Starts the if condition
  67. document.querySelector("#UniversalUpsellTarget > div").remove(); //Remove the "save time with an expert" message
  68. } //Finishes the if condition
  69. if (document.querySelector("div.wugyavo") !== null) //If the "Sign up and see the remaining cards. It’s free!" box element exists
  70. { //Starts the if condition
  71. document.querySelector("div.wugyavo").remove(); //Remove the "Sign up and see the remaining cards. It’s free!" box
  72. } //Finishes the if condition
  73. }, 1000); //Finishes the onload function
  74. } //Finishes the if condition
  75. })();

QingJ © 2025

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