Jump to content

Wikipedia talk:User scripts/Archive 5

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Makyen (talk | contribs) at 13:24, 24 March 2015 (Move threads erroneously archived to Wikipedia talk:User scripts/Archive 1 to Wikipedia talk:User scripts/Archive 5). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Archive 1Archive 3Archive 4Archive 5Archive 6Archive 7


Protection and management of scripts?

See discussion at Village Pump (policy)#Protection and management of scripts?. Relevant to Lua, userscripts, and user scripting generally. Comments appreciated.

FT2 (Talk | email) 02:06, 20 March 2013 (UTC)

Request to change User Tabs script

Should someone change Wikipedia:WikiProject User scripts/Scripts/User tabs from http://toolserver.org/~tparis/count/index.php? to http://tools.wmflabs.org/xtools/pcount/index.php? as a result of the move? Thanks! GoingBatty (talk) 02:47, 3 June 2013 (UTC)

Done! Plastikspork ―Œ(talk) 02:29, 5 June 2013 (UTC)

unofficial opt-in ad scripts?

It is my understanding that the Wikimedia Foundation's official stance is it will not run any ads. There have been some serious proposals for an opt-in ad system, but nothing has come out of it.

On the other hand, opt-in ads are something that can be easily implemented in a user script. For example, I could sign up for an ad exchange service (such as Infolinks) and put the ad-generating code in a script here. Any money that is gained can then be donated to Wikipedia.

However, there are a few potential problems with this approach. Because the Wikimedia Foundation does not officially run ads, there would be no oversight: a less-than-honest person could keep some of the funds for himself. Also, if a user does something that violates the ad exchange's terms of service, it could sever ties between the service and Wikipedia. This could become problematic should Wikipedia ever "needs" ads.

Would such a script be discouraged? --Ixfd64 (talk) 18:56, 4 July 2013 (UTC)

Adding tabs to the project page

Would anyone mind if I add a tab system to the project page that would look like the ones at the AfC project or the GoCE project? Thanks! (I really think it would look a lot better and aid in navigation.) APerson (talk!) 20:57, 11 August 2013 (UTC)

 Done Added. APerson (talk!) 01:10, 12 August 2013 (UTC)

RfC: Are the Category:Wikipedians and its subcategories appropriate for Wikipedia

There is an ongoing RfC going on at Category talk:Wikipedians#RfC: Is this category and current subcategories appropriate for Wikipedia that readers of this WikiProject may be interested it. Technical 13 (talk) 12:19, 29 August 2013 (UTC)

No more javascript

I recently got a new laptop, and I don't get my javascript any more on no:Wikisource. (I neither get my additional edit buttons, nor the [common] box of edit tools under the edit window. Is there something wrong with my javascript or some plug-in/add-on that I don't have? V85 (talk) 04:21, 6 May 2013 (UTC)

Have you changed the browser? Which browser you use, with which addons (Noscript?). --Rezonansowy --Rezonansowy (talk • contribs) 01:25, 9 November 2013 (UTC)

User:Rezonansowy/ToCommons

I'm not sure where should I place my script - User:Rezonansowy/ToCommons. --Rezonansowy (talk • contribs) 23:23, 9 November 2013 (UTC)

I'd put it under "Images", I think. equazcion 01:15, 10 Nov 2013 (UTC)
Thanks! --Rezonansowy (talk • contribs) 12:31, 10 November 2013 (UTC)

BeeLine Reader

Have there been any significant efforts/discussions about adapting BeeLine Reader as a user script?

The issues with the existing implementation are as follows:

A quick look at the bookmarklet shows that it loads some scripts/stylesheets from www.beelinereader.com without https. The Firefox extension seems to have that problem too.

HTTPS support?

www.beelinereader.com appears to be hosted on Heroku at beelinereader.herokuapp.com, so an HTTPS Everywhere rule could conceivably be written. However, that would leave functionality broken due to compatibility issues between mixed-content blocking and HTTPS Everywhere (Firefox, Chrome).

I could work around that by making on-wiki copies of the dependencies, except that I would like the script only to change text colors without doing any of the other reformatting it currently does. This is somewhat nontrivial for me to figure out, given the length of the script that does the actual work.

Any ideas where I should get started? --SoledadKabocha (talk) 22:01, 14 December 2013 (UTC)

