Youtube Comment History batch Delete

use it to delete your youtube comment history at https://myactivity.google.com/page?hl=en&page=youtube_comments

当前为 2021-06-24 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Youtube Comment History batch Delete
  3. // @namespace
  4. // @match https://myactivity.google.com/*
  5. // @grant none
  6. // @version 1.1
  7. // @author wayhee
  8. // @description use it to delete your youtube comment history at https://myactivity.google.com/page?hl=en&page=youtube_comments
  9. // ==/UserScript==
  10. (function () {
  11. 'use strict';
  12. var clicker = function () {
  13. var e = document.querySelectorAll('.YxbmAc .yHy1rc')[Math.random() * 100 >= 50 ? 0 : 1];
  14. if (e) {
  15. console.log("Clicked", e);
  16. e.click();
  17. } else {
  18. console.log("No Button found");
  19. }
  20. };
  21. window.setInterval(clicker, 500);
  22. })();