-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuserscript.js
More file actions
32 lines (26 loc) · 1.11 KB
/
Copy pathuserscript.js
File metadata and controls
32 lines (26 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// ==UserScript==
// @name Grepobot modificado Nasaki!
// @namespace Grepobot funcional Nasaki!
// @description Grepobot FREE PARA MANDAR ATAQUES! is a automated script that helps in Grepolis automaticaly!
// @autor Nasaki
// @version 0.415
// @include http://*.grepolis.*/*
// @include https://*.grepolis.*/*
// ==/UserScript==
(function () {
// Cria elemento <script> para carregar o JS do bot
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = location.protocol + '//cdn.jsdelivr.net/gh/alexandre2017009p-star/bot7u8@5.99/Autobot.js';
// Cria elemento <link> para carregar o CSS do bot
var link = document.createElement('link');
link.type = 'text/css';
link.rel = 'stylesheet';
link.href = location.protocol + '//cdn.jsdelivr.net/gh/alexandre2017009p-star/bot7u8@5.99/Autobot.css';
// Injeta ambos no <head> da página
var head = document.getElementsByTagName('head')[0];
head.appendChild(script);
head.appendChild(link);
// Marca o head com atributo customizado
head.setAttribute('xhttps', 1);
})();