Page MenuHomePhabricator

Promote GNU LibreJS compliance
Closed, DuplicatePublic

Description

GNU LibreJS output:

List of blocked JavaScript in https://en.wikipedia.org/wiki/Main_Page

Whitelist

This script is detected as inline, nonfree, defining functions or methods, and the rest of the page as loading external scripts
if(window.mw){
mw.config.set({"wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"Main_Page","wgTitle":"Main Page","wgCurRevisionId":664887982,"wgRevisionId":664887982,"wgArticleId":15580374,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":"Pikolas","wgUserGroups":["*","user","autoconfirmed"],"wgCategories":[],"wgBreakFrames":false,"wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgMonthNamesShort":["","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"wgRelevantPageName":"Main_Page","wgRelevantArticleId":15580374,"wgUserId":2156218,"wgUserEditCount":2388,"wgUserRegistration":1157408719000,"wgUserNewMsgRevisionId":null,"wgIsProbablyEditable":false,"wgRestrictionE…

Whitelist

This script is detected as inline, nonfree, defining functions or methods, and the rest of the page as loading external scripts
if(window.mw){
mw.loader.implement("user.options",function($,jQuery){mw.user.options.set({"date":"dmy","enotifusertalkpages":"","gender":"male","norollbackdiff":"1","multimediaviewer-enable":"","gadget-teahouse":"","cirrussearch-default":"1","echo-seen-time":"20150723193651","gadget-CommentsInLocalTime":"1","gadget-DejaVu_Sans":"1","gadget-GoogleTrans":"1","gadget-HotCat":"1","gadget-Navigation_popups":"1","gadget-RTRC":"1","gadget-WatchlistChangesBold":"1","gadget-addsection-plus":"1","gadget-edittop":"1","gadget-exlinks":"1","gadget-imagelinks":"1","gadget-mySandbox":"","gadget-purgetab":"1","gadget-searchFocus":"1","gadget-wikEdDiff":"1","math-enable-visualeditor":"0","multimedia-viewer":"0","pagetriage-lastuse":"20131021175812","popups":"0","rememberpassword":"1","timecorrection":"ZoneInfo|-180|America/Sao_Paulo","uls-compact-links":"0","watchlisttoken":"49580b86da31680b0d8ab5db875708d260b2f446"});});
/* cache key: global:resourceloader:filter:minify-js:7:25dd7f362471b3e25e35946e8b…

Whitelist

This script is detected as inline, nonfree, defining functions or methods, and the rest of the page as loading external scripts
if(window.mw){
mw.loader.implement("user.tokens",function($,jQuery){mw.user.tokens.set({"editToken":"27fadd03e90b8949aaa182bb4175109d55b76516+\\","patrolToken":"b15132150749468cbf890dd9ec3527e155b76516+\\","watchToken":"e677e1a7c64a1d63d52b779f471875c155b76516+\\"});});
}

Whitelist

This script is detected as inline, nonfree, defining functions or methods, and the rest of the page as loading external scripts
if(window.mw){
mw.loader.load(["mediawiki.page.startup","mediawiki.legacy.wikibits","mediawiki.legacy.ajax","ext.centralauth.centralautologin.clearcookie","mmv.head","ext.imageMetrics.head","ext.visualEditor.viewPageTarget.init","ext.uls.init","ext.uls.interface","ext.centralNotice.bannerController","skins.vector.js"]);
}

Whitelist

This script is detected as inline, nonfree, defining functions or methods, and the rest of the page as loading external scripts
if(window.jQuery)jQuery.ready();

Whitelist

This script is detected as inline, nonfree, defining functions or methods, and the rest of the page as loading external scripts
if(window.mw){
mw.loader.state({"ext.globalCssJs.site":"ready","ext.globalCssJs.user":"ready","site":"loading","user":"ready","user.groups":"loading"});
}

Whitelist

This script is detected as inline, nonfree, defining functions or methods, and the rest of the page as loading external scripts
if(window.mw){
mw.loader.load(["mediawiki.action.view.postEdit","mediawiki.user","mediawiki.hidpi","mediawiki.page.ready","mediawiki.searchSuggest","mediawiki.page.watch.ajax","ext.cirrusSearch.loggingSchema","mmv.bootstrap.autostart","ext.imageMetrics.loader","ext.echo.overlay.init","ext.eventLogging.subscriber","ext.wikimediaEvents","ext.wikimediaEvents.statsd","ext.wikimediaEvents.geoFeatures","ext.wikimediaEvents.loggedin","ext.navigationTiming","ext.gadget.searchFocus","ext.gadget.GoogleTrans","ext.gadget.imagelinks","ext.gadget.Navigation_popups","ext.gadget.exlinks","ext.gadget.ReferenceTooltips","ext.gadget.formWizard","ext.gadget.geonotice","ext.gadget.WatchlistGreenIndicators","ext.gadget.WatchlistChangesBold","ext.gadget.HotCat","ext.gadget.wikEdDiff","ext.gadget.DRN-wizard","ext.gadget.charinsert","ext.gadget.refToolbar","ext.gadget.edittop","ext.gadget.purgetab","ext.gadget.addsection-plus","ext.gadget.switcher","ext.gadget.featured-articles-links","ext.gadget.DejaVu_Sans"…

Whitelist

NONTRIVIAL: creates script element dynamically.
if(window.mw){
document.write("\u003Cscript src=\"//en.wikipedia.org/w/load.php?debug=false\u0026amp;lang=en\u0026amp;modules=site\u0026amp;only=scripts\u0026amp;skin=vector\u0026amp;*\"\u003E\u003C/script\u003E");
}

Whitelist

NONTRIVIAL: creates script element dynamically.
if(window.mw){
document.write("\u003Cscript src=\"//en.wikipedia.org/w/load.php?debug=false\u0026amp;lang=en\u0026amp;modules=user.groups\u0026amp;skin=vector\u0026amp;user=Pikolas\u0026amp;version=1MApwDm4\u0026amp;*\"\u003E\u003C/script\u003E");
}

Whitelist

This script is detected as inline, nonfree, defining functions or methods, and the rest of the page as loading external scripts
if(window.mw){
mw.config.set({"wgBackendResponseTime":123,"wgHostname":"mw1247"});
}

Whitelisterror parsing: ReferenceError: type is not defined
https://en.wikipedia.org/w/load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector&*
Whitelisterror parsing: ReferenceError: type is not defined
https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-CommentsInLocalTime.js&action=raw&ctype=text/javascript&596442335
Whitelisterror parsing: ReferenceError: type is not defined
https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-popups.js&action=raw&ctype=text/javascript&670058142

List of accepted JavaScript in https://en.wikipedia.org/wiki/Main_Page

LibreJS did not allow the execution of any scripts on this page: '
    There may be no scripts on this page (check source, C-u)
    The inline and on-page JavaScript code may not be free and/or may not have proper license information and external scripts (if present) may have been removed by default.
    External scripts may not be free and/or may not have proper licensing and are not part of the whitelist of free JavaScript libraries.

Event Timeline

NMaia raised the priority of this task from to Needs Triage.
NMaia updated the task description. (Show Details)
NMaia added a subscriber: NMaia.

@Sunpriat: Attaching random images without any comment to tasks which have been closed for years is not helpful. Please do not do that.

Librejs reported that the mediawiki.org has a file and no license is specified for it.

@Sunpriat2: This task is closed as a duplicate of a resolved task. If there is some issue somewhere, please file a new task with 1) clear steps to reproduce what you see (click by click, step by step), 2) expected outcome, and 3) actual outcome. See https://www.mediawiki.org/wiki/How_to_report_a_bug - thanks.