Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
// @name TF2Outpost Autobump
// @namespace http://steamcommunity.com/profiles/76561198065785055/
// @version 2.1
// @description Bumps trades on TF2 Outpost
// @include http://www.tf2outpost.com/trades
// @include http://www.tf2outpost.com/trade/*
// @run-at document-end
// @copyright 2013+, Sir Campsalot
// ==/UserScript==
(function() {
if (parse_url()=="http://www.tf2outpost.com/trade/undefined") var RELOAD_MINUTES = Math.floor(Math.random()*6)+5;
else var RELOAD_MINUTES = Math.floor(Math.random()*5)+1;
var divid = "tf2ab";
var reload_time, counter;
function notify(notify) {
var div = document.getElementById(divid);
if (!div) {
if (parse_url()=="http://www.tf2outpost.com/trade/undefined") var trades = document.getElementById("trade");
else var trades = document.getElementById("trades");
var div = document.createElement("div");
div.id = divid;
trades.insertBefore(div, trades.childNodes[0]);
}
div.innerHTML = notify;
}
function showstatus() {
reload_time -= 1;
if (reload_time <= 0) {
clearInterval(counter);
location.reload();
return;
}
var min = Math.floor(reload_time/60);
var sec = reload_time - min*60;
if (sec<10) notify("TF2 Outpost AutoBump: Reloading page in "+min+":0"+sec);
else notify("TF2 Outpost AutoBump: Reloading page in "+min+":"+sec);
}
function bump_trades() {
if (navigator.userAgent.indexOf('Firefox') != -1 && parseFloat(navigator.userAgent.substring(navigator.userAgent.indexOf('Firefox') + 8)) >= 3.6){
var anchor = document.evaluate(".//li/a[@class='trade_bump']/div[@class='icon_bump']", document, null, XPathResult.ANY_TYPE, null);
while (anchor = anchor.iterateNext()) {
anchor = anchor.parentNode;
if (anchor.getAttribute('data-tradeid'))
break;
}
if (anchor && anchor.getAttribute('data-tradeid')) {
anchor.click();
setTimeout(bump_trades,5);
}
}
else $(".trade_bump").click();
reload_time = RELOAD_MINUTES*60;
counter = setInterval(showstatus, 1000);
}
bump_trades();
}).call(this);
function parse_url(url)
{
var parser = document.createElement('a');
parser.href = url;
return parser;
}
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team