465:
373:
31:
279:(this doesn't work with old browsers as they don't have local storage). Unfortunately that is not the best place to store the settings because they can be deleted from there by a script from the site or when you delete your browsing history/cookies/etc. from the browser's settings. Also, you won't be able to use them with another browser and from other computers.
381:
This is actually super easy to set up. I do computer support for friends and family, so let's first ditch all the jargon: for all intents and purposes a bookmarklet is nothing more than a bookmark with special instructions -- in this case a JavaScript put in the place where you usually have the URL.
299:
If extra words or characters appear in the values of the parameters when using the script on some site, you can remove them every time by hand. Or you can make the script remove them automatically by changing the code for the site by hand (the code given on the page Site Setup). Here is an example:
55:
template. You use the script on the page you want to cite. A form will be displayed on top of that page with a text box containing the prefilled cite template. You should review the prefilled values and fill the missing ones and then press the "Compact & Copy" button (except for
410:
Right-click the new bookmark and in FireFox go to
Properties, in Chrome or Opera to Edit. You'll see that the first line is headed Name and contains the name of the webpage you just bookmarked. Replace the name of the webpage with whatever makes sense to you, I called my bookmark
282:
A better way is to save them to a subpage of your
Knowledge (XXG) user page (use a page name with .js at the end for security reasons), make that page call WebRef, and then use your page's URL in your bookmarklet code. Here is an example of how your page should look like:
444:
for giving us such an easy to use way for creating references! If you still have problems setting this up -- and after reading the troubleshooting tips below, I'd be happy to help. If you installed WebRef after reading my guide, I'd love to hear from you.
225:
In
Internet Explorer you can create a bookmark of any page in the usual manner (Add to favorites), then right-click it in the favorites menu, choose Properties, enter the JavaScript given above in the URL field, change the name (in the General section) to
332:
will work too - everything before the first occurrence of the word after the first ^^ is automatically removed). If there are characters you want to remove from the end too (here as an example - an exclamation point), add another ^^ and the characters:
290:
It would be best if all wikipedians were able to share their site settings, but that's not likely to be possible any time soon. A special wiki or other kind of site can be created for that purpose, but it has to be able to handle vandalism too.
66:
For some sites, in order for the script to be able to fill all the information (including the name of the author and the date of the article), you have to configure the script to let it know where to find that information. To do that, press the
429:
To use WebRef, click on the WebRef bookmark when you are on the page you want to cite. The special WebRef bookmark doesn't take you to another page, it runs the JavaScript in the bookmark and opens a text box with the Cite Web template.
468:
The bookmark (bookmarklet) doesn't take you to a different page, all it does is run the JavaScript saved in it: a text box with the Cite Web template pops up at the top of the page you are currently on, after clicking on the
376:
The bookmark (bookmarklet) doesn't take you to a different page, all it does is run the JavaScript saved in it: a text box with the Cite Web template pops up at the top of the page you are currently on, after clicking on the
433:
If WebRef doesn't include the author's name, click on the 'Authors' button and enter the name(s) just as they appear on the webpage. "Jane Doe" will be converted automatically to "last = Doe | first = Jane."
191:
part) in your browser's JavaScript console (which in most browsers can be opened by pressing the F12 key). Make sure you are on a page with (only one) article on it, for example on a news site.
63:
Not all the information can be autofilled on all sites, however it's easy to just drag or copy and paste the information from the page when the form with the cite template is on the same page.
272:
button and follow the instructions in order to help the script determine where to find this information. (Please, let me know if you don't understand the instructions.)
418:
The second line is called
Location or URL, depending on your browser. Delete the URL that is in it so that you have a blank line. Go to your other browser and
356:. Otherwise they have special meanings. A period for examples means "any one character". An example: we want to remove everything after the first period:
268:
For the script to be able to fill all the information (including the name of the author and the date of the article) on most sites you need to press the
233:
In Google Chrome and Opera (Windows and Linux) - press Ctrl+D and then the button Edit (for Chrome) or
Properties (for Opera), and change the name to
260:
parameter in the Cite Web template. In
Firefox you can select multiple text ranges (by holding the Ctrl key); they will be joined by by the script.
341:(i.e. leave empty the slot for the characters to omit from the beginning). No need to include spaces at the start or end of the words after ^^.
284:
422:. Then go back to your main browser and paste this into the Location or URL line of the bookmark. It will look like it won't fit, but it does.
150:'//en.wikipedia.org/search/?title=User:V111P/js/webRef.js&action=raw&ctype=text/javascript&smaxage=43200&maxage=86400'
437:
Make sure to check the dates because WebRef doesn't always pick up the correct publication date, even when it is shown on the webpage.
473:
If you have problems getting WebRef to work, first go to a site that is known to be easy to use with WebRef, the New York Times
210:
In
Firefox click on any bookmark in the bookmark menu. (It will be more convenient if you turn on the Bookmarks toolbar from
562:
592:
256:
If you select text on the page prior to activating the WebRef bookmarklet, the selected text will be used for the
275:
After you configure the script for the site you are using it on, you have the option to save the settings in the
558:
184:
34:
A text box with the Cite Web template is displayed on top of the page after activating the bookmarklet.
572:
567:
545:
453:
300:
On BBC articles the author is given on a line below the title and the name is preceded by the word
345:
42:
49:
196:
You can edit this page. If I don't like or understand something you wrote, I will correct it.
57:
541:
449:
586:
577:
511:
248:
There is a second set of instructions further below if you have problems with these.
21:
477:. Click on a news article on the main page, and then click on your WebRef bookmark.
464:
372:
30:
507:
407:
bookmarked yet. Make a bookmark -- I put mine on the
Bookmarks bar for easy access.
240:
In Google Chrome (Mac) – press Cmd-D then the button More, and change the name to
222:) in the Name field, enter the script given above in the address field (Location).
276:
75:
514:
could be blocking JavaScript, so you may have to turn them off temporarily and
17:
525:
browser extension if you use it, because it is known to interfere, and then
183:
To test the script, using a desktop/laptop computer, you can just execute
522:
488:
484:
Make sure that you are not blocking JavaScript in your browser settings.
394:
503:
463:
371:
29:
393:, the one you don't use a lot for editing Knowledge (XXG), go to
487:
If you use JavaScript blocking browser extensions such as
474:
337:. If you want to remove characters only from the end, use
312:
parameter in the code for the BBC site, which is normally
368:
How to create the bookmarklet -- super easy instructions!
364:
to escape the special-character meaning of the period.
344:The caveat is that these words, after ^^, can be
395:https://en.wikipedia.org/User:V111P/js/WebRef
8:
348:. What that means is to use the characters
214:and create the bookmarklet there.) Select
537:after turning off extensions. Good luck!
533:Sometimes you need to reload the webpage
295:Extra words or characters in the values
187:(or the code above, after removing the
420:copy the entire text in the green box
7:
71:button and follow the instructions.
28:
480:If the textbox does not pop up:
244:and address to the script above.
237:and address to the script above.
212:View/Toolbars/Bookmarks toolbar
495:turn them off temporarily and
352:you need to prepend them with
350:\ . ? * + | ^ $ ( ) { }
45:automating the filling of the
1:
385:This is what you need to do:
264:Saving the settings for sites
202:How to create the bookmarklet
218:, enter a name (for example
206:It depends on your browser.
78:with the following address:
74:The script can be used as a
548:) 01:50, 25 May 2019 (UTC)
456:) 01:50, 25 May 2019 (UTC)
403:open any web page that you
308:, modify the value for the
609:
425:Hit Save and you are done!
285:webRefSiteDataExample.js
81:
475:https://www.nytimes.com
391:second favorite browser
335:span.byline-name^^By^^!
470:
378:
358:span.byline-name^^^^\.
35:
593:Knowledge (XXG) tools
467:
375:
33:
573:User:Ark25/RefScript
502:Ad blockers such as
322:span.byline-name^^By
568:Help:Citation tools
346:regular expressions
471:
379:
36:
557:The source code:
304:. To remove this
600:
401:favorite browser
363:
359:
355:
340:
336:
323:
319:
315:
314:span.byline-name
190:
178:
175:
172:
169:
166:
163:
160:
157:
154:
151:
148:
145:
142:
139:
136:
133:
132:'script'
130:
127:
124:
121:
118:
115:
112:
109:
106:
103:
100:
97:
94:
91:
88:
85:
54:
48:
608:
607:
603:
602:
601:
599:
598:
597:
583:
582:
578:My user scripts
563:site setup file
554:
527:reload the page
516:reload the page
497:reload the page
462:
460:Troubleshooting
370:
361:
357:
353:
338:
334:
324:(actually just
321:
317:
313:
297:
266:
254:
204:
194:
188:
185:its source code
181:
180:
179:
176:
173:
170:
167:
164:
161:
158:
155:
152:
149:
146:
143:
140:
137:
134:
131:
128:
125:
122:
119:
116:
113:
110:
107:
104:
101:
98:
95:
92:
89:
86:
83:
52:
46:
26:
25:
24:
12:
11:
5:
606:
604:
596:
595:
585:
584:
581:
580:
575:
570:
565:
553:
550:
531:
530:
519:
500:
485:
461:
458:
427:
426:
423:
416:
408:
397:
369:
366:
360:- here we use
296:
293:
265:
262:
253:
250:
246:
245:
238:
231:
223:
203:
200:
82:
80:
27:
15:
14:
13:
10:
9:
6:
4:
3:
2:
605:
594:
591:
590:
588:
579:
576:
574:
571:
569:
566:
564:
560:
556:
555:
551:
549:
547:
543:
538:
536:
528:
524:
520:
517:
513:
512:uBlock Origin
509:
505:
501:
498:
494:
490:
486:
483:
482:
481:
478:
476:
466:
459:
457:
455:
451:
446:
443:
438:
435:
431:
424:
421:
417:
414:
409:
406:
402:
398:
396:
392:
388:
387:
386:
383:
374:
367:
365:
351:
347:
342:
331:
327:
311:
307:
303:
294:
292:
288:
286:
280:
278:
277:local storage
273:
271:
263:
261:
259:
251:
249:
243:
239:
236:
232:
229:
224:
221:
217:
213:
209:
208:
207:
201:
199:
197:
192:
186:
126:createElement
79:
77:
72:
70:
64:
61:
59:
51:
44:
40:
32:
23:
19:
539:
534:
532:
526:
515:
508:Adblock Plus
496:
492:
479:
472:
447:
441:
439:
436:
432:
428:
419:
412:
404:
400:
390:
384:
380:
349:
343:
329:
325:
320:at the end:
309:
305:
301:
298:
289:
281:
274:
269:
267:
257:
255:
247:
241:
234:
227:
219:
216:New Bookmark
215:
211:
205:
195:
193:
182:
73:
68:
65:
62:
53:}}
47:{{
38:
37:
413:Wiki WebRef
328:instead of
189:javascript:
168:appendChild
76:bookmarklet
521:Pause the
493:ScriptSafe
440:Thank you
316:by adding
270:Site setup
84:javascript
69:Site setup
18:User:V111P
559:main file
542:Peter NYC
469:bookmark.
450:Peter NYC
377:bookmark.
252:Quotation
198: ;)
587:Category
552:See also
523:Ghostery
489:NoScript
399:In your
389:In your
108:document
93:function
60:cites).
50:cite web
20: |
504:Adblock
405:haven't
177:);})();
310:author
242:WebRef
235:WebRef
228:WebRef
220:WebRef
58:WP:LDR
43:script
39:WebRef
535:twice
442:V111P
258:quote
41:is a
16:<
546:talk
454:talk
339:^^^^
318:^^By
162:body
540:--
510:or
491:or
448:--
144:src
99:var
96:(){
589::
561:,
506:,
330:By
306:By
302:By
287:.
135:);
22:js
544:(
529:.
518:.
499:.
452:(
415:.
362:\
354:\
326:y
230:.
174:s
171:(
165:.
159:.
156:d
153:;
147:=
141:.
138:s
129:(
123:.
120:d
117:=
114:s
111:,
105:=
102:d
90:(
87::
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.