Page MenuHomePhabricator

Write a user script to replace all images in an article with an image of your choice
Closed, ResolvedPublic

Description

Here are steps to do so:

Note: Remember that the effect caused by your code in the common.js file will only be visible to you.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 29 2017, 7:28 AM
Bawolff added a subscriber: Bawolff.Dec 3 2017, 6:11 PM

Not to be negative, but is this really a good task? Seems like something that has a high likelyhood to result in accidental vandalism of articles.

Hmm,isn't this just about your displaying of images (via your personal common.js)? So "replace" here only means "render something differently for me"?

Oh. I assumed replace meant get wikitext of page, regex the images and save page. If its just a view thing, I withdraw my objections :)