Avoid_source

try to take over the world!

当前为 2018-12-03 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Avoid_source
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        *://*/*
// @require      http://code.jquery.com/jquery-3.3.1.min.js
// ==/UserScript==

$(document).ready(function() {
	var data = [{
		"Name": "The Sun",
		"Url": "thesun.co.uk"
	},{
		"Name": "The Daily/Sunday Mail",
		"Url": "dailymail.co.uk"
	},{
		"Name": "The Daily/Sunday Mirror",
		"Url": "mirror.co.uk"
	},{
		"Name": "The Daily Star",
		"Url": "dailystar.co.uk"
	},{
		"Name": "The Daily Express",
		"Url": "express.co.uk"
	},{
		"Name": "Wikipedia",
		"Url": "wikipedia.org"
	},{
		"Name": "Investopedia",
		"Url": "investopedia.com"
	},{
		"Name": "Tutor 2 U",
		"Url": "tutor2u.net"
	},{
		"Name": "Quick MBA",
		"Url": "quickmba.com"
	}, {
		"Name": "MindTools",
		"Url": "mindtools.com"
	},{
		"Name": "Business Balls",
		"Url": "businessballs.com"
	},{
		"Name": "SlideShare",
		"Url": "slideshare.net"
	},{
		"Name": "UKEssays",
		"Url": "ukessays.com"
	},]

	for(var i = 0; i < data.length; i++) {
		if(window.location.href.indexOf(data[i]["Url"])!=-1) {
			console.log("-")
			$("body").css("padding-top","30px");
			$("body").append("<div id='AVoid_Source_TOP'>小心!-"+data[i]["Name"]+"不是一个可信的学术来源"+"</div>")
		}

	}
   $("#AVoid_Source_TOP").css("position","absolute")
   $("#AVoid_Source_TOP").css("top","0px")
   $("#AVoid_Source_TOP").css("font-size","1.5em")
   $("#AVoid_Source_TOP").css("width","100%")
   $("#AVoid_Source_TOP").css("height","30px")
   $("#AVoid_Source_TOP").css("z-index","99")
   $("#AVoid_Source_TOP").css("background-color","hotpink")
   $("#AVoid_Source_TOP").css("color","white")
    $("#AVoid_Source_TOP").css("text-align","center")
})