Javlib净化

屏蔽广告/优化打开链接

اعتبارا من 30-01-2020. شاهد أحدث إصدار.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==UserScript==
// @icon         http://www.javlib.com/favicon.ico
// @name         Javlib净化
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  屏蔽广告/优化打开链接
// @author       Avral
// @match        *://*.com/*
// @match        *://javlib.com/*
// @match        *://zlibz.com/*
// @require      http://code.jquery.com/jquery-3.4.1.min.js
// @grant        none
// @run-at       document-start
// ==/UserScript==

(function () {
  function enumdel(arrs){
	$.each(arrs, function(index, a){
	  a.remove();
	});
  }
  function init(){
	var url = document.title;
	if (url.indexOf("JAVLibrary") == -1)return;
	var $videoimages = null;
	document.onselect = function(){}
	document.onclick = function(){}
	document.onmousedown = function(){}
	document.onmouseup = function(){}
	document.write = function(){}
	document.writeln = function(){}

	enumdel($("[id^='topbanner'"));
	enumdel($("[id^='sidebanner'"));
	enumdel($("[id^='middlebanner'"));
	enumdel($("[id^='bottombanner'"));
	var links = $("a[href*='redirect.php?url']");
	$.each(links, function(index, a){
	  var origin = location.origin;
	  a.href = decodeURIComponent(a.href.replace(origin+"/cn/redirect.php?url=",""));
	});
  }
  $(document).ready(init);
  init();
}) ();