您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes the annoying UP NEXT popup from Facebook videos and cancels the next video play automatically.
当前为
// ==UserScript== // @name Remove Facebook Play Next Popup // @description Removes the annoying UP NEXT popup from Facebook videos and cancels the next video play automatically. // @version 0.1 // @author Ariel Jannai // @namespace https://github.com/arieljannai/tampermonkey-scripts // @supportURL https://github.com/arieljannai/tampermonkey-scripts/issues // @match https://www.facebook.com/*/videos/* // @require https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js // @grant none // @license MIT // ==/UserScript== 'use strict'; (function waitForUpNextToDisaply() { var selector = $("div:contains('UP NEXT')").eq(-8) if(selector.length === 1) { // remove the popup and cancel the play next selector.remove(); console.log('popup removed!'); return; } else { setTimeout(function() { waitForUpNextToDisaply(); }, 500); } })();