FurAffinity unwatch

Unwatch all the user in the current watch page, will open a new tab for each unwatch

  1. // ==UserScript==
  2. // @name FurAffinity unwatch
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description Unwatch all the user in the current watch page, will open a new tab for each unwatch
  6. // @author MissNook
  7. // @match https://www.furaffinity.net/controls/buddylist/
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. var headerTab = document.getElementsByClassName("section-header")[0];
  14. createButton(headerTab, unwatch);
  15.  
  16. function createButton(context, func){
  17. var button = document.createElement("input");
  18. button.type = "button";
  19. button.value = "Unwatch this whole page";
  20. button.onclick = func;
  21. button.className = "alt1";
  22. button.style = "padding:0 10px;margin-left:20px";
  23. context.appendChild(button);
  24. }
  25.  
  26. function unwatch(context, func){
  27. var allATag = document.getElementsByTagName("a");
  28.  
  29. for(var i=0;i<allATag.length;i++){
  30. var hrefVal = allATag[i].getAttribute("href");
  31. if(hrefVal != null && hrefVal.indexOf("unwatch") != -1){
  32. window.open(hrefVal, '_blank');
  33. }
  34. }
  35. }
  36. })();

QingJ © 2025

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