您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Filters out non-free games
// ==UserScript== // @name Oculus Rift Experiences Filter // @namespace http://slugsource.com/ // @version 1.0 // @description Filters out non-free games // @author Natalie Fearnley // @match https://www.oculus.com/experiences/rift/ // @grant none // @require http://code.jquery.com/jquery-latest.min.js // ==/UserScript== function getPrice(game) { return game.find("._5xkb").text(); } function isFree() { var text = getPrice($(this)); return text === "Free"; } function isPaid() { var text = getPrice($(this)); return text !== "Free" & text !== ""; } function isPaidOnlyRow() { var games = $(this).find("._tco"); return games.filter(isFree).length === 0; } function hidePaid() { FreeGames = $("._tco").filter(isFree); PaidGames = $("._tco").filter(isPaid); PaidGames.hide(); PaidOnlyRows = $("._tcj").filter(isPaidOnlyRow); PaidOnlyRows.hide(); } $().ready(hidePaid);