First florr.io script ever

this does nothing

目前为 2020-01-23 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name First florr.io script ever
  3. // @namespace -
  4. // @version 1.1.3
  5. // @description this does nothing
  6. // @author dreadmania
  7. // @include *://florr.io/*
  8. // @connect florr.io
  9. // @grant none
  10. // @require http://code.jquery.com/jquery-latest.js
  11. // ==/UserScript==
  12.  
  13. $(document).ready(function() { alert('This script does nothing. It could soon. Just let me learn javascript.');});
  14. var hrefs = new Array();
  15. var elements = $('.headline > a');
  16. elements.each(function() {
  17. hrefs.push($(this).attr('href'));
  18. });
  19.  
  20. $('body').append('<input type="button" value="Does this do anything" id="CP">')
  21. $("#CP").css("position", "fixed").css("top", 0).css("left", 0);