必应-今日热榜

必应 Bing 搜索添加今日热榜,Microsoft Rewardss点击赚积分

目前為 2025-09-11 提交的版本,檢視 最新版本

// ==UserScript==
// @name         必应-今日热榜
// @namespace    https://gf.qytechs.cn/zh-CN/users/1513778-chris-lu
// @version      2025-09-10-08
// @description  必应 Bing 搜索添加今日热榜,Microsoft Rewardss点击赚积分
// @author       Chris Lu
// @match        *://*.bing.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=bing.com
// @require      https://update.gf.qytechs.cn/scripts/499192/1402326/jquery_360.js
// @license      The MIT License (MIT); http://opensource.org/licenses/MIT
// @grant        none
// ==/UserScript==
this.$ = this.jQuery = jQuery.noConflict(true);

(function() {
    'use strict';
    function fetchKeywordsBySource(source){
        $.ajax( {
            "url": "https://api.pearktrue.cn/api/dailyhot/?title="+source,
            "method": "GET",
            "timeout": 0,
        }).done(function (response) {
            if(response.code==200 && response.data){
                $('#ex-search-keywords').empty();
                response.data.forEach(function(element,index){
                    $('#ex-search-keywords').append(`<a target='_self' style='margin-right:25px;line-height:25px;' href='https://www.bing.com:443/search?q=${element.title}&qs=PN&form=TSFLBL'>${index+1}.${element.title}</a>`);
                    //$('#ex-search-keywords').append(`<a href='javascript:void(0);' class='ext-search-keyword' style='margin-right:20px;' data-val='${element.title}'>${index+1}.${element.title}</a>`);
                });

//                 $(".ext-search-keyword").click(function(e){
//                     $("#sb_form_q").val($(this).data('val'));
//                     $("#q").val($(this).text());
//                     $('#qs').val('PN');
//                     $('#from').val('TSFLBL');
//                     $('#sb_form .b_searchboxSubmit').click();
//                     //$('#sb_form').submit();
//                 });

$('#ex-search-keywords').append(`<a target='_blank' style='ine-height:25px;' href='https://rewards.bing.com/welcome?rh=3D3F7F7&ref=rafsrchae'>加入Microsoft Rewardss点击今日热榜赚取积分!</a>`);

            }
        });
    }
    $(document).ready(function(){
        $('#b_header').after("<div  style='margin-left:12%;margin-right:12%; margin-top:10px;'><p style='margin-bottom:10px;'><strong>今日热榜: </strong><select id='ext-search-channels' title='平台' style='margin-left:5px;width:240px;'></select><button id='ext-search-refresh' type='button' style='margin-left:5px;padding:5px;'>刷新</button></p><div id='ex-search-keywords'></div></div>");

        $.ajax( {
            "url": "https://api.pearktrue.cn/api/dailyhot",
            "method": "GET",
            "timeout": 0,
        }).done(function (response) {
            if(response.code==200 && response.data && response.data.platforms){
                response.data.platforms.forEach(function(element){
                    var opt= new Option(element, element);
                    opt.selected= element== "微博";
                    $('#ext-search-channels').append(opt);
                });

                $('#ext-search-channels').change(function(e){
                    fetchKeywordsBySource($(this).val());
                });

                $('#ext-search-refresh').click(function(e){
                    fetchKeywordsBySource($('#ext-search-channels').val());
                });

                fetchKeywordsBySource('微博');
            }
        });
    });
})();

QingJ © 2025

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