Like/Follow

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

目前為 2016-01-06 提交的版本,檢視 最新版本

// ==UserScript==
// @name        Like/Follow
// @namespace   http://androidhelp24.jimdo.com
// @description Like or Follow all posts or people on the Wall with only one click.
// @include     http://facebook.com
// @include     http://facebook.com/*
// @include     http://www.facebook.com
// @include     http://www.facebook.com/*
// @include     https://facebook.com/*
// @include     https://facebook.com
// @include     https://www.facebook.com/*
// @include     https://www.facebook.com
// @include     http://twitter.com/*
// @include     http://www.twitter.com/*
// @include     https://twitter.com/*
// @include     https://www.twitter.com/*
// @version     0.1
// @grant       none
// ==/UserScript==

// ==facebookLikeButton==

// facebook un/Like button create
var btnLike = document.createElement( 'input' );
with( btnLike ) {
  setAttribute( 'type', 'button' );
  setAttribute( 'value', 'Un/Like' );
  setAttribute( 'onclick', 'javascript: var inputs = document.getElementsByClassName("_48-k UFILikeLink"); for(var i=0; i<inputs.length;i++) { inputs[i].click(); }' );
  setAttribute( 'style', 'position: fixed; top: 55px; 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 5px 2px 5px;')
}

// append at end
document.getElementsByTagName( 'body' )[ 0 ].appendChild( btnLike );

// ==/facebookLikeButton==

// ==twitterFollowButton==

// twitter un/Follow button create
var btnFollow = document.createElement( 'input' );
with( btnFollow ) {
  setAttribute( 'type', 'button' );
  setAttribute( 'value', 'Un/Follow' );
  setAttribute( 'onclick', 'javascript: var inputs = document.getElementsByClassName("small-follow-btn follow-btn btn small follow-button js-recommended-item"); for(var i=0; i<inputs.length;i++) { inputs[i].click(); }' );
  setAttribute( 'style', 'position: fixed; top: 55px; left: 70px; 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 5px 2px 5px;')
}

// append at end
document.getElementsByTagName( 'body' )[ 0 ].appendChild( btnFollow );

// ==/twitterFollowButton==

// ==infoButton==

// info button create
var btnInfo = document.createElement( 'span' );
with( btnInfo ) {
  innerHTML = "<a href='http://androidhelp24.jimdo.com' target='_blank' style='text-decoration: none;'> Info </a>"
  setAttribute( 'style', 'position: fixed; top: 85px; 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;')
}

// append at end
document.getElementsByTagName( 'body' )[ 0 ].appendChild( btnInfo );

// ==/infoButton==

// Einfügen erlauben

QingJ © 2025

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