有猴子指令碼 2 網頁遮罩 插入背景圖 防止窺屏 隱藏元素 幹元素 新增css風格 幹廣告 殺滑鼠事件 插入css 小說幹廣告
// ==UserScript== // @name 調整網頁亮度 alt+↓(alt+方向鍵下) 降低亮度 // @namespace http://tampermonkey.net/ // @version 0.4 // @description 調整網頁亮度,護眼 // @description:en Adjust page brightness,eyeshield // @author wodexianghua // @match http://*/* // @match https://*/* // @match file:///* // @grant GM_setValue// @grant GM_getValue // ==/UserScript== //按鍵: //alt+↑(alt+方向鍵上) 提高亮度 //alt+↓(alt+方向鍵下) 降低亮度 //ctrl+alt+s 開啟調整介面,滑鼠點選亮度條調整亮度,點選空白地方關閉調整介面 (function () { 'use strict'; //保證iframe不起作用 if (self == top) { var timer = null; var mousemove = false; var liangduui;var liangduuitz; var liangduuitzmouse; var __nightingale_view_cover; function insertHTML(lv) { if (self == top) { document.body.insertAdjacentHTML("beforebegin", '<div class="liangduui" style="display: none; width: 60px; height: 170px; background-color: rgb(255, 255, 255); z-index: 2147483640; position: fixed; top: 200px; left: 50%; border-radius: 50px; box-shadow: rgb(74, 74, 74) 0px 0px 20px;"><div class="liangduuitzmouse" style="width:40%;height:100px;background-color:#cecece;position:absolute;top:20px;left:30%;border-radius:50px;cursor:pointer"><div class="liangduuitz" style="width: 100%; height: 100%; background-color: rgb(147, 112, 223); position: absolute; bottom: 0px; right: 0px; border-radius: 50px;"></div></div><div style="background-image:url(https://www.easyicon.net/api/resizeApi.php?id=1180288&size=24);width:24px;height:24px;position:absolute;bottom:15px;right:18px;border-radius:50%;box-shadow:0 0 10px #9370df;background-repeat:no-repeat"></div></div><div id="__nightingale_view_cover" style="width: 100%; height: 100%; transition: -webkit-transform 10s ease-in-out 0s; position: fixed !important; left: 0px !important; bottom: 0px !important; overflow: hidden !important; background: rgb(0, 0, 0) !important; pointer-events: none !important; z-index: 2147483647; opacity: ' + lv+ ';"></div>'); } liangduui = document.querySelector(".liangduui"); liangduuitz = document.querySelector(".liangduuitz"); liangduuitzmouse = document.querySelector(".liangduuitzmouse"); __nightingale_view_cover = document.querySelector("#__nightingale_view_cover"); liangduui.style.top = ((window.innerHeight / 2) - (liangduui.style.height.replace("px", "")/2)) + "px"; liangduui.style.left = ((window.innerWidth / 2) - (liangduui.style.width.replace("px", "")/2)) + "px"; liangduuitzmouse.addEventListener('mousedown', function (event) { mousemove = true; liangduuitz.style.height = (100 - (event.clientY - liangduui.offsetTop - liangduuitzmouse.offsetTop)) + "%" lv = (event.clientY - liangduui.offsetTop - liangduuitzmouse.offsetTop) / 100; GM_setValue("lv", lv); __nightingale_view_cover.style.opacity = lv }); liangduuitzmouse.addEventListener('mousemove', function (event) { if (!mousemove) return; if (liangduuitz.offsetTop <= 0 || liangduuitz.offsetTop > 100) return; liangduuitz.style.height = (100 - (event.clientY - liangduui.offsetTop - liangduuitzmouse.offsetTop)) + "%" lv = (event.clientY - liangduui.offsetTop - liangduuitzmouse.offsetTop) / 100; GM_setValue("lv", lv); __nightingale_view_cover.style.opacity = lv }); liangduuitzmouse.addEventListener('mouseup', function (event) { mousemove = false; }); } if (GM_getValue("lv") == undefined) { GM_setValue("lv", '0.35'); } document.addEventListener('keydown', function (event) { if (event.altKey && event.which == 40) { var lv = parseFloat(GM_getValue("lv")); lv += 0.02; if (lv > 1.0) lv = 1.0; GM_setValue('lv', lv); __nightingale_view_cover.style.opacity = lv; liangduui.style.display = "block"; liangduuitz.style.height = (100 - (lv * 100)) + "%"; window.clearTimeout(timer); timer = setTimeout(function () { liangduui.style.display = "none"; }, 2000); } else if (event.altKey && event.which == 38) { var lv = parseFloat(GM_getValue("lv")); lv -= 0.02; if (lv < 0) lv = 0; GM_setValue("lv", lv); __nightingale_view_cover.style.opacity = lv; liangduui.style.display = "block"; liangduuitz.style.height = (100 - (lv * 100)) + "%"; window.clearTimeout(timer); timer = setTimeout(function () { liangduui.style.display = "none"; }, 2000); } else if (event.ctrlKey && event.altKey && event.which == 83) { liangduuitz.style.height = (100 - (GM_getValue("lv") * 100)) + "%" liangduui.style.display = "block"; } }); document.addEventListener('visibilitychange', function () { if (document.visibilityState == 'hidden') { //狀態判斷 } else { var lv = parseFloat(GM_getValue("lv")); if (document.querySelector("#__nightingale_view_cover") == null) { insertHTML(GM_getValue("lv")); } GM_setValue("lv", lv); document.querySelector("#__nightingale_view_cover").style.opacity = lv } }); document.body.addEventListener('click', function () { liangduui.style.display = "none"; mousemove = false; }); // window.addEventListener("storage", function(event) { // console.log(event.key + '=' +event.newValue); // }); setTimeout(insertHTML(GM_getValue("lv")), 300); } // Your code here... })();
// ==UserScript== // @name 網頁護眼桌布 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 為網頁增加一個好看、護眼的桌布 // @author 吉王義昊 // @match https://*/* // @match http://*/* // @grant none // ==/UserScript== (function() { 'use strict'; // Your code here... var huyanbeijinguserjsbyjwyh=document.createElement("div"); huyanbeijinguserjsbyjwyh.style="z-index: -999;position: fixed;transform: translate(-4%,-4%);background-position: 50%;transition-property: background-image,background-color;filter: blur(20px);height: calc(100% + 80px);width: calc(100% + 80px);background-image: url(https://ufile.ahgygl.com/userjs/huyanuserjsbyjwyh/green.jpg);"; document.body.insertBefore(huyanbeijinguserjsbyjwyh,document.body.firstChild); })();
// ==UserScript== // @name 當你發現有人窺屏,就按 F2按 ESC 消除 防窺屏 // @namespace https://greasyfork.org/zh-CN/scripts/389727 // @version 0.3.1 // @description 當你發現有人窺屏,就按 F2。按 ESC 消除。 // @author Phuker // @match *://*/* // @grant none // @run-at document-start // ==/UserScript== /* Forked from jinyu121/ShameEyesdroper.user.js https://gist.github.com/jinyu121/9e028686f35f330b52f60a30e7ef8ba3 */ (function() { 'use strict'; // - - - - - - - - - - 使用者配置開始 Start User Config - - - - - - - - - - // 顯示文字 // display text var option_text = '有沙雕正在窺屏'; // 不透明度,0.0 - 1.0,數值越大越不透明,建議 0.6 - 1.0 // opacity, 0.0 - 1.0 var option_opacity = '0.85'; // 主題 // color theme var option_theme = 'golden'; // 觸發和恢復按鍵 // keys var option_key_activate = 'F2'; var option_key_cancel = 'Escape'; // - - - - - - - - - - 使用者配置結束 End User config - - - - - - - - - - // background, text var option_themes = { 'golden': ['#17254D', '#F0E360'], // 土豪金 'normal': ['#fff', '#666'], // 普通 白底黑字 'dark': ['#333', '#ccc'], // 黑底白字 暗黑主題 'slate': ['#19191f', '#ebebf4'], // 藍灰 暗色 } var option_background_color = option_themes[option_theme][0]; var option_text_color = option_themes[option_theme][1]; function AntiPeepScreen(){ var svg='<svg width="600" height="400" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\ <rect width="100%" height="100%" style="fill:' + option_background_color + ';" />\ <text style="font-weight:bold; font-size:72px; fill:' + option_text_color + ';" transform="matrix(.70710678 -.70710678 .70710678 .70710678 -52.549041 262.010392)" x="26.015705" y="220.4375">'+ option_text +'</text>\ </svg>'; var bg_text="url(data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(svg)))+")"; var div = document.createElement('div'); div.className = 'phuker-anti-peep-screen'; div.style.cssText = '\ z-index:65535;\ position:fixed;\ top:0;\ left:0;\ bottom:0;\ right:0;\ opacity:' + option_opacity + ';\ background-image:' + bg_text + ';\ background-repeat:repeat;\ background-position:center;\ overflow":"hidden";\ '; document.body.appendChild(div); }; function ClearAntiPeepScreen(){ document.getElementsByClassName('phuker-anti-peep-screen')[0].remove(); } document.addEventListener("keydown", function(e){ if(e.key === option_key_activate){ AntiPeepScreen(); document.phuker_anti_peep_level = (document.phuker_anti_peep_level | 0) + 1; } if(e.key === option_key_cancel){ if(document.phuker_anti_peep_level){ ClearAntiPeepScreen(); e.preventDefault(); document.phuker_anti_peep_level -= 1; } } }); })();
// ==UserScript== // @name Disable Adblock Hider // @namespace Jefreesujit // @version 0.1 // @description Removes the notification reminder to disable the adblocker plugin // @author Jefreesujit // @match http://hitwicket.com/* // @match http://hitwicket.com // @grant none // ==/UserScript== $(document).ready(function() { setTimeout(function() { if($('#advertisement_top_banner_div').height() == 0) $('#advertisement_top_banner_div').load(" "); } , 1500); });
// ==UserScript== // @name Anti-adblocker重點是ready // @namespace https://openuserjs.org/users/Goodgy // @updateURL https://openuserjs.org/meta/Goodgy/Anti-adblocker.meta.js // @downloadURL https://openuserjs.org/src/scripts/Goodgy/Anti-adblocker.user.js // @version 1.1 // @description Removes any notification that tells you to disable adblock. // @author Goodgy // @require https://code.jquery.com/jquery-3.1.0.min.js // @include http*://*deviantart.com/* // @include http*://*.deviantart.com/* // @match https://openuserjs.org/?q=anti-adblock // @grant none // ==/UserScript== (function() { 'use strict'; function remove_banner_deviantart(){ $('div.banner-wrap').hide(); $('div#block-notice').hide(); $('div#elnino-modal').hide(); $('div#modalfade').hide(); } function start_up(){ var current_link = $(document).attr('URL'); if (current_link.indexOf("deviantart.com") !=-1) { setInterval(remove_banner_deviantart,1); } console.log("Done"); } // If the window is loaded, start up the bot $(document).ready(function() { start_up(); }); })();
// ==UserScript== // @name Adblock Wikia--重點是ready // @namespace http://tampermonkey.net/ // @version 1.0 // @description Get rid of ads on Wikia; I developed this script so that I could avoid the no-adblocker allowed messages on the site. // @author Crimtos // @match http://*.wikia.com/* // @require http://code.jquery.com/jquery-latest.js // @grant none // ==/UserScript== // $("div").removeClass("ad-placement ad-main-med-rect-footer"); (function() { 'use strict'; $(".WikiaTopAds").remove(); $(".fan-feed").remove(); $("#WikiaTopAds").remove(); $("#TOP_RIGHT_BOXAD").remove(); // $("#NATIVE_TABOOLA_RAIL").remove(); $("#WikiaFooter").remove(); $("#WikiaArticleBottomAd").remove(); })(); $(document).ready(function(){ $(".recirculation-rail module recirculation-unit").remove(); $("#RECIRCULATION_RAIL").remove(); $("[class='ChatModule module ChatModuleUninitialized']").removeClass('ChatModule module ChatModuleUninitialized').addClass('ChatModule module'); // $("[class='ChatModule module ChatModuleUninitialized']").remove(); });
// ==UserScript== // @name lolalytics anti ad block fix重點是新增風格 // @namespace http://tampermonkey.net/ // @version 1.0 // @description disables anti adblock measures on lolalytics // @author Jeddunk // @match http://*.lolalytics.com/* // @match http://lolalytics.com/* // @grant none // @updateURL https://openuserjs.org/meta/Jeddunk/lolalytics_anti_ad_block_fix.meta.js // ==/UserScript== (function() { 'use strict'; addGlobalStyle('.wrapper {opacity: 1 !important}'); addGlobalStyle('#RXcYvSQMUpqm > p {display: none !important}'); addGlobalStyle('header > div.wrapper > div > div:nth-child(1) {height: 0 !important}'); addGlobalStyle('header > div.wrapper > div > div:nth-child(2) {display: none !important}'); })(); function addGlobalStyle(css) { var head, style; head = document.getElementsByTagName('head')[0]; if (!head) { return; } style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = css; head.appendChild(style); }
// ==UserScript== // @name Linkcrypt.ws Remove Anti Adblock // @namespace https://greasyfork.org/users/5174-jesuis-parapluie // // @description Removes anti adblock overlay and unhides container buttons // // @include http://linkcrypt.ws/dir/* // // @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js // // @grant none // // @version 0.0.5 // ==/UserScript== (function ($) { "use strict"; /*jslint browser:true */ /*global $, jQuery */ var apply = function () { $('#ad_cont').css('display', ''); $('#ad_cont').attr('id', ''); $('#container_check').hide(); $('#kbf1').hide(); $('#container').show(); }; $(function () { $(document).bind('DOMNodeInserted', apply); apply(); }); }(jQuery));
// ==UserScript== // @name Close adblocker alert執行func // @namespace https://www.myfxbook.com // @version 0.3 // @description User script that automatically closes the adblocker alert which keeps popping up. Perhaps a design error. // @author [email protected] // @match https://www.myfxbook.com // @match https://www.myfxbook.com/* // @match http://www.myfxbook.com // @match http://www.myfxbook.com/* // @grant none // ==/UserScript== (function() { 'use strict'; try { closeAdBlockerLightBox(); } catch(ex) { console.log("Error occurred while closing adblocker alert. " + ex); } })();
// ==UserScript== // @name anti-adblock bypass初始化幹廣告 // @include /^https\:\/\/.*?\-fan\.tv\/episode\.php/ // @version 1.0 // @description Bypass anti-adblock (fuckadblock.js) // @copyright 2020, CheeseSaus (https://openuserjs.org/users/CheeseSaus) // @license MIT // @updateURL https://openuserjs.org/meta/CheeseSaus/anti-adblock_bypass.meta.js // ==/UserScript== window.addEventListener("load", function (event) { adBlockNotDetected() });
// ==UserScript== // @name mouse events ad killer // @author keepcalmandbelogical // @description Disables this mouse events listeners: click, mousedown, mouseup, contextmenu, touchstart. Also disables peer connections. Script only valid for websites with href anchors for navigation // @version 0.2.6 // @include http://*divxatope*.com* // @include http://*newpct*.com* // @include http://*elitetorrent.net* // @include http://*tumejortorrent.com* // @include http://*descargas2020.com* // @grant none // @run-at document-start // @downloadURL https://openuserjs.org/install/keepcalmandbelogical/mouse_events_ad_killer.user.js // @supportURL https://openuserjs.org/scripts/keepcalmandbelogical/mouse_events_ad_killer/issues // @license MIT // ==/UserScript== /* jshint -W097 */ (function() { try { Window.prototype.RTCPeerConnection=null; } catch(e) {} try { Window.prototype.mozRTCPeerConnection=null; } catch(e) {} try { Window.prototype.webkitRTCPeerConnection=null; } catch(e) {} try { window.RTCPeerConnection=null; } catch(e) {} try { window.mozRTCPeerConnection=null; } catch(e) {} try { window.webkitRTCPeerConnection=null; } catch(e) {} Window.prototype.addEventListener=(function() { var f=Window.prototype.addEventListener; return function(type,handler) { switch(type.toLowerCase()) { case "click": case "mousedown": case "mouseup": case "touchstart": case "contextmenu": break; default: f.apply(this,arguments); break; } }; })(); window.addEventListener=Window.prototype.addEventListener; HTMLDocument.prototype.addEventListener=(function() { var f=HTMLDocument.prototype.addEventListener; return function(type,handler) { switch(type.toLowerCase()) { case "click": case "mousedown": case "mouseup": case "touchstart": case "contextmenu": break; default: f.apply(this,arguments); break; } }; })(); document.addEventListener=HTMLDocument.prototype.addEventListener; Element.prototype.addEventListener=(function() { var f=Element.prototype.addEventListener; return function(type,handler) { switch(type.toLowerCase()) { case "click": case "mousedown": case "mouseup": case "touchstart": case "contextmenu": break; default: f.apply(this,arguments); break; } }; })(); })();
// ==UserScript== // @name SolarizedLight_BackgroundColor載入後改色 // @namespace https://mpcx.me/ // @version 0.2 // @description Set BackgroundColor of article page to base3 color of SolarizedLight Theme // @author CharlesMa // @match https://sspai.com/article/* // @match https://sspai.com/post/* // @grant none // ==/UserScript== window.addEventListener('load', function() { var article = ""; switch (location.host) { case "sspai.com": var pageType = location.pathname.split('/')[1]; if (pageType == "article") { article = document.getElementsByClassName("series-article-wrapper"); } if (pageType == "post") { article = document.getElementsByClassName("article-wrapper"); } break; } article[0].style.backgroundColor = "#fdf6e3"; }, false);
// ==UserScript== // @name Inoreader - Highlights row light blue when mouse over in Article Pane // @namespace https://openuserjs.org/scripts/jg5050/Inoreader_-_Highlights_row_light_blue_when_mouse_over_in_Article_Pane // @description Change background to light blue when hovering with the mouse over headers in the article pane // @downloadURL https://github.com/jimmygoings50/Userscripts/blob/master/Inoreader_-_Highlights_Row_Light_Blue_on_Mouseover.user.js // @updateURL https://github.com/jimmygoings50/Userscripts/blob/master/Inoreader_-_Highlights_Row_Light_Blue_on_Mouseover.user.js // @author jg5050 // @version 1.0 // @domain www.inoreader.com // @domain inoreader.com // @domain beta.inoreader.com // @match https://*.inoreader.com/* // @match https://inoreader.com/* // @match http://*.inoreader.com/* // @match http://inoreader.com/* // @include https://*.inoreader.com/* // @include https://inoreader.com/* // @include http://*.inoreader.com/* // @include http://inoreader.com/* // @grant GM_addStyle // ==/UserScript== (function() { var css = "@namespace url(http://www.w3.org/1999/xhtml); \div.article_subscribed:hover {background-color: rgb(173,216,230) !important; color: rgb(255,195,0) !important;} \div.article_header:hover {background-color: rgb(173,216,230) !important; color: rgb(255,195,0) !important;} \div.article_header:hover .article_feed_title {color: rgb(255,195,0) !important;} \div.article_header:hover .article_header_title {color: rgb(255,195,0) !important;} \div.article_header:hover .arrow_div {background-color: rgb(173,216,230) !important;}"; if (typeof GM_addStyle != "undefined") { GM_addStyle(css); } else if (typeof PRO_addStyle != "undefined") { PRO_addStyle(css); } else if (typeof addStyle != "undefined") { addStyle(css); } else { var heads = document.getElementsByTagName("head"); if (heads.length > 0) { var node = document.createElement("style"); node.type = "text/css"; node.appendChild(document.createTextNode(css)); heads[0].appendChild(node); } } })();
// ==UserScript== // @name 拒絕小說網站背景色、修改字型、段落距離、去除起點閱讀/筆趣閣等網站廣告 // @namespace https://xuexizuoye.com // @version 1.32 // @description 我不要綠色,不要護眼色,不要你覺得,就要我覺得! // @author huansheng // @include http://*/* // @include https://*/* // @exclude *www.52pojie.cn* // @exclude *chinaz.com* // @exclude *greasyfork.org* // @grant GM_addStyle // @run-at document-start // ==/UserScript== function bgcwhite(){ console.log("修改背景色,字型格式->starting……"); GM_addStyle("body,.main-text-wrap,#content,.content,#main-text-wrap,.chapter-content,#chapter-content,#contentWp,.paper-box,.content-body,.content-body,.content-ext,#content p,#htmlContent,#chaptercontent {background-color: rgba(0, 0, 0, 0) !important;font-size: 16px!important;font-family: Helvetica Neue,Arial,PingFang SC,STHeiti,Microsoft YaHei,SimHei,sans-serif!important;line-height: 130%!important}"); console.log("修改背景色,字型格式->end……"); }; //#mys-wrapper function addel(){ console.log("嘗試去除廣告->starting……"); GM_addStyle(".con_ad,#close-game-op,#mys-wrapper,.mys-wrapper,#google-center-div,.google-center-div,#mys-content,#GoogleActiveViewElement,.GoogleActiveViewElement,#google_image_div,.adsbygoogle,.adsbygoogle-noablate,boy.jar,.GoogleActiveViewInnerContainer,div .top-read-ad,ins.ee,img.img_ad,.GoogleActiveViewElement img,.GoogleActiveViewElement a,.top-read-ad img,.top-read-ad a,.downcode,#j-topBgBox,#j-topHeadBox .back-to-op,.right-op-wrap,.games-op-wrap,.jumpWrap,#j_bodyRecWrap,.body-rec-mask,.game-wrap,.banner-wrap,.focus-img.cf,.notice-banner,#float-op-wrap,#j_leftRecBox a,#j_leftRecBox a,.body-rec-wrap,.float-op-wrap,.notice-list>ul>li>.red,#appss>dd div {background-image: none!important;dispaly:none!important;width:0!important;height:0!important;margin-left:-99999px!important}"); setTimeout(function () { GM_addStyle("body>div:last-child,#cs_kd_div {background-image: none!important;dispaly:none!important;width:0!important;height:0!important;margin-left:-99999px!important;z-index:0!important;overflow:visible!important;}"); }, 15000) console.log("嘗試去除廣告->end……"); }; (function() { console.log("開始修改->end……"); bgcwhite(); console.log("修改網頁結束->end……"); })(); window.onload=function(){ console.log("網頁載入完畢再次修改確保萬一!……"); addel(); bgcwhite(); console.log("再次修改確保結束!……"); }();
// ==UserScript==// @name Inoreader - Highlights row light blue when mouse over in Article Pane// @namespacehttps://openuserjs.org/scripts/jg5050/Inoreader_-_Highlights_row_light_blue_when_mouse_over_in_Article_Pane// @descriptionChange background to light blue when hovering with the mouse over headers in the article pane// @downloadURLhttps://github.com/jimmygoings50/Userscripts/blob/master/Inoreader_-_Highlights_Row_Light_Blue_on_Mouseover.user.js// @updateURLhttps://github.com/jimmygoings50/Userscripts/blob/master/Inoreader_-_Highlights_Row_Light_Blue_on_Mouseover.user.js// @author jg5050// @version 1.0// @domain www.inoreader.com// @domain inoreader.com// @domain beta.inoreader.com// @match https://*.inoreader.com/*// @match https://inoreader.com/*// @match http://*.inoreader.com/*// @match http://inoreader.com/*// @include https://*.inoreader.com/*// @include https://inoreader.com/*// @include http://*.inoreader.com/*// @include http://inoreader.com/*// @grantGM_addStyle// ==/UserScript==(function() {var css = "@namespace url(http://www.w3.org/1999/xhtml); \div.article_subscribed:hover {background-color: rgb(173,216,230) !important; color: rgb(255,195,0) !important;} \div.article_header:hover {background-color: rgb(173,216,230) !important; color: rgb(255,195,0) !important;} \div.article_header:hover .article_feed_title {color: rgb(255,195,0) !important;} \div.article_header:hover .article_header_title {color: rgb(255,195,0) !important;} \div.article_header:hover .arrow_div {background-color: rgb(173,216,230) !important;}";if (typeof GM_addStyle != "undefined") {GM_addStyle(css);} else if (typeof PRO_addStyle != "undefined") {PRO_addStyle(css);} else if (typeof addStyle != "undefined") {addStyle(css);} else {var heads = document.getElementsByTagName("head");if (heads.length > 0) {var node = document.createElement("style");node.type = "text/css";node.appendChild(document.createTextNode(css));heads[0].appendChild(node);}}})();