-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.user.js
33 lines (29 loc) · 871 Bytes
/
test.user.js
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
33
// ==UserScript==
// @name testing
// @namespace testing.zero.nao
// @version 0.1
// @description try to tke over the world!
// @author nao [2669774]
// @match https://www.torn.com*
// @icon https://www.google.com/s2/favicons?sz=64&domain=torn.com
// @grant none
// @updateURL https://raw.githubusercontent.com/ibixina/TornPublic/main/test.user.js
// @downloadURL https://raw.githubusercontent.com/ibixina/TornPublic/main/test.user.js
// ==/UserScript==
let api = "";
let url = window.location.href;
let rfc = getRFC();
function getRFC() {
var rfc = $.cookie("rfc_v");
if (!rfc) {
var cookies = document.cookie.split("; ");
for (var i in cookies) {
var cookie = cookies[i].split("=");
if (cookie[0] == "rfc_v") {
return cookie[1];
}
}
}
return rfc;
}
console.log("test");