Meneame Simple

Usar conjuntamente con https://userstyles.org/styles/144573/meneame-simple

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name        Meneame Simple
// @namespace   meneame.simple
// @include     https://www.meneame.net/*
// @include     https://www.meneame.net
// @run-at      document-idle
// @version     1.2
// @grant       none
// @description Usar conjuntamente con https://userstyles.org/styles/144573/meneame-simple
// ==/UserScript==
var hideh4 = [
  'etiquetas',
  'más visitadas',
  'destacadas',
  'destacadas',
  'más votadas',
  'suscripciones por RSS'
];
var selector = 'div.sidebox:has(.body.mainsites,h4:contains(' + hideh4.join('),h4:contains(') + '))';

$(document).ready(function () {
  $(selector).remove();
  $('div.sidebox-rounded.orange .body .next:not(:has(*))').remove();
  $('div.sidebox:has(h4:contains(mejores comentarios))').prependTo('#sidebar');
  $('a.comments,div.guest a, div.sidebox div.body h5 a.tooltip, #singlewrap h4 a, .news-body h3 a').not("[href$=\'/standard\']").each(function () {
    this.href = this.href + '/standard';
  });
  var combo = $('div.select-wrapper');
  if (combo.length) {
    var detail = $('.news-details-data-down');
    if (detail.length==0) detail = $('.news-details');
    $('.news-details-data-up').remove();
    detail.attr('style', 'display: block');
    var enlace = $('div.news-details-main');
    var select = combo.find('select');
    select.find('> option:first').text(enlace.find('a.comments').text());
    select.removeAttr('class')
    select.attr('style', 'width: auto; padding-right: 5px;')
    var div = $('<div style=\'line-height: 30px;float: left;\'></div>')
    select.appendTo(div);
    enlace.remove();
    div.prependTo(detail);
    combo.remove();
  }
});