Facebook UnWower

This will be the antidote to the Facebook Wower.

目前為 2016-02-25 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Facebook UnWower
// @namespace    facebookWow
// @version      0.1
// @description  This will be the antidote to the Facebook Wower.
// @author       William Nielsen
// @match        http*://www.facebook.com/*
// @run-at       document-end
// @grant        none
// ==/UserScript==
/* jshint -W097 */
'use strict';

function scanForWows(){
    var likeList = document.getElementsByClassName("UFILikeLink UFILinkBright");
    
    for( var i = 0; i < likeList.length; i++ ){
        var a = likeList[i];
        console.log(a);
        if(isSpanWow(a)){
            a.click();
        }
    }
}

function isSpanWow( e ) {

    if( e.children[1].innerHTML == "Wow" )
        return true;
    else
        return false;

}

document.addEventListener("keyup", scanForWows);

QingJ © 2025

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