Greasy Fork镜像 还支持 简体中文。

Like/Follow

Like or Follow all posts or people on the Wall with only one click.

  1. // ==UserScript==
  2. // @name Like/Follow
  3. // @autor Dany Thill (SyfuxX)
  4. // @namespace http://androidhelp24.jimdo.com
  5. // @description Like or Follow all posts or people on the Wall with only one click.
  6. // @include http://facebook.com
  7. // @include http://facebook.com/*
  8. // @include http://www.facebook.com
  9. // @include http://www.facebook.com/*
  10. // @include https://facebook.com/*
  11. // @include https://facebook.com
  12. // @include https://www.facebook.com/*
  13. // @include https://www.facebook.com
  14. // @include http://twitter.com/*
  15. // @include http://www.twitter.com/*
  16. // @include https://twitter.com/*
  17. // @include https://www.twitter.com/*
  18. // @version 0.2
  19. // @grant none
  20. // ==/UserScript==
  21.  
  22. /*
  23. This Script is Copyright secured.
  24. Copyright © 2016 AndroidHelp24
  25. */
  26.  
  27. // ==facebookLikeButton==
  28.  
  29. // facebook Like button create
  30. var btnFbLike = document.createElement( 'input' );
  31. with( btnFbLike ) {
  32. setAttribute( 'type', 'button' );
  33. setAttribute( 'value', 'Like' );
  34. setAttribute( 'onclick', 'javascript: var inputs = document.getElementsByClassName("_48-k UFILikeLink"); for(var i=0; i<inputs.length;i++) { inputs[i].click(); }' );
  35. setAttribute( 'style', 'position: fixed; top: 55px; left: 10px; font-weight: bold; font-size: 12px; font-family: calibri; color: white; black; border: 1px solid; border-radius: 25px; background-color: rgb(70, 98, 158); padding: 2px 5px 2px 5px;' )
  36. }
  37.  
  38. // append at end
  39. document.getElementsByTagName( 'body' )[ 0 ].appendChild( btnFbLike );
  40.  
  41. // ==/facebookLikeButton==
  42.  
  43. // ==facebookAddPeopleButton==
  44.  
  45. // facebook addPeople button create
  46. var btnFbAdd = document.createElement( 'input' );
  47. with( btnFbAdd ) {
  48. setAttribute( 'type', 'button' );
  49. setAttribute( 'value', 'Add' );
  50. setAttribute( 'onclick', 'javascript: var inputs = document.getElementsByClassName("_42ft _4jy0 FriendRequestAdd addButton _4jy3 _4jy1 selected _51sy"); for(var i=0; i<inputs.length;i++) { inputs[i].click(); }' );
  51. setAttribute( 'style', 'position: fixed; top: 55px; left: 50px; font-weight: bold; font-size: 12px; font-family: calibri; color: white; border: 1px solid; border-radius: 25px; background-color: rgb(70, 98, 158); padding: 2px 5px 2px 5px;' )
  52. }
  53.  
  54. // append at end
  55. document.getElementsByTagName( 'body' )[ 0 ].appendChild( btnFbAdd );
  56.  
  57. // ==/facebookAddPeopleButton==
  58.  
  59.  
  60. // ==twitterLikeButton==
  61.  
  62. // twitter Like button create
  63. var btnTwitterLike = document.createElement( 'input' );
  64. with( btnTwitterLike ) {
  65. setAttribute( 'type', 'button' );
  66. setAttribute( 'value', 'Like' );
  67. setAttribute( 'onclick', 'javascript: var inputs = document.getElementsByClassName("ProfileTweet-actionButton js-actionButton js-actionFavorite"); for(var i=0; i<inputs.length;i++) { inputs[i].click(); }' );
  68. setAttribute( 'style', 'position: fixed; top: 85px; left: 10px; font-weight: bold; font-size: 12px; font-family: calibri; color: white; border: 1px solid; border-radius: 25px; background-color: rgb(85, 172, 238); padding: 2px 5px 2px 5px;' )
  69. }
  70.  
  71. // append at end
  72. document.getElementsByTagName( 'body' )[ 0 ].appendChild( btnTwitterLike );
  73.  
  74. // ==/twitterLikeButton==
  75.  
  76. // ==twitterFollowButton==
  77.  
  78. // twitter Follow button create
  79. var btnTwitterFollow = document.createElement( 'input' );
  80. with( btnTwitterFollow ) {
  81. setAttribute( 'type', 'button' );
  82. setAttribute( 'value', 'Follow' );
  83. setAttribute( 'onclick', 'javascript: var inputs = document.getElementsByClassName("user-actions-follow-button js-follow-btn follow-button btn"); for(var i=0; i<inputs.length;i++) { inputs[i].click(); }' );
  84. setAttribute( 'style', 'position: fixed; top: 85px; left: 50px; font-weight: bold; font-size: 12px; font-family: calibri; color: white; border: 1px solid; border-radius: 25px; background-color: rgb(85, 172, 238); padding: 2px 5px 2px 5px;' )
  85. }
  86.  
  87. // append at end
  88. document.getElementsByTagName( 'body' )[ 0 ].appendChild( btnTwitterFollow );
  89.  
  90. // ==/twitterFollowButton==
  91.  
  92. // ==infoButton==
  93.  
  94. // info button create
  95. var btnInfo = document.createElement( 'span' );
  96. with( btnInfo ) {
  97. innerHTML = "<a href='http://androidhelp24.jimdo.com' target='_blank' style='text-decoration: none;'> Info </a>"
  98. setAttribute( 'style', 'position: fixed; top: 115px; left: 10px; font-weight: bold; font-size: 12px; font-family: calibri; color: rgb(70, 98, 158); border: 1px solid; border-color: rgb(70, 98, 158); border-radius: 25px; background-color: white; padding: 2px 10px 2px 10px;')
  99. }
  100.  
  101. // append at end
  102. document.getElementsByTagName( 'body' )[ 0 ].appendChild( btnInfo );
  103.  
  104. // ==/infoButton==
  105.  
  106. // ==versionText==
  107.  
  108. var versionText = document.createElement( 'span' );
  109. with( versionText ) {
  110. innerHTML = "<span>Version: 0.2</span>"
  111. setAttribute( 'style', 'position: fixed; top: 115px; left: 55px; font-weight: bold; font-size: 12px; font-family: calibri; color: rgb(70, 98, 158); border: 1px solid; border-color: rgb(70, 98, 158); border-radius: 25px; background-color: white; padding: 2px 10px 2px 10px;')
  112. }
  113.  
  114. // append at end
  115. document.getElementsByTagName( 'body' )[ 0 ].appendChild( versionText );
  116.  
  117. // ==/versionText==
  118.  
  119. // Einfügen erlauben

QingJ © 2025

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