Pastebin
API
tools
faq
paste
Login
Sign up
Please fix the following errors:
New Paste
Syntax Highlighting
/** * BF4 Advanced Player Links - Add some advanced player links (Anti-Cheat) to the profile. * * @author I-MrFixIt-I + Elementofprgress (ACI) * @edited by Kappadamic * @version 1.1.1 (edited) * @url https://getbblog.com/de/board/topic/145489/1/BF4-Advanced-player-links */ // initialize your plugin BBLog.handle("add.plugin", { /** * The unique, lowercase id of my plugin * Allowed chars: 0-9, a-z, - */ id : "mrfixit-bf4-advanced-player-links", /** * The name of my plugin, used to show config values in bblog options * Could also be translated with the translation key "plugin.name" (optional) * * @type String */ name : "BF4 Advanced Player Links", /** * Some translations for this plugins * For every config flag must exist a corresponding EN translation * otherwise the plugin will no be loaded * * @type Object */ translations : { "en" : { "use.player-links" : "Use Advanced Player Links", "use.BFAgency" : "Show BFAgency", "use.BF4DB" : "Show BF4DB", "use.CheatReport" : "Show CheatReport", "use.247FairPlay" : "Show 247FairPlay" }, "de" : { "use.player-links" : "Advanced Player Links verwenden", "use.BFAgency" : "BFAgency anzeigen", "use.BF4DB" : "BF4DB anzeigen", "use.CheatReport" : "CheatReport anzeigen", "use.247FairPlay" : "247FairPlay anzeigen" } }, /** * Configuration Options that appears in the BBLog Menu * Every option must be an object with properties as shown bellow * Properties available: * key : The name for your config flag - The user can toggle this option * and you can retreive the users choice with instance instance.storage(YOUR_KEY_NAME) (0 or 1 will be returned) * init : Can be 0 or 1 - Represent the initial status of the option when the user load the plugin for the first time * If you want that this option is enabled on first load (opt-out) than set it to 1, otherwise to 0 (opt-in) * handler(optional): When set as a function this config entry turns into a button (like the plugins button you see in the bblog menu) * The function well be executed when the user clicks the button */ configFlags : [ {"key" : "use.player-links", "init" : 1}, {"key" : "use.BFAgency", "init" : 1}, {"key" : "use.BF4DB", "init" : 1}, {"key" : "use.CheatReport", "init" : 1}, {"key" : "use.247FairPlay", "init" : 1} ], /** * A trigger that fires everytime when the dom is changing but at max only once each 200ms (5x per second) to prevent too much calls in a short time * Example Case: If 10 DOM changes happen in a period of 100ms than this function will only been called 200ms after the last of this 10 DOM changes * This make sure that all actions in battlelog been finished before this function been called * This is how BBLog track Battlelog for any change, like url, content or anything * * @param object instance The instance of your plugin which is the whole plugin object * Always use "instance" to access any plugin related function, not use "this" because it's not working properly * For example: If you add a new function to your addon, always pass the "instance" object */ domchange : function(instance){ if (instance.storage("use.player-links")) { if(BBLog.cache("mode") == "bf4") { if (!$( "#advanced-player-links" ).length) { var urlParts = window.location.pathname.replace(/\/+$/, "").split('/'); var personaId = urlParts[urlParts.length - 2]; var soldierName = $("#game-stats-head .soldier-info-name span").last().text(); var html = "<div id='advanced-player-links' class='box-content no-padding leaderboard-highlight'>"; html += "<div class='description'>•</div>"; if (instance.storage("use.BFAgency")) html += "<div class='description'><a href='https://battlefield.agency/?search=" + personaId + "' target='_blank'>BFAgency</a></div>" + "<div class='description'>•</div>"; if (instance.storage("use.BF4DB")) html += "<div class='description'><a href='https://bf4db.com/player/" + personaId + "' target='_blank'>BF4DB</a></div>" + "<div class='description'>•</div>"; if (instance.storage("use.CheatReport")) html += "<div class='description'><a href='https://bf4cheatreport.com/?pid=" + personaId + "&cnt=200' target='_blank'>CheatReport</a></div>" + "<div class='description'>•</div>"; if (instance.storage("use.247FairPlay")) html += "<div class='description'><a href='https://www.247fairplay.com/CheatDetector/" + soldierName + "' target='_blank'>247FairPlay</a></div>" + "<div class='description'>•</div>"; html += "<div class='clear'></div></div>"; $("#overview-info div[class=box]").append(html); } } } else { $( "#advanced-player-links" ).remove(); } } });
Optional Paste Settings
Category:
None
Cryptocurrency
Cybersecurity
Fixit
Food
Gaming
Haiku
Help
History
Housing
Jokes
Legal
Money
Movies
Music
Pets
Photo
Science
Software
Source Code
Spirit
Sports
Travel
TV
Writing
Tags:
Syntax Highlighting:
None
Bash
C
C#
C++
CSS
HTML
JSON
Java
JavaScript
Lua
Markdown (PRO members only)
Objective C
PHP
Perl
Python
Ruby
Swift
4CS
6502 ACME Cross Assembler
6502 Kick Assembler
6502 TASM/64TASS
ABAP
AIMMS
ALGOL 68
APT Sources
ARM
ASM (NASM)
ASP
ActionScript
ActionScript 3
Ada
Apache Log
AppleScript
Arduino
Asymptote
AutoIt
Autohotkey
Avisynth
Awk
BASCOM AVR
BNF
BOO
Bash
Basic4GL
Batch
BibTeX
Blitz Basic
Blitz3D
BlitzMax
BrainFuck
C
C (WinAPI)
C Intermediate Language
C for Macs
C#
C++
C++ (WinAPI)
C++ (with Qt extensions)
C: Loadrunner
CAD DCL
CAD Lisp
CFDG
CMake
COBOL
CSS
Ceylon
ChaiScript
Chapel
Clojure
Clone C
Clone C++
CoffeeScript
ColdFusion
Cuesheet
D
DCL
DCPU-16
DCS
DIV
DOT
Dart
Delphi
Delphi Prism (Oxygene)
Diff
E
ECMAScript
EPC
Easytrieve
Eiffel
Email
Erlang
Euphoria
F#
FO Language
Falcon
Filemaker
Formula One
Fortran
FreeBasic
FreeSWITCH
GAMBAS
GDB
GDScript
Game Maker
Genero
Genie
GetText
Go
Godot GLSL
Groovy
GwBasic
HQ9 Plus
HTML
HTML 5
Haskell
Haxe
HicEst
IDL
INI file
INTERCAL
IO
ISPF Panel Definition
Icon
Inno Script
J
JCL
JSON
Java
Java 5
JavaScript
Julia
KSP (Kontakt Script)
KiXtart
Kotlin
LDIF
LLVM
LOL Code
LScript
Latex
Liberty BASIC
Linden Scripting
Lisp
Loco Basic
Logtalk
Lotus Formulas
Lotus Script
Lua
M68000 Assembler
MIX Assembler
MK-61/52
MPASM
MXML
MagikSF
Make
MapBasic
Markdown (PRO members only)
MatLab
Mercury
MetaPost
Modula 2
Modula 3
Motorola 68000 HiSoft Dev
MySQL
Nagios
NetRexx
Nginx
Nim
NullSoft Installer
OCaml
OCaml Brief
Oberon 2
Objeck Programming Langua
Objective C
Octave
Open Object Rexx
OpenBSD PACKET FILTER
OpenGL Shading
Openoffice BASIC
Oracle 11
Oracle 8
Oz
PARI/GP
PCRE
PHP
PHP Brief
PL/I
PL/SQL
POV-Ray
ParaSail
Pascal
Pawn
Per
Perl
Perl 6
Phix
Pic 16
Pike
Pixel Bender
PostScript
PostgreSQL
PowerBuilder
PowerShell
ProFTPd
Progress
Prolog
Properties
ProvideX
Puppet
PureBasic
PyCon
Python
Python for S60
QBasic
QML
R
RBScript
REBOL
REG
RPM Spec
Racket
Rails
Rexx
Robots
Roff Manpage
Ruby
Ruby Gnuplot
Rust
SAS
SCL
SPARK
SPARQL
SQF
SQL
SSH Config
Scala
Scheme
Scilab
SdlBasic
Smalltalk
Smarty
StandardML
StoneScript
SuperCollider
Swift
SystemVerilog
T-SQL
TCL
TeXgraph
Tera Term
TypeScript
TypoScript
UPC
Unicon
UnrealScript
Urbi
VB.NET
VBScript
VHDL
VIM
Vala
Vedit
VeriLog
Visual Pro Log
VisualBasic
VisualFoxPro
WHOIS
WhiteSpace
Winbatch
XBasic
XML
XPP
Xojo
Xorg Config
YAML
YARA
Z80 Assembler
ZXBasic
autoconf
jQuery
mIRC
newLISP
q/kdb+
thinBasic
Paste Expiration:
Never
Burn after read
10 Minutes
1 Hour
1 Day
1 Week
2 Weeks
1 Month
6 Months
1 Year
Paste Exposure:
Public
Unlisted
Private
Folder:
(members only)
Password
NEW
Enabled
Disabled
Burn after read
NEW
Paste Name / Title:
Create New Paste
Hello
Guest
Sign Up
or
Login
Sign in with Facebook
Sign in with Twitter
Sign in with Google
You are currently not logged in, this means you can not edit or delete anything you paste.
Sign Up
or
Login
Public Pastes
TAP
JavaScript | 4 hours ago | 10.69 KB
shell.php
PHP | 9 hours ago | 5.56 KB
IT & AI
1 day ago | 0.09 KB
my scers
1 day ago | 0.15 KB
Baccano!
2 days ago | 1.97 KB
TLOZ Windwaker - Windfall Island - Virtual Pi...
2 days ago | 1.57 KB
squar
2 days ago | 0.10 KB
my-pus
2 days ago | 0.09 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!