To clarify, it is possible that the "readability" script only does the aforementioned "reformatting," and the colors are handled elsewhere. --SoledadKabocha (talk) 03:16, 15 December 2013 (UTC)
Upon digging a bit further, it is indeed the case that the coloring is handled separately from readability.js; the files have different names depending on the color scheme chosen (see the radio buttons on the bookmarklet installation page, and look at the resulting code of the bookmarklet). For example: BlackNavyCrimson.js for the "Dark" color scheme. An obvious change that would need to be made (in addition to removing the Google Analytics stuff) is that the readInner element ID would need to be changed to bodyContent or content if the page isn't going to be preprocessed by Readability.
At this point I think I can handle this myself. I don't intend for this to be developed as a gadget or otherwise widely publicized; that could run into licensing issues anyway. --SoledadKabocha (talk) 03:36, 15 December 2013 (UTC)

JavaScript edit requests

See template talk:JavaScript where a new JS edit request template has been proposed -- 70.50.148.122 (talk) 07:01, 9 January 2014 (UTC)

Gadget or user script for disablesuggest

I have gone looking for admins who would like to approve a proposal I made for a gadget that disables search suggestions. Recently, one of them referred me to this project.

The project page says that the "most popular" scripts become gadgets. What usage is this approximately? The core preference to disable suggestions was used by 112 editors and some others couldn't find it. At least 7 of them have voiced their desire to get this option back in a discussion and a developer has encouraged me to write a similar gadget. The sheer number of search suggest bugs both technical and philosophical makes me surprised that the option would ever be taken out of core.

Are these reasons enough to have my script added as a gadget? If not, I am happy to list it on the project page so we can first make sure that it gets enough usage. I just hope this gets the attention of someone who can make the decision. Connor Behan (talk) 05:59, 6 February 2014 (UTC)

Putting it in User:Connor_Behan/disablesuggest.js as this seems better than referring people to the proposal page. Check there for the latest version. Connor Behan (talk) 01:55, 7 February 2014 (UTC)
Many thanks to TheDJ who just added this as a gadget! Connor Behan (talk) 20:36, 1 March 2014 (UTC)

When using the tool "What links here" for geographical entries (such as Wichita Falls, Texas), all links in navboxes are listed as well as the usual article links. For someplace like Texas, this makes hundreds and hundreds of links to wade through. Would it be possible to make a user script that would filter out everything in navboxes? Or is there one already I haven't found? Many thanks. - Gorthian (talk) 19:39, 19 April 2014 (UTC)

I think that would require the script to request and download all these hundreds of articles in order to check whether the link is in a template or not, not really a good idea. --V111P (talk) 08:48, 20 April 2014 (UTC)
Not necessarily. You could prompt the user for the name of the navbox(es) that should be excluded (e.g. in this case {{Texas}} plus some others). Then you could query what links are inside that template and subtract those pages off from the whatlinkshere of the page. In navboxes, any link inside the template is also a link to that page.--Dudemanfellabra (talk) 17:03, 20 April 2014 (UTC)
That wouldn't quite work, as many small cities in Texas have the template without being in the template (e.g. Hutchins, Texas). --V111P (talk) 13:43, 21 April 2014 (UTC)
I was thinking something along the lines of an invisible something in the navbox template that would tell the script "here are the links contained within," and then the script could note those and ignore them. Obviously, I'm no programmer; I don't know how any of this works. - Gorthian (talk) 19:25, 21 April 2014 (UTC)
No, I just used the template's "What links here" backlinks instead of the links in the template and it works! The former include all the pages that transclude the template. Thanks for the idea, Gorthian! I'll post the script a little later. --V111P (talk) 19:42, 21 April 2014 (UTC)
Really? Cool! I'm thrilled! - Gorthian (talk) 02:16, 22 April 2014 (UTC)
I want to thank Dudemanfellabra for his idea too, I actually only slightly modified it. --V111P (talk) 06:52, 22 April 2014 (UTC)
Here is the documentation for the script: User:V111P/js/What Links Here link filter. Tell me if you have any problems because I haven't done much testing. I tested it on Whichita Falls, Texas with Namespace set to (Article) and templates:

County, Texas|Template:Texas|Template:Texas county seats|Template:Texas cities and mayors of 100,000 population|Template:Texas counties

It reduces the pages from 1841 to 755. Well, that's still a lot of pages... but I hope it's helpful anyway.
If you want, Gorthian, you can try some of my other scripts too and tell me if you like/don't like them. Thanks. --V111P (talk) 06:52, 22 April 2014 (UTC)