geekyouth / geekyouth.github.io

👣极客青年博客😘,基于github pages+issues + VUE 2.0 框架构建的轻量级静态博客系统💎[速度慢请翻墙]
https://java666.cn
39 stars 6 forks source link

🎀【原创】最近开发的几个简短的js 油猴插件,跳过QQ邮箱安全提示,屏蔽geek-share.com网页广告👗 #20

Closed geekyouth closed 2 years ago

geekyouth commented 4 years ago

fuck_geek-share.com

https://greasyfork.org/zh-CN/scripts/397903-geek-share-com fuck_geek-share.com,移除 geek-share.com 页面推广信息,牛皮癣广告真的太讨厌了。干掉他吧🪓🧱🗡 image

源代码:

// ==UserScript==
// @name         fuck_geek-share.com
// @namespace    https://github.com/geekyouth/
// @version      1.0
// @description  fuck_geek-share.com,移除页面推广信息
// @author       GeekYouth
// @match        https://www.geek-share.com/*
// @grant        none
// ==/UserScript==

(function() {

var f1 = function loop() {
    var xxoo1 = document.querySelector("body > div.ThinkBox-wrapper.ThinkBox-default");
    var xxoo2 = document.querySelector("body > div.ThinkBox-modal-blackout.ThinkBox-modal-blackout-default");
    if (xxoo1) {
        console.log("检测到 xxoo1,开始删除=====================");
        xxoo1.remove();
    } else {
        console.log("xxoo1 不存在 ===========================");
    }
    if (xxoo2) {
        console.log("检测到 xxoo2,开始删除=====================");
        xxoo2.remove();
    } else {
        console.log("xxoo2 不存在 ===========================");
    }

    xxoo1 = document.querySelector("body > div.ThinkBox-wrapper.ThinkBox-default");
    xxoo2 = document.querySelector("body > div.ThinkBox-modal-blackout.ThinkBox-modal-blackout-default");
    if (!xxoo1 || !xxoo2) {
        console.log("xxoo 都不在 ===============================");
    } else {
        console.log("删除失败了 ================== 等一秒递归 ");
        setTimeout(f1, 1000);
    }

}

//如果网页加载很慢,这里的延时可以适当调大
setTimeout(f1, 2000);

})();

跳过QQ邮箱安全提示

https://greasyfork.org/zh-CN/scripts/397722-跳过qq邮箱安全提示 跳过QQ邮箱超链接的鸡肋安全提示---greasyfork.org 油猴脚本---by geekyouth 🎈

chrome_LV0agCXina

源代码,史上最短:

// ==UserScript==
// @name         跳过QQ邮箱安全提示
// @namespace    https://gist.github.com/geekyouth/8406173441da2d35fb6dbfed6ceec41d
// @version      0.1
// @description  跳过QQ邮箱超链接的鸡肋安全提示---greasyfork.org 油猴脚本
// @author       geekyouth
// @include      https://mail.qq.com/cgi-bin/
// @match        https://mail.qq.com/cgi-bin/readtemplate*
// @grant        none
// ==/UserScript==

(function() {
    goUrl(1);
})();

另外强烈推荐的一款高效搜索插件: https://greasyfork.org/zh-CN/scripts/14178-ac-baidu-重定向优化百度搜狗谷歌搜索-去广告-favicon-双列

geekyouth commented 4 years ago