您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Társadalmi félszegségek
// ==UserScript== // @match https://telex.hu/* // @match https://444.hu/* // @match https://hvg.hu/* // @match https://disqus.com/* // @match https://www.origo.hu/* // @match https://www.blikk.hu/* // @match https://index.hu/* // @match https://velvet.hu/* // @name Bübüke // @namespace null // @license MIT // @version 1.0 // @description Társadalmi félszegségek // @author gidiigekau // @match https://*/* // @require https://code.jquery.com/jquery-3.3.1.min.js // @grant none // ==/UserScript== 'use strict'; var $ = window.jQuery; String.prototype.bubukefiltej = function(){ return this.replace(/Zs/g,'S') .replace(/zs/g,'s') .replace(/ssz/g,'ss') .replace(/Sz/g,'Cs') .replace(/sz/g,'cs') .replace(/[ae]z/ig,'$&s') .replace(/R/g,'J') .replace(/r/g,'j') .replace(/ás/g, 'ács') .replace(/ly/g, 'j') .replace(/C/g, 'T') .replace(/c/g, 't') .replace(/ts/g, 'cs') .replace(/azs ([aáeéiíoóöőuúüű]+?)/g, 'a zs$1') .replace(/ [a]zst/ig,' $&at') .replace(/ [e]zst/ig,' $&et'); } function bubuke(){ $('body :not([data-tita]):not(script):not(style):not(img):not(noscript)').contents().each(function(i) { if (i > 10000) { return false; } if(this.nodeType === 3){ if(!$(this).parents('.textarea').length){ $(this).parent().attr('data-tita', 1); this.nodeValue = this.nodeValue.bubukefiltej(); } } }); setTimeout(function(){bubuke();},5000); } $(document).on('click.post_action_button','.post-action__button',function(e){ var ta = $(e.target).parents('.textarea-wrapper').find('.textarea p'); ta.text(ta.text().bubukefiltej()); }); $(document).ready(function(){ bubuke(); });