Greasy Fork

Greasy Fork is available in English.

RYM Review Hider

Tired of letting other people's opinions influence your own? This simple userscript hides other user's ratings by default. Already rated a release and want to see what others said? Just press the toggle rating data button.

当前为 2021-04-13 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name     RYM Review Hider
// @version  1
// @require  http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
// @grant    none
// @description  Tired of letting other people's opinions influence your own? This simple userscript hides other user's ratings by default. Already rated a release and want to see what others said? Just press the toggle rating data button.
// @match    https://rateyourmusic.com/release/*
// @match    http://rateyourmusic.com/release/*
// @exclude  /https?://rateyourmusic\.com/.+/reviews/*
// @namespace http://greasyfork.icu/users/758717
// ==/UserScript==

var rating = $('.avg_rating').text();
var hidden = true;

$('.section_reviews').hide();
$('.avg_rating').text("?");
$('.section_catalog').hide();
$('.section_my_catalog').append("<div class='review_btn' id='toggle_reviews'>Click to show rating data</div>");
$('#toggle_reviews').css({"margin": "auto", "display": "block", "background-image": "initial"});

$('#toggle_reviews').on('click', function() {
  hidden == true ? hidden = false : hidden = true;
  $('#toggle_reviews').text(hidden ? "Click to show rating data" : "Click to hide rating data");
  $('.section_reviews').toggle();
  $('.section_catalog').toggle();
  $('.avg_rating').text() == "?" ? $('.avg_rating').text(rating) : $('.avg_rating').text("?");
});