MediaWiki:Common.js: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Tidak ada ringkasan suntingan
Hoo man (bicara | kontrib)
k Bot: Security fix: protocol-relative URLs per https://meta.wikimedia.org/?oldid=3197161 (questions?).
Baris 7:
Variabel-variabel yang dipakai secara global */
 
var ScriptPrefix = '<script type="text/javascript" src="/w/index.php?title=';
var ScriptSuffix = '&action=raw&ctype=text/javascript&dontcountme=s"></script>';
var LoadInterProject = true;
var LoadLinkFA = true;
Baris 26 ⟶ 24:
aktifkan atau matikan */
 
document.writeimportScript( ScriptPrefix + 'Pengguna:' + wgUserName + '/switches.js' + ScriptSuffix );
 
/**
Baris 80 ⟶ 78:
if ( isMainPage && !isDiff && (wgCanonicalNamespace != 'Special') )
{
documentmw.writeutil.addCSS('<style type="text/css"> #siteSub, #contentSub, h1.firstHeading { display: none!important; } #content, #content div.thumb, #p-cactions li a, #p-cactions li a:hover, #p-cactions li.selected a { background: #fff!important; } </style>');
var mpSmallEnabled;
var mpMinWidth = 700;
Baris 127 ⟶ 125:
if (document.URL.indexOf("=edit") > 0 || document.URL.indexOf("=submit") > 0) {var noJS;}
else {
documentmw.writeutil.addCSS('<style type="text/css">#title-override {display: none; speak: none;}<\/style>');
function pTitle() {
if (document.getElementById("title-override")) {
Baris 186 ⟶ 184:
<nowiki> */
if (LoadInterProject == true) {
documentmw.writeutil.addCSS('<style type="text/css">#interProyek {display: none; speak: none;} #p-tb .pBody {padding-right: 0;}<\/style>');
function iProject() {
if (document.getElementById("interProyek")) {
Baris 396 ⟶ 394:
Drop down box for the Special character menu in [[MediaWiki:Edittools]]
Adapted from:
http://de.wiktionary.org/wiki/MediaWiki:Onlyifediting.js ,
http://de.wiki-indonesia.club/wiki/MediaWiki:Onlyifediting.js and
http://en.wiktionary.org/wiki/MediaWiki:Monobook.js
<pre><nowiki> */
 
Baris 555 ⟶ 553:
<pre><nowiki> */
function addCustomEditButton( imageFile, speedTip, tagOpen, tagClose, sampleText ) {
var imagePath = 'http://upload.wikimedia.org/wikipedia/commons/';
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile" : imagePath + imageFile,
Baris 696 ⟶ 694:
document.getElementById('bodyContent').insertBefore(notice, document.getElementById('jump-to-nav').nextSibling);
noticeLoader = sajax_init_object();
noticeLoader.open('GET', 'http://wiki-indonesia.club/w/index.php?title=Templat:Bakpasir&action=render', true);
noticeLoader.onreadystatechange = function()
{