Avoid_source

try to take over the world!

目前为 2018-12-03 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Avoid_source
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author You
  7. // @match *://*/*
  8. // @require http://code.jquery.com/jquery-3.3.1.min.js
  9. // ==/UserScript==
  10.  
  11. $(document).ready(function() {
  12. var data = [{
  13. "Name": "The Sun",
  14. "Url": "thesun.co.uk"
  15. },{
  16. "Name": "The Daily/Sunday Mail",
  17. "Url": "dailymail.co.uk"
  18. },{
  19. "Name": "The Daily/Sunday Mirror",
  20. "Url": "mirror.co.uk"
  21. },{
  22. "Name": "The Daily Star",
  23. "Url": "dailystar.co.uk"
  24. },{
  25. "Name": "The Daily Express",
  26. "Url": "express.co.uk"
  27. },{
  28. "Name": "Wikipedia",
  29. "Url": "wikipedia.org"
  30. },{
  31. "Name": "Investopedia",
  32. "Url": "investopedia.com"
  33. },{
  34. "Name": "Tutor 2 U",
  35. "Url": "tutor2u.net"
  36. },{
  37. "Name": "Quick MBA",
  38. "Url": "quickmba.com"
  39. }, {
  40. "Name": "MindTools",
  41. "Url": "mindtools.com"
  42. },{
  43. "Name": "Business Balls",
  44. "Url": "businessballs.com"
  45. },{
  46. "Name": "SlideShare",
  47. "Url": "slideshare.net"
  48. },{
  49. "Name": "UKEssays",
  50. "Url": "ukessays.com"
  51. },]
  52.  
  53. for(var i = 0; i < data.length; i++) {
  54. if(window.location.href.indexOf(data[i]["Url"])!=-1) {
  55. console.log("-")
  56. $("body").css("padding-top","30px");
  57. $("body").append("<div id='AVoid_Source_TOP'>小心!-"+data[i]["Name"]+"不是一个可信的学术来源"+"</div>")
  58. }
  59.  
  60. }
  61. $("#AVoid_Source_TOP").css("position","absolute")
  62. $("#AVoid_Source_TOP").css("top","0px")
  63. $("#AVoid_Source_TOP").css("font-size","1.5em")
  64. $("#AVoid_Source_TOP").css("width","100%")
  65. $("#AVoid_Source_TOP").css("height","30px")
  66. $("#AVoid_Source_TOP").css("z-index","99")
  67. $("#AVoid_Source_TOP").css("background-color","hotpink")
  68. $("#AVoid_Source_TOP").css("color","white")
  69. $("#AVoid_Source_TOP").css("text-align","center")
  70. })