Mfw

try to take over the world!

  1. // ==UserScript==
  2. // @name Mfw
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author You
  7. // @match http://www.mafengwo.cn/search/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. function openall(){
  13. alert('afs')
  14. }
  15. 'use strict';
  16. console.log('version')
  17.  
  18.  
  19. $('.s-head-logo').append('<button id="sad">click me open all tag</button>')
  20. var aList = []
  21. console.log($('.att-list ul li div .flt1 a').length)
  22. for (var i=0;i<$('.att-list ul li div .flt1 a').length;i++){
  23.  
  24. aList.push($('.att-list ul li div .flt1 a')[i].href)
  25.  
  26. }
  27. console.log(aList)
  28. $('#sad').click(function(){
  29. for(i in aList){
  30. window.open(aList[i], "_blank")
  31.  
  32. }
  33.  
  34. })
  35.  
  36.  
  37.  
  38.  
  39.  
  40. // Your code here...
  41. })();
  42.