TanZ的薅羊毛攻略-微软积分
——移动端x浏览器安装/脚本运行

关于移动端上获取搜索积分,👇这边是推荐使用x浏览器内置的油猴脚本来刷。

x浏览器官网下载

我想特别安利一下这款手机浏览器——x浏览器,这玩意只有1MB多一点,非常非常小,但却有十分强大的功能, 内置的嗅探功能甚至可以强行下载页面内的音频和视频。当然,如果是单纯运行这个刷分脚本的话, 只需要一个能运行油猴插件的浏览器即可,比如:eie浏览器/苹果自带的Safair等。



// ==UserScript==
// @name        自动刷微软积分脚本
// @namespace   Violentmonkey Scripts
// @match       https://*.bing.com/*
// @grant       none
// @version     1.0
// @author      TanZ
// @description PC端及移动端浏览器刷微软积分脚本
// ==/UserScript==

const searchUrl = 'https://www.bing.com/search';
const isDesktop = window.matchMedia("(min-width: 768px)").matches;

// 检查当前URL是bing.com还是cn.bing.com
if (window.location.hostname.endsWith('.bing.com')) {
       // 每2000毫秒(2秒)执行一次随机搜索
       // 根据设备类型设置循环次数(PC浏览器36次,bing浏览器APP30次)
    const loopCount = isDesktop ? 36 : 30; 
    let count = localStorage.getItem('searchCount') || 0;    // 从存储器中获取计数器初始值
    const intervalId = setInterval(() => {
        if (count >= loopCount) {
            clearInterval(intervalId);  // 停止循环
            localStorage.removeItem('searchCount');  // 删除计数器的值
            window.close(); // 关闭 Bing 页面
            return;
        }
        // 生成随机字符填入搜索框
        const search = generateRandomSearch();

        // 在必应搜索栏中输入搜索查询
        const searchBox = document.getElementById('sb_form_q');
        searchBox.value = search;
        searchBox.dispatchEvent(new Event('input'));
        // 点击提交按钮
        const searchForm = document.getElementById('sb_form');
        searchForm.submit();
        // 增加计数器并更新存储中的值
        count++;
        localStorage.setItem('searchCount', count);
    }, 2000);
}

function generateRandomSearch() {
    let search = '';
    // 生成由4位数字和1个字母组成的随机字符串
    for (let i = 0; i < 4; i++) {
        search += Math.floor(Math.random() * 10);
    }
    search += String.fromCharCode(Math.floor(Math.random() * 26) + 65);
    return search;
}



具体x浏览器部署步骤:

具体流程

部署完成后,可以打开积分商城或Bing搜索页面,看看脚本运行情况,链接传送门👇


==========================================================

微软积分商城

Bing搜索页面

==========================================================



* 移动端搜索获取积分,只有用户等级到达二级才能解锁的。