MediaWiki:Gadget-Emotion.js:修订间差异

删除647字节 、​ 2021年5月20日 (星期四)
无编辑摘要
imported>=海豚=
无编辑摘要
imported>=海豚=
无编辑摘要
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
"use strict";
window.RLQ = window.RLQ || [];
window.RLQ.push(() => $(() => (async () => {
   await mw.loader.using("mediawiki.Uri");
   const domains = new Set("hdslb.com");
   $(".noRefererConfig").each((_, { dataset: { domain } }) => {
     for (const d of domain.split("|")) {
       domains.add(d);
     }
   });
   $('img[src^="http://"]').each((_, ele) => {
     const url = new mw.Uri(ele.src);
     for (const domain of domains.values()) {
       if (url.host.includes(domain)) {
         ele.src = ele.src.replace(/^http:/, "https:");
         return;
       }
     }
   });
})()));
(function () {
(function () {
    if (mw.config.get('wgAction') == 'view' && mw.config.get('wgPageName') != '首页') {
    if (mw.config.get('wgAction') == 'view' && mw.config.get('wgPageName') != '首页') {
第34行: 第13行:
        btns += '<button class="flowthread-btn emo-tab-' + i + '"></button>'
        btns += '<button class="flowthread-btn emo-tab-' + i + '"></button>'
      }
      }
      emojis = '<button class="flowthread-btn flowthread-btn-emoticon emoji" title="表情"><i class="far fa-laugh-wink" style="color:#555;"></i></button>' + emojis + '</div><div class="emo-tabs">' + btns + '</div></div>'
      emojis = '<button class="flowthread-btn flowthread-btn-emoticon emoji" title="表情"><i class="fa fa-smile-o" style="color:#555;"></i></button>' + emojis + '</div><div class="emo-tabs">' + btns + '</div></div>'
      var i = setInterval(function () {
      var i = setInterval(function () {
        if ($(".comment-toolbar").length != 0) {
        if ($(".comment-toolbar").length != 0) {
匿名用户