Avoid_source

try to take over the world!

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

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

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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")
})