there's jquery everywhere ¯\_(ツ)_/¯
当前为
// ==UserScript==
// @name unicorn
// @namespace http://tampermonkey.net/
// @version 0.3
// @description there's jquery everywhere ¯\_(ツ)_/¯
// @author justrunmyscripts
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js
// @match */*
// @grant none
// @run-at document-end
// @noframes
// ==/UserScript==
(function($) {
'use strict';
console.log('unicorn is running! (tampermonkey script!)');
$('h1,h2,h3,h4,h5,h6,p,i,b,a,ul,li,blockquote,hr,div,ins,strong,em,span').not(':has(*)').each((index, element )=>{
var thestring = $(element).html();
try {
$(element).html(thestring.replace(/unicode/gi, 'unicorn'));
}
catch (err) {
console.log('ERROR: ', err);
}
});
}).bind(this)(jQuery);