unicorn

there's jquery everywhere ¯\_(ツ)_/¯

目前為 2017-01-24 提交的版本,檢視 最新版本

// ==UserScript==
// @name         unicorn
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  there's jquery everywhere ¯\_(ツ)_/¯
// @author       justrunmyscripts
// @require      https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.2/babel.js
// @require      https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.js
// @require      https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js
// @match        */*
// @grant        none
// @run-at       document-end
// @noframes
// ==/UserScript==

/* jshint ignore:start */
var inline_src = (<><![CDATA[
    /* jshint ignore:end */

    /* jshint esnext: false */
    /* jshint esversion: 6 */

    (function($) {
        'use strict';

        console.log('unicorn is running! (tampermonkey script!)');
        $('*').each((index, element )=>{
            var thestring = $(element).html();
            try {
                $(element).html(thestring.replace(/unicode/gi, 'unicorn'));
            }
            catch (err) {
                console.log('ERROR: ', err);
            }
        });

    }).bind(this)(jQuery);

    /* jshint ignore:start */
]]></>).toString();
                  var c = Babel.transform(inline_src, { presets: [ "es2015", "es2016" ] });
eval(c.code);
/* jshint ignore:end */

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址