Skip Gemini Paid Content and Use Advanced

Skip paid content and use try Gemini Advanced button on gemini.google.com

当前为 2024-10-27 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Skip Gemini Paid Content and Use Advanced
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Skip paid content and use try Gemini Advanced button on gemini.google.com
  6. // @author You
  7. // @match https://gemini.google.com/*
  8. // @grant none
  9. // ==/UserScript==
  10. (function() {
  11. 'use strict';
  12. // Function to click the try Gemini Advanced button
  13. function clickGeminiAdvancedButton() {
  14. // Wait for the button to be available
  15. const geminiAdvancedButton = document.querySelector('#tryGeminiAdvancedButton'); // Adjust the selector as needed
  16. if (geminiAdvancedButton) {
  17. // Simulate a click on the button
  18. geminiAdvancedButton.click();
  19. console.log('Clicked try Gemini Advanced button.');
  20. } else {
  21. console.warn('Try Gemini Advanced button not found!');
  22. }
  23. }
  24. // Wait for the page to fully load before running the function
  25. window.addEventListener('load', function() {
  26. // Optionally, add a delay if the button appears after the page load
  27. // setTimeout(clickGeminiAdvancedButton, 2000); // 2 seconds delay, adjust as needed
  28. clickGeminiAdvancedButton();
  29. });
  30. })();